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.
50 lines
2.3 KiB
50 lines
2.3 KiB
{% extends 'base.html' %}
|
|
{% load i18n %}
|
|
{% block main %}
|
|
|
|
<ol class="breadcrumb">
|
|
<li><span class="glyphicon glyphicon-home"></span></li>
|
|
<li><a href="{% url 'acc_app:accounts_list' %}">{% trans 'Administrators' %}</a></li>
|
|
<li><a href="{% url 'acc_app:groups_list' %}">{% trans 'Groups' %}</a></li>
|
|
<li class="active">{{ group.name }}</li>
|
|
</ol>
|
|
|
|
{% include 'message_block.html' %}
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">{% trans 'The current distribution of rights for groups' %} <b>{{ group.name }}</b></h3>
|
|
</div>
|
|
<div class="panel-body">
|
|
<form role="form" action="{% url 'acc_app:group_link' group.id %}" method="post">{% csrf_token %}
|
|
|
|
<div class="choice_wrapper">
|
|
<label for="sel_left">{% trans 'Available rights' %}</label>
|
|
<select name="allrights" multiple id="sel_left">
|
|
{% for rgt in all_rights %}
|
|
<option value="{{ rgt.id }}">{{ rgt.content_type }} <{{ rgt.name }}></option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
<ul class="select_choose">
|
|
<li><a href="javascript:chooser_select('sel_left','sel_right');" class="btn btn-blue"><i
|
|
class="black icon-arrow-right"></i></a></li>
|
|
<li><a href="javascript:chooser_select('sel_right','sel_left');" class="btn btn-blue"><i
|
|
class="black icon-arrow-left"></i></a></li>
|
|
</ul>
|
|
<div class="choice_wrapper">
|
|
<label for="sel_right">{% trans 'Rights for the group' %}</label>
|
|
<select name="group_rights" multiple id="sel_right">
|
|
{% for rgt in grp_rights %}
|
|
<option value="{{ rgt.id }}">{{ rgt.content_type }} <{{ rgt.name }}></option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
<br/>
|
|
<input type="submit" value="{% trans 'Save' %}"> <input type="reset" value="{% trans 'Reset' %}">
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|