row.twig 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <tr{% if row_class is not empty %} class="{{ row_class }}"{% endif %}>
  2. <td>
  3. <input type="checkbox" class="checkall" name="item_name[]" value="{{ trigger.name }}">
  4. </td>
  5. <td>
  6. <span class='drop_sql hide'>{{ trigger.drop }}</span>
  7. <strong>{{ trigger.name }}</strong>
  8. </td>
  9. {% if table is empty %}
  10. <td>
  11. <a href="{{ url('/table/triggers', {'db': db, 'table': trigger.table}) }}">{{ trigger.table }}</a>
  12. </td>
  13. {% endif %}
  14. <td>
  15. {% if has_edit_privilege %}
  16. <a class="ajax edit_anchor" href="{{ url('/database/triggers', {
  17. 'db': db,
  18. 'table': table,
  19. 'edit_item': true,
  20. 'item_name': trigger.name
  21. }) }}">
  22. {{ get_icon('b_edit', 'Edit'|trans) }}
  23. </a>
  24. {% else %}
  25. {{ get_icon('bd_edit', 'Edit'|trans) }}
  26. {% endif %}
  27. </td>
  28. <td>
  29. <a class="ajax export_anchor" href="{{ url('/database/triggers', {
  30. 'db': db,
  31. 'table': table,
  32. 'export_item': true,
  33. 'item_name': trigger.name
  34. }) }}">
  35. {{ get_icon('b_export', 'Export'|trans) }}
  36. </a>
  37. </td>
  38. <td>
  39. {% if has_drop_privilege %}
  40. {{ link_or_button(
  41. url('/sql', {
  42. 'db': db,
  43. 'table': table,
  44. 'sql_query': trigger.drop,
  45. 'goto': url('/database/triggers', {'db': db})
  46. }),
  47. get_icon('b_drop', 'Drop'|trans),
  48. {'class': 'ajax drop_anchor'}
  49. ) }}
  50. {% else %}
  51. {{ get_icon('bd_drop', 'Drop'|trans) }}
  52. {% endif %}
  53. </td>
  54. <td>
  55. {{ trigger.action_timing }}
  56. </td>
  57. <td>
  58. {{ trigger.event_manipulation }}
  59. </td>
  60. </tr>