#170: Use second submenu for agenda items.
This commit is contained in:
parent
188fe4cce5
commit
23fb97c7a2
@ -15,4 +15,24 @@
|
||||
{% endif %}
|
||||
<li><a href="{% url print_agenda %}"><img src="{% static 'images/icons/pdf.png' %}"> {%trans 'Agenda as PDF' %}</a></li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
||||
{# second submenu #}
|
||||
{% if item %}
|
||||
<br>
|
||||
<h3>{{ item.title }}</h3>
|
||||
<ul>
|
||||
{# view item #}
|
||||
{% url item_view item.id as url_itemview %}
|
||||
<li class="{% if request.path == url_itemview %}selected{% endif %}"><a href="{% url item_view item.id %}">{%trans 'View item' %}</a></li>
|
||||
{# edit item #}
|
||||
{% url item_edit item.id as url_itemedit %}
|
||||
<li class="{% if request.path == url_itemedit %}selected{% endif %}"><a href="{% url item_edit item.id %}">{%trans 'Edit item' %}</a></li>
|
||||
{# delete item #}
|
||||
<li><a href="{% url item_delete item.id %}"><img src="{% static 'images/icons/delete.png' %}"> {%trans 'Delete item' %}</a></li>
|
||||
{# activate item #}
|
||||
{% if perms.projector.can_manage_projector %}
|
||||
<li><a href="{% url projector_activate_slide item.sid %}"><img src="{% static 'images/icons/projector.png' %}"> {%trans 'Show item' %}</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endblock %}
|
@ -13,13 +13,5 @@
|
||||
<h2>{% trans "Comment" %}</h2>
|
||||
<p>{{ item.comment|linebreaks }}</p>
|
||||
{% endif %}
|
||||
|
||||
<p>
|
||||
<a href='{% url item_edit item.id %}'>
|
||||
<button class="button" type="button" onclick="window.location='{% url item_edit item.id %}'">
|
||||
<span class="icon edit">{%trans 'Edit agenda item' %}</span>
|
||||
</button>
|
||||
</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user