list.twig 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <form id="rteListForm" class="ajax" action="{{ url(table is not empty ? '/table/triggers' : '/database/triggers') }}">
  2. {{ get_hidden_inputs(db, table) }}
  3. <fieldset>
  4. <legend>
  5. {% trans 'Triggers' %}
  6. {{ show_mysql_docu('TRIGGERS') }}
  7. </legend>
  8. <div id="nothing2display"{{ items is not empty ? ' class="hide"' }}>
  9. {% trans 'There are no triggers to display.' %}
  10. </div>
  11. <table id="triggersTable" class="table table-light table-striped table-hover{{ items is empty ? ' hide' }} w-auto data">
  12. <thead class="thead-light">
  13. <tr>
  14. <th></th>
  15. <th>{% trans 'Name' %}</th>
  16. {% if table is empty %}
  17. <th>{% trans 'Table' %}</th>
  18. {% endif %}
  19. <th colspan="3">{% trans 'Action' %}</th>
  20. <th>{% trans 'Time' %}</th>
  21. <th>{% trans 'Event' %}</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. <tr class="hide">{% for i in 0..(table is empty ? 7 : 6) %}<td></td>{% endfor %}</tr>
  26. {{ rows|raw }}
  27. </tbody>
  28. </table>
  29. {% if items is not empty %}
  30. <div class="withSelected">
  31. <img class="selectallarrow" src="{{ select_all_arrow_src }}" width="38" height="22" alt="{% trans 'With selected:' %}">
  32. <input type="checkbox" id="rteListForm_checkall" class="checkall_box" title="{% trans 'Check all' %}">
  33. <label for="rteListForm_checkall">{% trans 'Check all' %}</label>
  34. <em class="with-selected">{% trans 'With selected:' %}</em>
  35. <button class="btn btn-link mult_submit" type="submit" name="submit_mult" value="export" title="{% trans 'Export' %}">
  36. {{ get_icon('b_export', 'Export'|trans) }}
  37. </button>
  38. <button class="btn btn-link mult_submit" type="submit" name="submit_mult" value="drop" title="{% trans 'Drop' %}">
  39. {{ get_icon('b_drop', 'Drop'|trans) }}
  40. </button>
  41. </div>
  42. {% endif %}
  43. </fieldset>
  44. </form>