You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1.0 KiB
23 lines
1.0 KiB
{% extends request.is_ajax|yesno:'nullcont.htm,accounts/ext.htm' %}
|
|
{% block content %}
|
|
|
|
<legend>Ответственность администратора за группы абонентов</legend>
|
|
<form action="{% url 'acc_app:profile_setup_group' userprofile.id %}" method="post" role="form">{% csrf_token %}
|
|
{% for ag in abongroups %}
|
|
<div class="checkbox">
|
|
<label>
|
|
{% if userprofile in ag.profiles.all %}
|
|
<input name="ag" type="checkbox" value="{{ ag.id }}" checked/>
|
|
{% else %}
|
|
<input name="ag" type="checkbox" value="{{ ag.id }}"/>
|
|
{% endif %}
|
|
{{ ag.title }}
|
|
</label>
|
|
</div>
|
|
{% endfor %}
|
|
<div class="btn-group">
|
|
<input type="submit" class="btn btn-primary" value="Сохранить"> <input type="reset" class="btn btn-default" value="Сбросить">
|
|
</div>
|
|
</form>
|
|
|
|
{% endblock %}
|