row.twig 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <tr{% if row_class is not empty %} class="{{ row_class }}"{% endif %} data-filter-row="{{ routine.name|upper }}">
  2. <td>
  3. <input type="checkbox" class="checkall" name="item_name[]" value="{{ routine.name }}">
  4. </td>
  5. <td>
  6. <span class="drop_sql hide">{{ sql_drop }}</span>
  7. <strong>{{ routine.name }}</strong>
  8. </td>
  9. <td>{{ routine.type }}</td>
  10. <td dir="ltr">{{ routine.returns }}</td>
  11. <td>
  12. {% if has_edit_privilege %}
  13. <a class="ajax edit_anchor" href="{{ url('/database/routines', {
  14. 'db': db,
  15. 'table': table,
  16. 'edit_item': true,
  17. 'item_name': routine.name,
  18. 'item_type': routine.type
  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. {% if has_execute_privilege and execute_action is not empty %}
  28. {% if execute_action == 'execute_routine' %}
  29. <a class="ajax exec_anchor" href="{{ url('/database/routines', {'db': db, 'table': table}) }}" data-post="{{ get_common({
  30. 'execute_routine': true,
  31. 'item_name': routine.name,
  32. 'item_type': routine.type
  33. }, '') }}">
  34. {{ get_icon('b_nextpage', 'Execute'|trans) }}
  35. </a>
  36. {% else %}
  37. <a class="ajax exec_anchor" href="{{ url('/database/routines', {
  38. 'db': db,
  39. 'table': table,
  40. 'execute_dialog': true,
  41. 'item_name': routine.name,
  42. 'item_type': routine.type
  43. }) }}">
  44. {{ get_icon('b_nextpage', 'Execute'|trans) }}
  45. </a>
  46. {% endif %}
  47. {% else %}
  48. {{ get_icon('bd_nextpage', 'Execute'|trans) }}
  49. {% endif %}
  50. </td>
  51. <td>
  52. {% if has_export_privilege %}
  53. <a class="ajax export_anchor" href="{{ url('/database/routines', {
  54. 'db': db,
  55. 'table': table,
  56. 'export_item': true,
  57. 'item_name': routine.name,
  58. 'item_type': routine.type
  59. }) }}">
  60. {{ get_icon('b_export', 'Export'|trans) }}
  61. </a>
  62. {% else %}
  63. {{ get_icon('bd_export', 'Export'|trans) }}
  64. {% endif %}
  65. </td>
  66. <td>
  67. {{ link_or_button(
  68. url('/sql'),
  69. {
  70. 'db': db,
  71. 'table': table,
  72. 'sql_query': sql_drop,
  73. 'goto': url('/database/routines', {'db': db})
  74. },
  75. get_icon('b_drop', 'Drop'|trans),
  76. {'class': 'ajax drop_anchor'}
  77. ) }}
  78. </td>
  79. </tr>