row.twig 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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>
  10. {% if has_edit_privilege %}
  11. <a class="ajax edit_anchor" href="{{ url('/database/routines', {
  12. 'db': db,
  13. 'table': table,
  14. 'edit_item': true,
  15. 'item_name': routine.name,
  16. 'item_type': routine.type
  17. }) }}">
  18. {{ get_icon('b_edit', 'Edit'|trans) }}
  19. </a>
  20. {% else %}
  21. {{ get_icon('bd_edit', 'Edit'|trans) }}
  22. {% endif %}
  23. </td>
  24. <td>
  25. {% if has_execute_privilege and execute_action is not empty %}
  26. {% if execute_action == 'execute_routine' %}
  27. <a class="ajax exec_anchor" href="{{ url('/database/routines', {'db': db, 'table': table}) }}" data-post="{{ get_common({
  28. 'execute_routine': true,
  29. 'item_name': routine.name,
  30. 'item_type': routine.type
  31. }, '') }}">
  32. {{ get_icon('b_nextpage', 'Execute'|trans) }}
  33. </a>
  34. {% else %}
  35. <a class="ajax exec_anchor" href="{{ url('/database/routines', {
  36. 'db': db,
  37. 'table': table,
  38. 'execute_dialog': true,
  39. 'item_name': routine.name,
  40. 'item_type': routine.type
  41. }) }}">
  42. {{ get_icon('b_nextpage', 'Execute'|trans) }}
  43. </a>
  44. {% endif %}
  45. {% else %}
  46. {{ get_icon('bd_nextpage', 'Execute'|trans) }}
  47. {% endif %}
  48. </td>
  49. <td>
  50. {% if has_export_privilege %}
  51. <a class="ajax export_anchor" href="{{ url('/database/routines', {
  52. 'db': db,
  53. 'table': table,
  54. 'export_item': true,
  55. 'item_name': routine.name,
  56. 'item_type': routine.type
  57. }) }}">
  58. {{ get_icon('b_export', 'Export'|trans) }}
  59. </a>
  60. {% else %}
  61. {{ get_icon('bd_export', 'Export'|trans) }}
  62. {% endif %}
  63. </td>
  64. <td>
  65. {{ link_or_button(
  66. url('/sql', {
  67. 'db': db,
  68. 'table': table,
  69. 'sql_query': sql_drop,
  70. 'goto': url('/database/routines', {'db': db})
  71. }),
  72. get_icon('b_drop', 'Drop'|trans),
  73. {'class': 'ajax drop_anchor'}
  74. ) }}
  75. </td>
  76. <td>
  77. {{ routine.type }}
  78. </td>
  79. <td dir="ltr">
  80. {{ routine.returns }}
  81. </td>
  82. </tr>