Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract HTML from new user ajax call
Server\Privileges::getExtraDataForAjaxBehavior Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
- Loading branch information
1 parent
b075f07
commit 5cc6709
Showing
2 changed files
with
82 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<tr> | ||
<td> | ||
<input type="checkbox" name="selected_usr[]" id="checkbox_sel_users_" value=" | ||
{{- user.name ~ '&#27;' ~ user.host }}"> | ||
</td> | ||
<td> | ||
<label for="checkbox_sel_users_"> | ||
{% if user.name is empty %} | ||
<span class="text-danger">{% trans 'Any' %}</span> | ||
{% else %} | ||
{{ user.name }} | ||
{% endif %} | ||
</label> | ||
</td> | ||
<td> | ||
{{ user.host }} | ||
</td> | ||
<td> | ||
{% if user.has_password %} | ||
{% trans 'Yes' %} | ||
{% else %} | ||
<span class="text-danger">{% trans 'No' %}</span> | ||
{% endif %} | ||
</td> | ||
<td> | ||
<code> | ||
{{ user.privileges|raw }} | ||
</code> | ||
</td> | ||
{% if user.has_group %} | ||
<td class="usrGroup"></td> | ||
{% endif %} | ||
<td> | ||
{{ user.has_grant ? 'Yes'|trans : 'No'|trans }} | ||
</td> | ||
{% if is_grantuser %} | ||
<td> | ||
<a class="edit_user_anchor" href="{{ url('/server/privileges', { | ||
'username': user.name, | ||
'hostname': user.host, | ||
'dbname': '', | ||
'tablename': '', | ||
'routinename': '' | ||
}) }}"> | ||
{{ get_icon('b_usredit', 'Edit privileges'|trans) }} | ||
</a> | ||
</td> | ||
{% endif %} | ||
{% if user.has_group_edit %} | ||
<td> | ||
<a class="edit_user_group_anchor ajax" href="{{ url('/server/privileges', {'username': user.name}) }}"> | ||
{{ get_icon('b_usrlist', 'Edit user group'|trans) }} | ||
</a> | ||
</td> | ||
{% endif %} | ||
<td> | ||
<a class="export_user_anchor ajax" href="{{ url('/server/privileges', { | ||
'username': user.name, | ||
'hostname': user.host, | ||
'export': true, | ||
'initial': initial | ||
}) }}"> | ||
{{ get_icon('b_tblexport', 'Export'|trans) }} | ||
</a> | ||
</td> | ||
</tr> |