list.twig 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <div class="container-fluid my-3">
  2. <h2>
  3. {{ get_icon('b_triggers', 'Triggers'|trans) }}
  4. {{ show_mysql_docu('TRIGGERS') }}
  5. </h2>
  6. <div class="d-flex flex-wrap my-3">
  7. {%- if items is not empty %}
  8. <div>
  9. <div class="input-group">
  10. <div class="input-group-text">
  11. <div class="form-check mb-0">
  12. <input class="form-check-input checkall_box" type="checkbox" value="" id="checkAllCheckbox" form="rteListForm">
  13. <label class="form-check-label" for="checkAllCheckbox">{% trans 'Check all' %}</label>
  14. </div>
  15. </div>
  16. <button class="btn btn-outline-secondary" id="bulkActionExportButton" type="submit" name="submit_mult" value="export" form="rteListForm" title="{% trans 'Export' %}">
  17. {{ get_icon('b_export', 'Export'|trans) }}
  18. </button>
  19. <button class="btn btn-outline-secondary" id="bulkActionDropButton" type="submit" name="submit_mult" value="drop" form="rteListForm" title="{% trans 'Drop' %}">
  20. {{ get_icon('b_drop', 'Drop'|trans) }}
  21. </button>
  22. </div>
  23. </div>
  24. {%- endif %}
  25. <div{{ items is not empty ? ' class="ms-auto"' }}>
  26. <a class="ajax add_anchor btn btn-primary{{ not has_privilege ? ' disabled' }}" href="{{ url('/database/triggers', {'db': db, 'table': table, 'add_item': true}) }}" role="button"{{ not has_privilege ? ' tabindex="-1" aria-disabled="true"' }}>
  27. {{ get_icon('b_trigger_add', 'Create new trigger'|trans) }}
  28. </a>
  29. </div>
  30. </div>
  31. <form id="rteListForm" class="ajax" action="{{ url(table is not empty ? '/table/triggers' : '/database/triggers') }}">
  32. {{ get_hidden_inputs(db, table) }}
  33. <div id="nothing2display"{{ items is not empty ? ' class="hide"' }}>
  34. {{ 'There are no triggers to display.'|trans|notice }}
  35. </div>
  36. <table id="triggersTable" class="table table-striped table-hover{{ items is empty ? ' hide' }} w-auto data">
  37. <thead>
  38. <tr>
  39. <th></th>
  40. <th>{% trans 'Name' %}</th>
  41. {% if table is empty %}
  42. <th>{% trans 'Table' %}</th>
  43. {% endif %}
  44. <th>{% trans 'Time' %}</th>
  45. <th>{% trans 'Event' %}</th>
  46. <th colspan="3"></th>
  47. </tr>
  48. </thead>
  49. <tbody>
  50. <tr class="hide">{% for i in 0..(table is empty ? 7 : 6) %}<td></td>{% endfor %}</tr>
  51. {{- rows|raw }}
  52. </tbody>
  53. </table>
  54. </form>
  55. </div>