{% extends postorius_base_template %}
{% load i18n %}
{% load bootstrap_tags %}
{% load nav_helpers %}

{% block subtitle %}
{% trans 'Settings' %} | {{ list.fqdn_listname}}
{% endblock %}

{% block main %}

    {% list_nav 'list_settings' 'List Settings' %}

    <ul class="nav nav-tabs margin-bottom">
        {% for section in section_names %}
        <li {% if section.0 == visible_section %}class="active"{% endif %}><a href="{% url 'list_settings' list_id=list.list_id visible_section=section.0 %}">{{ section.1 }}</a></li>
        {% endfor %}
    </ul>

    <form action="{% url 'list_settings' list_id=list.list_id visible_section=visible_section %}"
          method="post" class="form-horizontal list_settings">
        {% render_form_horizontal form 3 8 'Save changes' %}
    </form>

{% endblock %}
