#170: Use second submenu for agenda items.

This commit is contained in:
Emanuel Schuetze 2012-05-19 08:26:59 +02:00
parent 188fe4cce5
commit 23fb97c7a2
2 changed files with 21 additions and 9 deletions

View File

@ -15,4 +15,24 @@
{% endif %} {% endif %}
<li><a href="{% url print_agenda %}"><img src="{% static 'images/icons/pdf.png' %}"> {%trans 'Agenda as PDF' %}</a></li> <li><a href="{% url print_agenda %}"><img src="{% static 'images/icons/pdf.png' %}"> {%trans 'Agenda as PDF' %}</a></li>
</ul> </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 %}

View File

@ -13,13 +13,5 @@
<h2>{% trans "Comment" %}</h2> <h2>{% trans "Comment" %}</h2>
<p>{{ item.comment|linebreaks }}</p> <p>{{ item.comment|linebreaks }}</p>
{% endif %} {% 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 %} {% endif %}
{% endblock %} {% endblock %}