Files
modoboa/templates/common/tabforms.html
T
Antoine Nguyen 4f9bc5ea27 wip: Per-domain policy support
* The domain edition form was converted to a "TabsForm"
* New events added : "ExtraDomainForm" and "FillDomainInstances"
* Creation and modification of policies work

see #260
2012-06-07 09:31:51 +02:00

23 lines
863 B
HTML

{% extends "common/generic_modal.html" %}
{% load i18n libextras %}
{% block modalbody %}
<form id="{{ formid }}" class="form-horizontal" action="{{ action }}" method="POST">
<ul class="nav nav-pills">{% for tab in tabs %}
<li class="{% if tabs.active_id == tab.id %}active{% endif %}">
<a href="#{{ tab.id }}" data-toggle="tab">{{ tab.title }}</a>
</li>{% endfor %}
{% block extratabs %}{% endblock %}
</ul>
<div class="tab-content">
{% for tab in tabs %}<div class="tab-pane{% if tabs.active_id == tab.id %} active{% endif %}" id="{{ tab.id }}">
{% if tab.formtpl %}
{% render_form tab.instance tab.formtpl %}
{% else %}
{% render_form tab.instance %}
{% endif %}
</div>{% endfor %}
{% block extratabs_content %}{% endblock %}
</div>
</form>
{% endblock %}