Update website
This commit is contained in:
parent
a0b0d3dae7
commit
ae7ef6ad45
3151 changed files with 566766 additions and 48 deletions
|
@ -0,0 +1,23 @@
|
|||
{% if user_group == null %}
|
||||
<h2>{% trans 'Add user group' %}</h2>
|
||||
{% else %}
|
||||
<h2>{{ 'Edit user group: \'%s\''|trans|format(edit_user_group_special_chars) }}</h2>
|
||||
{% endif %}
|
||||
<form name="userGroupForm" id="userGroupForm" action="{{ user_group_url|raw }}" method="post">
|
||||
{{ hidden_inputs|raw }}
|
||||
<fieldset id="fieldset_user_group_rights">
|
||||
<legend>{% trans 'User group menu assignments' %}
|
||||
<input type="checkbox" id="addUsersForm_checkall" class="checkall_box" title="Check all">
|
||||
<label for="addUsersForm_checkall">{% trans 'Check all' %}</label>
|
||||
</legend>
|
||||
{% if user_group == null %}
|
||||
<label for="userGroup">{% trans 'Group name:' %}</label>
|
||||
<input type="text" name="userGroup" maxlength="64" autocomplete="off" required="required">
|
||||
<div class="clearfloat"></div>
|
||||
{% endif %}
|
||||
{{ tab_list|raw }}
|
||||
</fieldset>
|
||||
<fieldset id="fieldset_user_group_rights_footer" class="tblFooters">
|
||||
<input class="btn btn-primary" type="submit" value="{% trans 'Go' %}">
|
||||
</fieldset>
|
||||
</form>
|
13
admin/phpMyAdmin/templates/server/user_groups/tab_list.twig
Normal file
13
admin/phpMyAdmin/templates/server/user_groups/tab_list.twig
Normal file
|
@ -0,0 +1,13 @@
|
|||
<fieldset>
|
||||
<legend>
|
||||
{{ title }}
|
||||
</legend>
|
||||
{% for tab_detail in tab_details %}
|
||||
<div class="item">
|
||||
<input type="checkbox" class="checkall"{{ tab_detail.in_array|raw }} name="{{ level }}_{{ tab_detail.tab }}" value="Y">
|
||||
<label for="{{ level }}_{{ tab_detail.tab }}">
|
||||
<code>{{ tab_detail.tab_name }}</code>
|
||||
</label>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</fieldset>
|
|
@ -0,0 +1,49 @@
|
|||
<div class="row"><h2>{% trans 'User groups' %}</h2></div>
|
||||
{% if has_rows > 0 %}
|
||||
<form name="userGroupsForm" id="userGroupsForm" action="{{ action|raw }}" method="post">
|
||||
{{ hidden_inputs|raw }}
|
||||
<table class="table table-light table-striped table-hover">
|
||||
<thead class="thead-light">
|
||||
<tr class="text-nowrap">
|
||||
<th scope="col">
|
||||
{% trans 'User groups' %}
|
||||
</th>
|
||||
<th scope="col">
|
||||
{% trans 'Server level tabs' %}
|
||||
</th>
|
||||
<th scope="col">
|
||||
{% trans 'Database level tabs' %}
|
||||
</th>
|
||||
<th scope="col">
|
||||
{% trans 'Table level tabs' %}
|
||||
</th>
|
||||
<th scope="col">
|
||||
{% trans 'Action' %}
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for groupName in user_groups_values %}
|
||||
<tr>
|
||||
<td>{{ groupName.name }}</td>
|
||||
<td>{{ groupName.serverTab }}</td>
|
||||
<td>{{ groupName.dbTab }}</td>
|
||||
<td>{{ groupName.tableTab }}</td>
|
||||
<td class="text-nowrap">
|
||||
<a class="" href="{{ groupName.userGroupUrl|raw }}" data-post="{{ groupName.viewUsersUrl|raw }}">{{ groupName.viewUsersIcon|raw }}</a>
|
||||
|
||||
<a class="" href="{{ groupName.userGroupUrl|raw }}" data-post="{{ groupName.editUsersUrl|raw }}">{{ groupName.editUsersIcon|raw }}</a>
|
||||
|
||||
<a class="deleteUserGroup ajax" href="{{ groupName.userGroupUrl|raw }}" data-post="{{ groupName.deleteUsersUrl|raw }}">{{ groupName.deleteUsersIcon|raw }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
{% endif %}
|
||||
<div class="row">
|
||||
<fieldset id="fieldset_add_user_group">
|
||||
<a href="{{ add_user_url|raw }}">{{ add_user_icon|raw }}{% trans 'Add user group' %}</a>
|
||||
</fieldset>
|
||||
</div>
|
|
@ -0,0 +1,22 @@
|
|||
<h2>{{ 'Users of \'%s\' user group'|trans|format(user_group_special_chars) }}</h2>
|
||||
{% if num_rows == 0 %}
|
||||
<p>{% trans 'No users were found belonging to this user group.' %}</p>
|
||||
{% else %}
|
||||
<table class="pma-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{% trans 'User' %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for obj in users %}
|
||||
<tr>
|
||||
<td>{{ obj.count }}</td>
|
||||
<td>{{ obj.user }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue