#104: Application submenu.

This commit is contained in:
Emanuel Schuetze 2012-04-18 19:50:51 +02:00
parent ee4d7da04a
commit 7eb410f093

View File

@ -6,23 +6,31 @@
{% block title %}{{ block.super }} - {% trans "Application" %} "{{ version.title }}"{% endblock %} {% block title %}{{ block.super }} - {% trans "Application" %} "{{ version.title }}"{% endblock %}
{% if perms.application.can_manage_application %}
{% block submenu %} {% block submenu %}
{{ block.super }} {{ block.super }}
<br> <br>
<h3>{%trans "Application No." %} {{ application.number }}</h3> <h3>{% trans "Application No." %}
{% if application.number != None %}
{{ application.number }}
{% else %}
<i>[-]</i>
{% endif %}
</h3>
<ul> <ul>
<li><a href="{% url application_view application.id %}">{%trans 'Application' %} {{ application.number }}</a></li> <li><a href="{% url application_view application.id %}">{%trans 'View Application' %}</a></li>
{% if "edit" in actions %} {% if "edit" in actions %}
<li><a href="{% url application_edit application.id %}">{%trans 'Edit Application' %}</a></li> <li><a href="{% url application_edit application.id %}">{%trans 'Edit Application' %}</a></li>
{% endif %} {% endif %}
{% if "delete" in actions %} {% if "delete" in actions %}
<li><a href="{% url application_delete application.id %}">{%trans 'Delete Application' %}</a></li> <li><a href="{% url application_delete application.id %}">{%trans 'Delete Application' %}</a></li>
{% endif %} {% endif %}
{% if perms.projector.can_manage_projector %}
<li><a href="{% url application_activate_item application.id %}"><img src="{% static 'images/icons/video-projector.png' %}"> {%trans 'Show Application' %}</a></li>
{% endif %}
<li><a href="{% url print_application application.id %}"><img src="{% static 'images/icons/application-pdf.png' %}"> {%trans 'Application as PDF' %}</a></li> <li><a href="{% url print_application application.id %}"><img src="{% static 'images/icons/application-pdf.png' %}"> {%trans 'Application as PDF' %}</a></li>
</ul> </ul>
{% endblock %} {% endblock %}
{% endif %}
{% block content %} {% block content %}
<div id="sidebar"> <div id="sidebar">
@ -170,10 +178,6 @@
{% endif %} {% endif %}
<h4></h4> <h4></h4>
<a href='{% url application_activate_item application.id %}'>
<span class="button"><span class="icon projector">{%trans 'Beam Application' %}</span></span>
</a>
{% if "acc" in actions or "rej" in actions %} {% if "acc" in actions or "rej" in actions %}
<h4>{% trans "Result after vote" %}:</h4> <h4>{% trans "Result after vote" %}:</h4>
{% if "acc" in actions %} {% if "acc" in actions %}
@ -220,7 +224,7 @@
{% if application.number != None %} {% if application.number != None %}
{% trans "Application No." %} {{ application.number }} {% trans "Application No." %} {{ application.number }}
{% else %} {% else %}
{% trans "Application" %} <i>[no number]</i> {% trans "Application" %} <i>[{% trans "no number" %}]</i>
{% endif %} {% endif %}
</h1> </h1>
{% trans "Version" %} {{ version.aid }} {% trans "Version" %} {{ version.aid }}