user_groups.twig 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <div class="row"><h2>{% trans 'User groups' %}</h2></div>
  2. {% if has_rows > 0 %}
  3. <form name="userGroupsForm" id="userGroupsForm" action="{{ action|raw }}" method="post">
  4. {{ hidden_inputs|raw }}
  5. <table class="table table-light table-striped table-hover">
  6. <thead class="thead-light">
  7. <tr class="text-nowrap">
  8. <th scope="col">
  9. {% trans 'User groups' %}
  10. </th>
  11. <th scope="col">
  12. {% trans 'Server level tabs' %}
  13. </th>
  14. <th scope="col">
  15. {% trans 'Database level tabs' %}
  16. </th>
  17. <th scope="col">
  18. {% trans 'Table level tabs' %}
  19. </th>
  20. <th scope="col">
  21. {% trans 'Action' %}
  22. </th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. {% for groupName in user_groups_values %}
  27. <tr>
  28. <td>{{ groupName.name }}</td>
  29. <td>{{ groupName.serverTab }}</td>
  30. <td>{{ groupName.dbTab }}</td>
  31. <td>{{ groupName.tableTab }}</td>
  32. <td class="text-nowrap">
  33. <a class="" href="{{ groupName.userGroupUrl|raw }}" data-post="{{ groupName.viewUsersUrl|raw }}">{{ groupName.viewUsersIcon|raw }}</a>
  34. &nbsp;&nbsp;
  35. <a class="" href="{{ groupName.userGroupUrl|raw }}" data-post="{{ groupName.editUsersUrl|raw }}">{{ groupName.editUsersIcon|raw }}</a>
  36. &nbsp;&nbsp;
  37. <a class="deleteUserGroup ajax" href="{{ groupName.userGroupUrl|raw }}" data-post="{{ groupName.deleteUsersUrl|raw }}">{{ groupName.deleteUsersIcon|raw }}</a>
  38. </td>
  39. </tr>
  40. {% endfor %}
  41. </tbody>
  42. </table>
  43. </form>
  44. {% endif %}
  45. <div class="row">
  46. <fieldset id="fieldset_add_user_group">
  47. <a href="{{ add_user_url|raw }}">{{ add_user_icon|raw }}{% trans 'Add user group' %}</a>
  48. </fieldset>
  49. </div>