aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/tabbed_form.html
diff options
context:
space:
mode:
Diffstat (limited to 'servo/templates/tabbed_form.html')
-rwxr-xr-xservo/templates/tabbed_form.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/servo/templates/tabbed_form.html b/servo/templates/tabbed_form.html
new file mode 100755
index 0000000..03dae90
--- /dev/null
+++ b/servo/templates/tabbed_form.html
@@ -0,0 +1,14 @@
+<ul class="nav nav-tabs">
+{% for k, v in form.tabs %}
+ <li><a href="#tab{{ forloop.counter }}" data-toggle="tab">{{ k }}</a></li>
+{% endfor %}
+</ul>
+<div class="tab-content">
+{% for k, v in form.tabs %}
+ <div class="tab-pane" id="tab{{ forloop.counter }}">
+ <fieldset>
+ {% include "form_snippet.html" with form=v %}
+ </fieldset>
+ </div>
+{% endfor %}
+</div>