|
|
|
@@ -18,14 +18,14 @@
|
|
|
|
|
{% if show_fieldsets_as_tabs %}
|
|
|
|
|
{% for fieldset in adminform %}
|
|
|
|
|
{% with fieldset.name|default_if_none:opts.verbose_name as tab_name %}
|
|
|
|
|
<button type="button" id="tablink-{{ tab_name|slugify }}" class="tabbed-changeform-tablink {{ forloop.counter0|default:'active' }}" onclick="AdminInterface.tabbedChangeForm.openTab(event, '{{ tab_name|slugify }}')">
|
|
|
|
|
<button type="button" id="tablink-{{ tab_name|admin_interface_slugify }}" class="tabbed-changeform-tablink {{ forloop.counter0|default:'active' }}" onclick="AdminInterface.tabbedChangeForm.openTab(event, '{{ tab_name|admin_interface_slugify }}')">
|
|
|
|
|
{{ tab_name|capfirst }}
|
|
|
|
|
</button>
|
|
|
|
|
{% endwith %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% else %}
|
|
|
|
|
{% with opts.verbose_name as tab_name %}
|
|
|
|
|
<button type="button" id="tablink-{{ tab_name|slugify }}" class="tabbed-changeform-tablink active" onclick="AdminInterface.tabbedChangeForm.openTab(event, '{{ tab_name|slugify }}')">
|
|
|
|
|
<button type="button" id="tablink-{{ tab_name|admin_interface_slugify }}" class="tabbed-changeform-tablink active" onclick="AdminInterface.tabbedChangeForm.openTab(event, '{{ tab_name|admin_interface_slugify }}')">
|
|
|
|
|
{{ tab_name|capfirst }}
|
|
|
|
|
</button>
|
|
|
|
|
{% endwith %}
|
|
|
|
@@ -34,7 +34,7 @@
|
|
|
|
|
{% if show_inlines_as_tabs %}
|
|
|
|
|
{% for inline_admin_formset in inline_admin_formsets %}
|
|
|
|
|
{% with inline_admin_formset.opts.verbose_name_plural as tab_name %}
|
|
|
|
|
<button type="button" id="tablink-{{ tab_name|slugify }}" class="tabbed-changeform-tablink" onclick="AdminInterface.tabbedChangeForm.openTab(event, '{{ tab_name|slugify }}')">
|
|
|
|
|
<button type="button" id="tablink-{{ tab_name|admin_interface_slugify }}" class="tabbed-changeform-tablink" onclick="AdminInterface.tabbedChangeForm.openTab(event, '{{ tab_name|admin_interface_slugify }}')">
|
|
|
|
|
{{ tab_name|capfirst }}
|
|
|
|
|
</button>
|
|
|
|
|
{% endwith %}
|
|
|
|
@@ -48,14 +48,14 @@
|
|
|
|
|
{% if show_fieldsets_as_tabs %}
|
|
|
|
|
{% for fieldset in adminform %}
|
|
|
|
|
{% with fieldset.name|default_if_none:opts.verbose_name as tab_name %}
|
|
|
|
|
<div id="tabcontent-{{ tab_name|slugify }}" class="tabbed-changeform-tabcontent {{ forloop.counter0|default:'active' }}">
|
|
|
|
|
<div id="tabcontent-{{ tab_name|admin_interface_slugify }}" class="tabbed-changeform-tabcontent {{ forloop.counter0|default:'active' }}">
|
|
|
|
|
{% include "admin/includes/headerless_fieldset.html" %}
|
|
|
|
|
</div>
|
|
|
|
|
{% endwith %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% else %}
|
|
|
|
|
{% with opts.verbose_name as tab_name %}
|
|
|
|
|
<div id="tabcontent-{{ tab_name|slugify }}" class="tabbed-changeform-tabcontent active">
|
|
|
|
|
<div id="tabcontent-{{ tab_name|admin_interface_slugify }}" class="tabbed-changeform-tabcontent active">
|
|
|
|
|
{% for fieldset in adminform %}
|
|
|
|
|
{% include "admin/includes/fieldset.html" %}
|
|
|
|
|
{% endfor %}
|
|
|
|
@@ -65,7 +65,7 @@
|
|
|
|
|
|
|
|
|
|
{% for inline_admin_formset in inline_admin_formsets %}
|
|
|
|
|
{% with inline_admin_formset.opts.verbose_name_plural as tab_name %}
|
|
|
|
|
<div id="tabcontent-{{ tab_name|slugify }}" class="tabbed-changeform-tabcontent">
|
|
|
|
|
<div id="tabcontent-{{ tab_name|admin_interface_slugify }}" class="tabbed-changeform-tabcontent">
|
|
|
|
|
{% get_admin_interface_inline_template inline_admin_formset.opts.template as inline_template %}
|
|
|
|
|
{% include inline_template %}
|
|
|
|
|
</div>
|
|
|
|
|