Browse Source

Add delete button to subscribers account

devel
Dmitry Novikov 7 years ago
parent
commit
0492b3c76c
  1. 7
      abonapp/templates/abonapp/editAbon.html
  2. 3
      locale/ru/LC_MESSAGES/django.po

7
abonapp/templates/abonapp/editAbon.html

@ -99,6 +99,13 @@
<span class="glyphicon glyphicon-paperclip"></span> {% trans 'Passport information' %} <span class="glyphicon glyphicon-paperclip"></span> {% trans 'Passport information' %}
</a> </a>
{% endif %} {% endif %}
{% if perms.abonapp.delete_abon %}
<a href="{% url 'abonapp:del_abon' group.pk abon.username %}" class="btn btn-danger btn-modal" title="{% trans 'Remove subscriber' %}" data-toggle="tooltip">
<span class="glyphicon glyphicon-remove"></span>
<span>{% trans 'Remove subscriber' %}</span>
</a>
{% endif %}
</div> </div>
</div> </div>

3
locale/ru/LC_MESSAGES/django.po

@ -122,3 +122,6 @@ msgstr "500 - Ошибка сервера"
msgid "A server has error occurred. Please contact the administrator." msgid "A server has error occurred. Please contact the administrator."
msgstr "На сервере произошла ошибка. Пожалуйста свяжитесь с системным администратором." msgstr "На сервере произошла ошибка. Пожалуйста свяжитесь с системным администратором."
msgid "Are you sure about them?"
msgstr "Вы уверены в этом?"
Loading…
Cancel
Save