Browse Source

Доьбавил переводы

devel
bashmak 9 years ago
parent
commit
3dfbc6cebc
  1. 12
      accounts_app/locale/ru/LC_MESSAGES/django.po
  2. 17
      accounts_app/templates/accounts/index.html
  3. 5
      accounts_app/templates/accounts/profile_chgroup.html

12
accounts_app/locale/ru/LC_MESSAGES/django.po

@ -84,3 +84,15 @@ msgstr "Изменить инфу о себе"
msgid "Permission options"
msgstr "Настройка прав"
msgid "The responsibility of the administrator of the group of subscribers"
msgstr "Ответственность администратора за группы абонентов"
msgid "Is enable"
msgstr "Включён-ли"
msgid "Last login"
msgstr "Последняя авторизация"
msgid "Administrative access (all rights)"
msgstr "Административный доступ (все права)"

17
accounts_app/templates/accounts/index.html

@ -1,35 +1,32 @@
{% extends request.is_ajax|yesno:'nullcont.htm,accounts/ext.htm' %}
{% load i18n %}
{% block content %}
<table class="table table-striped table-bordered">
<tbody>
<tr>
<td class="col-sm-4">Телефон</td>
<td class="col-sm-4">{% trans 'Telephone' %}</td>
<td><a href="tel:{{ userprofile.telephone }}">{{ userprofile.telephone }}</a></td>
</tr>
<tr>
<td>Логин</td>
<td>{% trans 'User name' %}</td>
<td>{{ userprofile.username }}</td>
</tr>
<tr>
<td>ФИО</td>
<td>{% trans 'Name and surname' %}</td>
<td>{{ userprofile.fio }}</td>
</tr>
<tr>
<td>Включён-ли</td>
<td>{% trans 'Is enable' %}</td>
<td><input type="checkbox" {{ userprofile.is_active|yesno:' checked,' }}></td>
</tr>
<tr>
<td>Последняя авторизация</td>
<td>{% trans 'Last login' %}</td>
<td>{{ userprofile.last_login|date:"l d E Y H:i" }}</td>
</tr>
<tr>
<td>Выделенный ip</td>
<td>&lt;10.155.13.43&gt;</td>
</tr>
{% if request.user.is_superuser %}
<tr>
<td>Административный доступ (все права)</td>
<td>{% trans 'Administrative access (all rights)' %}</td>
<td><input type="checkbox"{{ userprofile.is_staff|yesno:' checked,' }}></td>
</tr>
{% endif %}

5
accounts_app/templates/accounts/profile_chgroup.html

@ -1,7 +1,8 @@
{% extends request.is_ajax|yesno:'nullcont.htm,accounts/ext.htm' %}
{% load i18n %}
{% block content %}
<legend>Ответственность администратора за группы абонентов</legend>
<legend>{% trans 'The responsibility of the administrator of the group of subscribers' %}</legend>
<form action="{% url 'acc_app:profile_setup_group' userprofile.id %}" method="post" role="form">{% csrf_token %}
{% for ag in abongroups %}
<div class="checkbox">
@ -16,7 +17,7 @@
</div>
{% endfor %}
<div class="btn-group">
<input type="submit" class="btn btn-primary" value="Сохранить"> <input type="reset" class="btn btn-default" value="Сбросить">
<input type="submit" class="btn btn-primary" value="{% trans 'Save' %}"> <input type="reset" class="btn btn-default" value="{% trans 'Reset' %}">
</div>
</form>
Loading…
Cancel
Save