actions.html 1.1 KB

1234567891011121314151617181920212223
  1. {% load i18n %}
  2. <div class="actions">
  3. {% for field in action_form %}
  4. {{ field }}
  5. {% endfor %}
  6. <button type="submit" class="button" title="{% trans "Run the selected action" %}" name="index" value="{{ action_index|default:0 }}">{% trans "Go" %}</button>
  7. {% if actions_selection_counter %}
  8. <script type="text/javascript">var _actions_icnt="{{ cl.result_list|length|default:"0" }}";</script>
  9. <span class="actions-label small">
  10. <span class="action-counter">{{ selection_note }}</span>
  11. {% if cl.result_count != cl.result_list|length %}
  12. <span class="all">{{ selection_note_all }}</span>
  13. <span class="question">
  14. <a href="javascript://" 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>
  15. </span>
  16. <span class="clear"><a href="javascript://">{% trans "Clear selection" %}</a></span>
  17. {% endif %}
  18. </span>
  19. {% endif %}
  20. </div>