Fixes workflows to work without javascript.

Fixes bug 1006170.

Change-Id: I8b873f06553208c7b257bd1c013809ed88a0ef60
This commit is contained in:
Gabriel Hurley
2012-09-07 14:47:12 -07:00
parent 5e6d5058a4
commit 34cd3163e4
3 changed files with 13 additions and 5 deletions

View File

@@ -12,15 +12,18 @@
<ul class="nav nav-tabs">
{% for step in workflow.steps %}
<li class="{% if entry_point == step.slug %}active{% endif %}{% if step.has_errors %} error{% endif %}">
<a data-toggle="tab" data-target="#{{ step.get_id }}">{{ step }}</a>
<a href="#{{ step.get_id }}" data-toggle="tab" data-target="#{{ step.get_id }}">{{ step }}</a>
</li>
{% endfor %}
</ul>
<div class="tab-content">
{% for step in workflow.steps %}
<fieldset id="{{ step.get_id }}" class="tab-pane{% if entry_point == step.slug %} active{% endif %}">
{{ step.render }}
</fieldset>
<fieldset id="{{ step.get_id }}" class="js-tab-pane{% if entry_point == step.slug %} active{% endif %}">
{{ step.render }}
</fieldset>
{% if not forloop.last %}
<noscript><hr /></noscript>
{% endif %}
{% endfor %}
</div>
{% endblock %}