Skip to content

Commit 6ca5327

Browse files
committed
add actions.html
1 parent 5564e0e commit 6ca5327

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{% load i18n %}
2+
<div class="row">
3+
<div class="col-md-12">
4+
<div class="actions">
5+
{% block actions %}
6+
{% block actions-form %}
7+
{% for field in action_form %}<label>{{ field }}</label>{% endfor %}
8+
{% endblock %}
9+
{% block actions-submit %}
10+
<button type="submit" class="btn btn-primary" style="margin-right: 5px; margin-left: 15px;" title="{% trans "Run the selected action" %}" name="index" value="{{ action_index|default:0 }}">{% trans "Go" %}</button>
11+
{% endblock %}
12+
{% block actions-counter %}
13+
{% if actions_selection_counter %}
14+
<span class="action-counter" data-actions-icnt="{{ cl.result_list|length }}">{{ selection_note }}</span>
15+
{% if cl.result_count != cl.result_list|length %}
16+
<span class="all" style="display: none;">{{ selection_note_all }}</span>
17+
<span class="question" style="display: none;">
18+
<a href="#" title="{% trans "Click here to select the objects across all pages" %}">{% blocktrans with cl.result_count as total_count %}Select all {{ total_count }} {{ module_name }}{% endblocktrans %}</a>
19+
</span>
20+
<span class="clear" style="display: none;"><a href="#">{% trans "Clear selection" %}</a></span>
21+
{% endif %}
22+
{% endif %}
23+
{% endblock %}
24+
{% endblock %}
25+
</div>
26+
</div>
27+
<script>document.querySelector('.actions select').setAttribute('class', 'form-control')</script>
28+
</div>

0 commit comments

Comments
 (0)