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

5
accounts_app/templates/accounts/profile_chgroup.html

@ -1,7 +1,8 @@
{% extends request.is_ajax|yesno:'nullcont.htm,accounts/ext.htm' %} {% extends request.is_ajax|yesno:'nullcont.htm,accounts/ext.htm' %}
{% load i18n %}
{% block content %} {% 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 %} <form action="{% url 'acc_app:profile_setup_group' userprofile.id %}" method="post" role="form">{% csrf_token %}
{% for ag in abongroups %} {% for ag in abongroups %}
<div class="checkbox"> <div class="checkbox">
@ -16,7 +17,7 @@
</div> </div>
{% endfor %} {% endfor %}
<div class="btn-group"> <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> </div>
</form> </form>
Loading…
Cancel
Save