haproxy-wi/app/templates/include/admin_add_server.html

67 lines
2.2 KiB
HTML

{% from 'include/input_macros.html' import input, checkbox %}
<tr>
<td class="padding20">
{{lang.words.name|title()}}
<span class="need-field">*</span>
</td>
<td>{{ input('new-server-add') }}</td>
<tr>
<td class="padding20">
IP
<span class="need-field">*</span>
</td>
<td>{{ input('new-ip') }}</td>
<tr>
<td class="padding20" title="SSH port">
{{lang.words.port|title()}}
<span class="need-field">*</span>
</td>
<td>{{ input('new-port', value='22', type='number') }}</td>
</tr>
<tr>
<td class="padding20">{{lang.words.enable|title()}}</td>
<td>{{ checkbox('enable', checked='checked') }}</td>
</tr>
<tr>
<td class="padding20" title="{{lang.words.virtual|title()}} IP(VRRP)">{{lang.words.virt|title()}}</td>
<td>{{ checkbox('typeip') }}</td>
</tr>
<tr>
<td class="padding20 help_cursor" title="{{lang.phrases.add_to_smon_desc}}">{{lang.words.add|title()}} {{lang.words.in}} SMON</td>
<td>{{ checkbox('add_to_smon', checked='checked') }}</td>
</tr>
<tr>
<td class="padding20 help_cursor" title="{{lang.phrases.scan_title}}">{{lang.words.scan|title()}} {{lang.words.the}} {{lang.words.server}}</td>
<td>{{ checkbox('scan_server', checked='checked') }}</td>
</tr>
<tr class="services_for_scan" style="display: none">
<td class="padding20" title="{{lang.words.is_there}} HAProxy?">HAProxy</td>
<td>{{ checkbox('haproxy') }} </td>
</tr>
<tr class="services_for_scan" style="display: none">
<td class="padding20" title="{{lang.words.is_there}} NGINX?">NGINX</td>
<td>{{ checkbox('nginx') }}</td>
</tr>
<tr class="services_for_scan" style="display: none">
<td class="padding20" title="{{lang.words.is_there}} Apache?">Apache</td>
<td>{{ checkbox('apache') }}</td>
</tr>
<tr class="services_for_scan" style="display: none">
<td class="padding20" title="{{lang.words.is_there}} Firewall?">Firewall</td>
<td>{{ checkbox('firewall') }}</td>
</tr>
<tr>
<td class="padding20 help_cursor" title="{{lang.phrases.slave_for_title}}">{{lang.words.slave_for}}</td>
<td>
<select id="slavefor">
<option value="0" selected>------</option>
{% for master in masters %}
<option value="{{master.0}}">{{master.1}}</option>
{% endfor %}
</select>
</td>
</tr>
<tr>
<td class="padding20">{{lang.words.desc|title()}}</td>
<td>{{ input('desc', size='30') }}</td>
</tr>