Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extracts HTML from ReplicationGui::getHtmlForReplicationMasterAddSlav…
…eUser Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
- Loading branch information
1 parent
6909dfb
commit 63edfe3
Showing
2 changed files
with
44 additions
and
51 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,24 @@ | ||
<div id="master_addslaveuser_gui"> | ||
<form action="server_privileges.php" method="post" autocomplete="off" onsubmit="return checkAddUser(this);"> | ||
{{ get_hidden_inputs('', '') }} | ||
<fieldset id="fieldset_add_user_login"> | ||
<legend>{% trans 'Add slave replication user' %}</legend> | ||
|
||
{{ add_user_login_form|raw }} | ||
|
||
<div class="item"> | ||
<label for="select_pred_hostname"> | ||
{% trans 'Host:' %} | ||
</label> | ||
<span class="options"> | ||
<select name="pred_hostname" id="select_pred_hostname" title="{% trans 'Host' %}" | ||
{%- if this_host is not null %} data-thishost="{{ this_host }}"{% endif %}> | ||
<option value="any"{{ predefined_hostname == 'any' ? ' selected' }}>{% trans 'Any host' %}</option> | ||
<option value="localhost"{{ predefined_hostname == 'localhost' ? ' selected' }}>{% trans 'Local' %}</option> | ||
{% if this_host is not null %} | ||
<option value="thishost"{{ predefined_hostname == 'thishost' ? ' selected' }}>{% trans 'This Host' %}</option> | ||
{% endif %} | ||
|
||
{{ table_info_form|raw }} | ||
</form> | ||
</div> |