From ae51d9e7dabb6ab0bffc0154a30a0fe9c84d2366 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Thu, 6 Sep 2012 23:58:20 +0200 Subject: [PATCH] Adjusted template for assignment app. --- .../assignment/templates/assignment/edit.html | 33 +- .../templates/assignment/overview.html | 33 +- .../assignment/templates/assignment/view.html | 335 +++++++++--------- 3 files changed, 209 insertions(+), 192 deletions(-) diff --git a/openslides/assignment/templates/assignment/edit.html b/openslides/assignment/templates/assignment/edit.html index e1cc2e606..4d14a7dad 100644 --- a/openslides/assignment/templates/assignment/edit.html +++ b/openslides/assignment/templates/assignment/edit.html @@ -1,4 +1,4 @@ -{% extends "assignment/base_assignment.html" %} +{% extends "base.html" %} {% load i18n %} @@ -11,27 +11,24 @@ {% endif %} {% endblock %} - {% block content %} - {% if assignment %} -

{% trans "Edit election" %}

- {% else %} -

{% trans "New election" %}

- {% endif %} +

+ {% if assignment %} + {% trans "Edit election" %} + {% else %} + {% trans "New election" %} + {% endif %} + + {% trans "Back to overview" %} + +

{% csrf_token %} - {{ form.as_p }} + {% include "form.html" %}

- - - - + {% include "formbuttons_saveapply.html" %} + + {% trans 'Cancel' %}

* {% trans "required" %} diff --git a/openslides/assignment/templates/assignment/overview.html b/openslides/assignment/templates/assignment/overview.html index 6719b429c..03ce6fd96 100644 --- a/openslides/assignment/templates/assignment/overview.html +++ b/openslides/assignment/templates/assignment/overview.html @@ -1,30 +1,41 @@ -{% extends "assignment/base_assignment.html" %} +{% extends "base.html" %} {% load i18n %} {% load staticfiles %} {% block title %}{{ block.super }} – {% trans "Elections" %}{% endblock %} -{% block content %} -

{% trans "Elections" %}

-

+{% block content %} +

{% trans "Elections" %} + + {% if perms.assignment.can_manage_assignment %} + {% trans "New" %} + {% endif %} + {% if perms.assignment.can_see_assignment %} + PDF + {% endif %} + +

+ + {% trans "Filter" %}: - -
-

- {{ assignments|length }} - {% blocktrans count counter=assignments|length %}election{% plural %}elections{% endblocktrans %} + + + {{ assignments|length }} + {% blocktrans count counter=assignments|length %}election{% plural %}elections{% endblocktrans %} + - + {% for assignment in assignments %} @@ -32,7 +43,7 @@ {% if assignment.active %}activeline{% endif %}"> - +
{% trans "Election" %} {% trans "Candidates" %}{% trans "Status" %}{% trans "Status" %} {% trans "Actions" %}
{{ assignment }} {{ assignment.candidates|length }} / {{ assignment.posts }}{{ assignment.get_status_display }}{{ assignment.get_status_display }} {% if perms.projector.can_manage_projector %} diff --git a/openslides/assignment/templates/assignment/view.html b/openslides/assignment/templates/assignment/view.html index fc4feb615..60c92890d 100644 --- a/openslides/assignment/templates/assignment/view.html +++ b/openslides/assignment/templates/assignment/view.html @@ -1,225 +1,234 @@ -{% extends "assignment/base_assignment.html" %} +{% extends "base.html" %} {% load i18n %} {% load staticfiles %} {% block title %}{{ block.super }} – {% trans "Election" %} "{{ assignment }}"{% endblock %} +{% block header %} + +{% endblock %} + +{% block javascript %} + +{% endblock %} + {% block content %} - {% endblock %}