thread_actions.html 831 B

1234567891011121314151617181920
  1. {% load i18n %}
  2. <div class="btn-group pull-right">
  3. <form id="thread-actions" method="post">
  4. {% csrf_token %}
  5. <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
  6. <span class="fa fa-gears"></span>
  7. {% trans "Thread actions" %}
  8. </button>
  9. <ul class="dropdown-menu scrollable" role="menu">
  10. {% for action in thread_actions.get_list %}
  11. <li>
  12. <button type="{% if not action.is_button %}submit{% else %}button{% endif %}" name="thread_action" value="{{ action.action }}" class="action-{{ action.action }}" {% if action.confirmation %}data-confirmation="{{ action.confirmation }}"{% endif %}>
  13. <span class="fa fa-{{ action.icon }} fa-fw"></span>
  14. {{ action.name }}
  15. </button>
  16. </li>
  17. {% endfor %}
  18. </ul>
  19. </form>
  20. </div>