row.twig 1.3 KB

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