Display multi item link on top of generic lists as well
This commit is contained in:
@@ -26,9 +26,33 @@
|
||||
{% endif %}
|
||||
|
||||
<form action="{% url multi_object_action_view %}" class="form" method="get">
|
||||
{% if scrollable_content %}
|
||||
<div style="border: 1px solid; height: {{ scrollable_content_height }}; overflow: auto;">
|
||||
{% endif %}
|
||||
|
||||
{% if multi_select or multi_select_as_buttons %}
|
||||
{% if multi_select_as_buttons %}
|
||||
{% get_multi_item_links as multi_item_links %}
|
||||
<div class="group navform wat-cf">
|
||||
{% for link in multi_item_links %}
|
||||
<button class="button" type="submit" name="action" value="{{ link.url }}">
|
||||
{% if link.famfam %}<span class="famfam active famfam-{{ link.famfam|default:'link' }}"></span>{% endif %}{{ link.text|capfirst }}
|
||||
</button>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
{% with "true" as form_hide_required_text %}
|
||||
{% get_multi_item_links_form %}
|
||||
{% endwith %}
|
||||
<div class="group navform wat-cf">
|
||||
<button class="button" type="submit" name="{{ form.prefix }}-submit">
|
||||
<img src="{{ MEDIA_URL }}web_theme_media/images/icons/tick.png" alt="{% if object %}{% trans 'Save' %}{% else %}{% trans 'Submit' %}{% endif %}" /> {% if object %}{% trans "Save" %}{% else %}{% trans "Submit" %}{% endif %}
|
||||
</button>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if scrollable_content %}
|
||||
<div style="border: 1px solid; height: {{ scrollable_content_height }}; overflow: auto;">
|
||||
{% endif %}
|
||||
|
||||
<table class="table">
|
||||
<tbody>
|
||||
{% if not hide_header %}
|
||||
@@ -106,9 +130,11 @@
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% if scrollable_content %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if scrollable_content %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if multi_select or multi_select_as_buttons %}
|
||||
{% if multi_select_as_buttons %}
|
||||
{% get_multi_item_links as multi_item_links %}
|
||||
|
||||
Reference in New Issue
Block a user