70 lines
1.8 KiB
HTML
70 lines
1.8 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n %}
|
|
{% load acs_filters %}
|
|
|
|
{% block content %}
|
|
|
|
{% if title %}
|
|
<h2>{% trans "Ask for a decision with a srting as an object" %}</h2>
|
|
{% endif %}
|
|
|
|
<p>
|
|
You can only ask decisions on entities you have administration rights.
|
|
</p>
|
|
|
|
{% if messages %}
|
|
<ul class="messages">
|
|
{% for message in messages %}
|
|
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
{% if who_to_display and what_to_display and how_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>
|
|
<p><label>{% trans "Provide a string for an object" %}:</label><input type="text" name="what"/></p>
|
|
</p>
|
|
{% endif %}
|
|
{% if how_to_display %}
|
|
<p>
|
|
<h3>{% trans "How" %}</h3>
|
|
<select name="how_matches" id="id_how_matches">
|
|
{% for it in how_to_display %}
|
|
<option value="{{ it.id }}_{{ it|klass }}">{{ it.name }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</p>
|
|
{% endif %}
|
|
<p>
|
|
<br style="clear: both;"/>
|
|
<input type="submit" name="{{ submit_name }}" value="{% trans "Ask" %}"/>
|
|
</p>
|
|
</form>
|
|
</div>
|
|
{% else %}
|
|
<p>{% trans 'You have not enough rights or there is not enough material in the policy to ask for a decision.' %}</p>
|
|
{% endif %}
|
|
|
|
<div class="right">
|
|
<a class="back" href="{{ backlink }}">{% trans "Back" %}</a>
|
|
</div>
|
|
{% endblock %}
|