Updated config template.

This commit is contained in:
Emanuel Schuetze 2012-09-10 17:40:41 +02:00
parent 74ffad6ced
commit ce233fc870
7 changed files with 28 additions and 14 deletions

View File

@ -5,7 +5,9 @@
{% block title %}{{ block.super }} {% trans "Agenda settings" %}{% endblock %} {% block title %}{{ block.super }} {% trans "Agenda settings" %}{% endblock %}
{% block content %} {% block content %}
<h1>{% trans "Agenda settings" %}</h1> <h1>{% trans "Configuration" %}: {% trans "Agenda" %}
{% block config_submenu %}{{ block.super }}{% endblock %}
</h1>
<form action="" method="post">{% csrf_token %} <form action="" method="post">{% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<p> <p>

View File

@ -5,7 +5,9 @@
{% block title %}{{ block.super }} {% trans "Application settings" %}{% endblock %} {% block title %}{{ block.super }} {% trans "Application settings" %}{% endblock %}
{% block content %} {% block content %}
<h1>{% trans "Application settings" %}</h1> <h1>{% trans "Configuration" %}: {% trans "Applications" %}
{% block config_submenu %}{{ block.super }}{% endblock %}
</h1>
<form action="" method="post">{% csrf_token %} <form action="" method="post">{% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<p> <p>

View File

@ -5,7 +5,9 @@
{% block title %}{{ block.super }} {% trans "Election settings" %}{% endblock %} {% block title %}{{ block.super }} {% trans "Election settings" %}{% endblock %}
{% block content %} {% block content %}
<h1>{% trans "Election settings" %}</h1> <h1>{% trans "Configuration" %}: {% trans "Elections" %}
{% block config_submenu %}{{ block.super }}{% endblock %}
</h1>
<form action="" method="post">{% csrf_token %} <form action="" method="post">{% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<p> <p>

View File

@ -1,13 +1,15 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load tags %}
{% load i18n %} {% load i18n %}
{% block submenu %} {% block config_submenu %}
<h4 class="sectiontitle">{% trans "Configuration" %}</h4> <small class="pull-right">
<ul> <div class="btn-toolbar">
<div class="btn-group">
{% for menu_link in menu_links %} {% for menu_link in menu_links %}
<li{% if menu_link.2 %} class="selected"{% endif %}><a href="{{ menu_link.0 }}">{{ menu_link.1 }}</a></li> <a href="{{ menu_link.0 }}" class="btn btn-mini {% if menu_link.2 %}active{% endif %}">{{ menu_link.1 }}</a>
{% endfor %} {% endfor %}
</ul> </div>
</div>
</small>
{% endblock %} {% endblock %}

View File

@ -5,7 +5,9 @@
{% block title %}{{ block.super }} {% trans "General settings" %}{% endblock %} {% block title %}{{ block.super }} {% trans "General settings" %}{% endblock %}
{% block content %} {% block content %}
<h1>{% trans "General settings" %}</h1> <h1>{% trans "Configuration" %}: {% trans "General" %}
{% block config_submenu %}{{ block.super }}{% endblock %}
</h1>
<form action="" method="post">{% csrf_token %} <form action="" method="post">{% csrf_token %}
<fieldset> <fieldset>
<legend>{% trans "Event" %}</legend> <legend>{% trans "Event" %}</legend>

View File

@ -5,7 +5,9 @@
{% block title %}{{ block.super }} {% trans "Version" %}{% endblock %} {% block title %}{{ block.super }} {% trans "Version" %}{% endblock %}
{% block content %} {% block content %}
<h1>{% trans "Version" %}</h1> <h1>{% trans "Version" %}
{% block config_submenu %}{{ block.super }}{% endblock %}
</h1>
{% for version in versions %} {% for version in versions %}
<p>{{ version.0 }} {% trans "Version" %}: {{ version.1 }}</p> <p>{{ version.0 }} {% trans "Version" %}: {{ version.1 }}</p>

View File

@ -5,7 +5,9 @@
{% block title %}{{ block.super }} {% trans "Participant settings" %}{% endblock %} {% block title %}{{ block.super }} {% trans "Participant settings" %}{% endblock %}
{% block content %} {% block content %}
<h1>{% trans "Participant settings" %}</h1> <h1>{% trans "Configuration" %}: {% trans "Participants" %}
{% block config_submenu %}{{ block.super }}{% endblock %}
</h1>
<form action="" method="post">{% csrf_token %} <form action="" method="post">{% csrf_token %}
{% include "form.html" %} {% include "form.html" %}
<p> <p>