Browse Source
Set custom pages is global, and make form where can change user
Set custom pages is global, and make form where can change user
responsibilities groupsdevel
13 changed files with 121 additions and 42 deletions
-
30accounts_app/locale/ru/LC_MESSAGES/django.po
-
8accounts_app/templates/accounts/ext.htm
-
13accounts_app/templates/accounts/login.html
-
25accounts_app/templates/accounts/manage_responsibility_groups.html
-
21accounts_app/urls.py
-
54accounts_app/views.py
-
6clientsideapp/templates/clientsideapp/ext.html
-
2clientsideapp/templates/clientsideapp/index.html
-
4clientsideapp/templates/clientsideapp/services.html
-
0templates/custom_pages/footer.htm
-
0templates/custom_pages/main_page.htm
-
0templates/custom_pages/service.htm
-
0templates/custom_pages/service_bottom.htm
@ -0,0 +1,25 @@ |
|||
{% extends request.is_ajax|yesno:'nullcont.htm,accounts/ext.htm' %} |
|||
{% load i18n %} |
|||
{% block content %} |
|||
|
|||
<legend>{% trans 'The responsibility of the administrator of the group of subscribers' %}</legend> |
|||
<form action="{% url 'acc_app:manage_responsibility_groups' userprofile.pk %}" method="post" role="form">{% csrf_token %} |
|||
{% for grp in groups %} |
|||
<div class="checkbox"> |
|||
<label> |
|||
{% if grp.pk in existing_groups %} |
|||
<input name="grp" type="checkbox" value="{{ grp.pk }}" checked/> |
|||
{% else %} |
|||
<input name="grp" type="checkbox" value="{{ grp.pk }}"/> |
|||
{% endif %} |
|||
{{ grp.title }} |
|||
</label> |
|||
</div> |
|||
{% endfor %} |
|||
<div class="btn-group"> |
|||
<input type="submit" class="btn btn-primary" value="{% trans 'Save' %}"> |
|||
<input type="reset" class="btn btn-default" value="{% trans 'Reset' %}"> |
|||
</div> |
|||
</form> |
|||
|
|||
{% endblock %} |
|||
@ -1,4 +1,4 @@ |
|||
{% extends 'clientsideapp/ext.html' %} |
|||
{% block client_main %} |
|||
{% include 'clientsideapp/custom_pages/main_page.htm' %} |
|||
{% include 'custom_pages/main_page.htm' %} |
|||
{% endblock %} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue