Browse Source

Show group tech code in group list

devel
www-data 8 years ago
parent
commit
d382316439
  1. 3
      group_app/locale/ru/LC_MESSAGES/django.po
  2. 8
      group_app/templates/group_app/group_list.html

3
group_app/locale/ru/LC_MESSAGES/django.po

@ -76,3 +76,6 @@ msgstr "Новая группа успешно создана"
msgid "Tech code" msgid "Tech code"
msgstr "Технический код" msgstr "Технический код"
msgid "TeCo"
msgstr "Тех. код"

8
group_app/templates/group_app/group_list.html

@ -16,6 +16,7 @@
<thead> <thead>
<tr> <tr>
<th width="50">#</th> <th width="50">#</th>
<th width="50">{% trans 'TeCo' %}</th>
<th> <th>
<a href="{% url 'group_app:group_list' %}?order_by=title&dir={{ dir|default:'down' }}"> <a href="{% url 'group_app:group_list' %}?order_by=title&dir={{ dir|default:'down' }}">
{% trans 'Title' %} {% trans 'Title' %}
@ -29,8 +30,9 @@
{% for gr in groups %} {% for gr in groups %}
<tr> <tr>
<td>{{ gr.pk }}</td> <td>{{ gr.pk }}</td>
<td>{{ gr.code }}</td>
<td> <td>
<a href="{% url 'group_app:edit' gr.pk %}" class="btn-modal"{% if gr.code %} title="{{ gr.code }}"{% endif %}>
<a href="{% url 'group_app:edit' gr.pk %}" class="btn-modal"{% if gr.code %} title="{{ gr.code }}" data-toggle="tooltip"{% endif %}>
{{ gr.title }} {{ gr.title }}
</a> </a>
</td> </td>
@ -42,13 +44,13 @@
</tr> </tr>
{% empty %} {% empty %}
<tr> <tr>
<td colspan="3"><a href="#">{% trans 'Groups was not found' %}</a></td>
<td colspan="4"><a href="#">{% trans 'Groups was not found' %}</a></td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
<tfoot> <tfoot>
<tr> <tr>
<td colspan="3" class="btn-group btn-group-sm">
<td colspan="4" class="btn-group btn-group-sm">
<a href="{% url 'group_app:add' %}" class="btn btn-success btn-modal"> <a href="{% url 'group_app:add' %}" class="btn btn-success btn-modal">
<span class="glyphicon glyphicon-plus"></span> <span class="hidden-xs">{% trans 'Add group' %}</span> <span class="glyphicon glyphicon-plus"></span> <span class="hidden-xs">{% trans 'Add group' %}</span>
</a> </a>

Loading…
Cancel
Save