mirror of
https://github.com/Hopiu/djLint.git
synced 2026-03-16 21:40:24 +00:00
44 lines
1.9 KiB
HTML
44 lines
1.9 KiB
HTML
{% load i18n %}
|
|
<div class="actions">
|
|
{% block actions %}
|
|
{% block actions-form %}
|
|
{% for field in action_form %}
|
|
{% if field.label %}
|
|
<label>
|
|
{{ field.label }}
|
|
{% endif %}
|
|
{{ field }}
|
|
{% if field.label %}</label>{% endif %}
|
|
{% endfor %}
|
|
{% endblock %}
|
|
{% block actions-submit %}
|
|
<button type="submit"
|
|
class="button"
|
|
title="{% translate "
|
|
Run the selected action" %}" name="index"
|
|
value="{{ action_index|default:0 }}">
|
|
{% translate "Go" %}
|
|
</button>
|
|
{% endblock %}
|
|
{% block actions-counter %}
|
|
{% if actions_selection_counter %}
|
|
<span class="action-counter" data-actions-icnt="{{ cl.result_list|length }}">
|
|
{{ selection_note }}
|
|
</span>
|
|
{% if cl.result_count != cl.result_list|length %}
|
|
<span class="all hidden">{{ selection_note_all }}</span>
|
|
<span class="question hidden">
|
|
<a href="#" title="{% translate ">
|
|
{% blocktranslate with cl.result_count as total_count %}
|
|
Select all {{ total_count }} {{ module_name }}
|
|
{% endblocktranslate %}
|
|
</a>
|
|
</span>
|
|
<span class="clear hidden">
|
|
<a href="#">{% translate "Clear selection" %}</a>
|
|
</span>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
{% endblock %}
|
|
</div>
|