Remove broken access codes from application list for now.
{% comment %} Translators: On the page where coordinators can view data on applications to a partner they coordinate, this is a table column heading for the stream (collection) the user applied for. {% endcomment %}
<th>{% trans "Stream" %}</th>
{% endif %}
- {% if object.authorization_method == object.CODES %}
- {% comment %} Translators: On the page where coordinators can view data on applications to a partner they coordinate, this is a table column heading for the access code this user was assigned. {% endcomment %}
- <th>{% trans "Access code" %}</th>
- {% endif %}
</tr>
</thead>
<tbody>
{% endif %}
</td>
{% endif %}
- {% if object.authorization_method == object.CODES %}
- <td>
- {% if application.accesscodes %}
- {{ application.accesscodes.code }} <a href="{% url 'partners:unassign_code' pk=application.accesscodes.pk%}" title={% trans "Unassign" %} class="glyphicon glyphicon-remove"></a>
- {% endif %}
- </td>
- {% endif %}
</tr>
{% endfor %}
</tbody>
{% comment %} Translators: On the page where coordinators can view data on applications to a partner they coordinate, this is a table column heading for the stream (collection) the user applied for. {% endcomment %}
<th>{% trans "Stream" %}</th>
{% endif %}
- {% if object.authorization_method == object.CODES %}
- {% comment %} Translators: On the page where coordinators can view data on applications to a partner they coordinate, this is a table column heading for the access code this user was assigned. {% endcomment %}
- <th>{% trans "Access code" %}</th>
- {% endif %}
</tr>
</thead>
<tbody>
{% endif %}
</td>
{% endif %}
- {% if object.authorization_method == object.CODES %}
- <td>
- {% if application.accesscodes %}
- {% comment %} Translators: On the page listing approved users, this is hover text for a button staff can click to unassign (remove) an access code from a user. {% endcomment %}
- {{ application.accesscodes.code }} <a href="{% url 'partners:unassign_code' pk=application.accesscodes.pk%}" title={% trans "Unassign" %} class="glyphicon glyphicon-remove"></a>
- {% endif %}
- </td>
- {% endif %}
</tr>
{% endfor %}
</tbody>
