mass_actions.html 786 B

12345678910111213141516171819
  1. {% load i18n %}
  2. <div class="col-auto ml-auto">
  3. <form id="mass-action" action="{{ querystring }}" method="post">
  4. <div class="dropdown">
  5. <button type="button" class="btn btn-light btn-sm dropdown-toggle" data-toggle="dropdown">
  6. <span class="fas fa-check-square"></span>
  7. </button>
  8. {% csrf_token %}
  9. <div class="dropdown-menu dropdown-menu-right">
  10. {% for action in mass_actions %}
  11. <button class="dropdown-item" type="submit" name="action" value="{{ action.action }}" {% if action.confirmation %}data-confirmation="{{ action.confirmation }}"{% endif %}>
  12. <span class="{{ action.icon }}"></span>
  13. {{ action.name }}
  14. </button>
  15. {% endfor %}
  16. </div>
  17. </div><!-- /.dropdown -->
  18. </form>
  19. </div>