66 lines
1.6 KiB
HTML
66 lines
1.6 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n %}
|
|
{% load acs_filters %}
|
|
|
|
{% block content %}
|
|
|
|
{% if title %}
|
|
<h2>{{ title }}</h2>
|
|
{% endif %}
|
|
|
|
{% if messages %}
|
|
<p>
|
|
<ul class="messages">
|
|
{% for message in messages %}
|
|
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% if who_to_display and what_to_display %}
|
|
<div>
|
|
<form method="post" action="">
|
|
{% if who_to_display %}
|
|
<p>
|
|
<h3>{% trans "Who" %}</h3>
|
|
<select name="who_matches" id="id_who_matches">
|
|
{% for it in who_to_display %}
|
|
{% if it|klass == "UserAlias" %}
|
|
<option value="{{ it.id }}_{{ it|klass }}">{{ it.alias }}</option>
|
|
{% else %}
|
|
<option value="{{ it.id }}_{{ it|klass }}">{{ it.name }}</option>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</select>
|
|
</p>
|
|
{% endif %}
|
|
{% if what_to_display %}
|
|
<p>
|
|
<h3>{% trans "What" %}</h3>
|
|
<select name="what_matches" id="id_what_matches">
|
|
{% for it in what_to_display %}
|
|
{% if it|klass == "UserAlias" %}
|
|
<option value="{{ it.id }}_{{ it|klass }}">{{ it.alias }}</option>
|
|
{% else %}
|
|
<option value="{{ it.id }}_{{ it|klass }}">{{ it.name }}</option>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</select>
|
|
</p>
|
|
{% endif %}
|
|
<p>
|
|
<br style="clear: both;"/>
|
|
<input type="submit" name="{{ submit_name }}" value="{% trans "Add" %}"/>
|
|
</p>
|
|
</form>
|
|
</div>
|
|
{% else %}
|
|
<p>{% trans 'You have not enough rights or there is not enough material in the policy to set a to set a permission.' %}</p>
|
|
{% endif %}
|
|
|
|
<div class="right">
|
|
<a class="back" href="{{ backlink }}">{% trans "Back" %}</a>
|
|
</div>
|
|
{% endblock %}
|