Newer
Older
postorius / src / postorius / templates / postorius / lists / settings.html
@Florian Fuchs Florian Fuchs on 18 Nov 2012 1 KB * moved some sub navs to template tags
{% extends extend_template %}
{% load url from future %}
{% load i18n %}
{% load nav_helpers %}

{% block main %}
    {% list_nav 'list_settings' 'Settings' %}

    <ul class="nav nav-tabs">
        {% for section in form_sections %}
        <li {% if section.0 == visible_section %}class="active"{% endif %}><a href="{% url 'list_settings' fqdn_listname=list.fqdn_listname visible_section=section.0 visible_option=None %}">{{section.0}}</a></li>
        {% endfor %}
    </ul>

    {% if visible_section %}

        <table class="well">
        <form class="well" action="{% url 'list_settings' fqdn_listname=list.fqdn_listname visible_section=visible_section visible_option=visible_option %}" method="post" class="list_settings"> {% csrf_token %}
        {% for field in form %}
            <tr><td>
                {{ field.errors }}
                {{ field.label_tag }}: <br />
                [<span class="more_info"><a href="#">More info</a><span>{{ field.help_text }}
                </span></span>]
            </td><td>{{ field }}</td></tr>
        {% endfor %}
        <tr><td colspan="2">
	         <button class="btn btn-primary" type="submit">{%trans "Save changes" %}</button>
        </td></tr>
        </form>
        </table>
    {% endif %}

{% endblock %}