index.twig 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <div class="row">
  2. <div class="col-12">
  3. <fieldset id="tableFilter">
  4. <legend>{% trans "Filters" %}</legend>
  5. <div class="formelement">
  6. <label for="filterText">{% trans "Containing the word:" %}</label>
  7. <input name="filterText" type="text" id="filterText" value="">
  8. </div>
  9. </fieldset>
  10. </div>
  11. </div>
  12. <form id="rteListForm" class="ajax" action="{{ url('/database/routines') }}">
  13. {{ get_hidden_inputs(db, table) }}
  14. <fieldset>
  15. <legend>
  16. {% trans 'Routines' %}
  17. {{ show_mysql_docu('STORED_ROUTINES') }}
  18. </legend>
  19. <div id="nothing2display"{{ items is not empty ? ' class="hide"' }}>
  20. {% trans 'There are no routines to display.' %}
  21. </div>
  22. <table id="routinesTable" class="table table-light table-striped table-hover{{ items is empty ? ' hide' }} data w-auto">
  23. <thead class="thead-light">
  24. <tr>
  25. <th></th>
  26. <th>{% trans 'Name' %}</th>
  27. <th colspan="4">{% trans 'Action' %}</th>
  28. <th>{% trans 'Type' %}</th>
  29. <th>{% trans 'Returns' %}</th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. <tr class="hide">{% for i in 0..7 %}<td></td>{% endfor %}</tr>
  34. {{ rows|raw }}
  35. </tbody>
  36. </table>
  37. {% if items is not empty %}
  38. <div class="withSelected">
  39. <img class="selectallarrow" src="{{ select_all_arrow_src }}" width="38" height="22" alt="{% trans 'With selected:' %}">
  40. <input type="checkbox" id="rteListForm_checkall" class="checkall_box" title="{% trans 'Check all' %}">
  41. <label for="rteListForm_checkall">{% trans 'Check all' %}</label>
  42. <em class="with-selected">{% trans 'With selected:' %}</em>
  43. <button class="btn btn-link mult_submit" type="submit" name="submit_mult" value="export" title="{% trans 'Export' %}">
  44. {{ get_icon('b_export', 'Export'|trans) }}
  45. </button>
  46. <button class="btn btn-link mult_submit" type="submit" name="submit_mult" value="drop" title="{% trans 'Drop' %}">
  47. {{ get_icon('b_drop', 'Drop'|trans) }}
  48. </button>
  49. </div>
  50. {% endif %}
  51. </fieldset>
  52. </form>
  53. <fieldset class="left">
  54. <legend>{% trans %}New{% context %}Create new routine{% endtrans %}</legend>
  55. <div class='wrap'>
  56. {% if has_privilege %}
  57. <a class="ajax add_anchor" href="{{ url('/database/routines', {'db': db, 'table': table, 'add_item': true}) }}">
  58. {{ get_icon('b_routine_add') }}
  59. {% trans 'Add routine' %}
  60. </a>
  61. {% else %}
  62. {{ get_icon('bd_routine_add') }}
  63. {% trans 'Add routine' %}
  64. {% endif %}
  65. {{ show_mysql_docu('CREATE_PROCEDURE') }}
  66. </div>
  67. </fieldset>