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.
25 lines
1.2 KiB
25 lines
1.2 KiB
{% extends request.is_ajax|yesno:'nullcont.htm,accounts/ext.htm' %}
|
|
{% load i18n %}
|
|
{% block content %}
|
|
|
|
<legend>{% trans 'The responsibility of the staff 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 groups %}
|
|
<div class="checkbox">
|
|
<label>
|
|
{# FIXME После реализации метода возвращающего связи групп с профилями применить его тут #}
|
|
{% if userprofile in ag.profiles.all %}
|
|
<input name="ag" type="checkbox" value="{{ ag.pk }}" checked/>
|
|
{% else %}
|
|
<input name="ag" type="checkbox" value="{{ ag.pk }}"/>
|
|
{% endif %}
|
|
{{ ag.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 %}
|