2023-02-14 16:46:41 +00:00
|
|
|
{% import 'languages/'+lang|default('en')+'.html' as lang %}
|
2018-06-24 09:31:28 +00:00
|
|
|
{% for ssh in sshs %}
|
2021-08-02 08:19:22 +00:00
|
|
|
<tr style="width: 50%;" id="ssh-table-{{ssh.id}}" class="ssh-table-{{ssh.id}}">
|
2023-04-15 07:33:00 +00:00
|
|
|
<td class="first-collumn padding10">
|
2021-08-02 08:19:22 +00:00
|
|
|
<input type="text" id="ssh_name-{{ssh.id}}" class="form-control" value="{{ssh.name}}" style="margin-bottom: 23px;">
|
2018-06-28 05:55:07 +00:00
|
|
|
</td>
|
|
|
|
<td class="first-collumn" valign="top" style="padding-top: 15px;">
|
2021-08-02 08:19:22 +00:00
|
|
|
{% if ssh.enable == 1 %}
|
2023-02-14 16:46:41 +00:00
|
|
|
<label for="ssh_enable-{{ssh.id}}">{{lang.words.enable|title()}} SSH {{lang.words.key}}</label><input type="checkbox" id="ssh_enable-{{ssh.id}}" checked>
|
2018-06-28 05:55:07 +00:00
|
|
|
{% else %}
|
2023-02-14 16:46:41 +00:00
|
|
|
<label for="ssh_enable-{{ssh.id}}">{{lang.words.enable|title()}} SSH {{lang.words.key}}</label><input type="checkbox" id="ssh_enable-{{ssh.id}}">
|
2018-06-28 05:55:07 +00:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
{% if page != "servers.py" %}
|
|
|
|
<td>
|
2021-08-02 08:19:22 +00:00
|
|
|
<select id="sshgroup-{{ssh.id}}" name="sshgroup-{{ssh.id}}">
|
2018-06-28 05:55:07 +00:00
|
|
|
{% for group in groups %}
|
2023-02-22 07:36:20 +00:00
|
|
|
{% if ssh.groups == group.group_id %}
|
2021-08-02 08:19:22 +00:00
|
|
|
<option value="{{ group.group_id }}" selected>{{ group.name }}</option>
|
2018-06-24 09:31:28 +00:00
|
|
|
{% else %}
|
2021-08-02 08:19:22 +00:00
|
|
|
<option value="{{ group.group_id }}">{{ group.name }}</option>
|
2018-06-24 09:31:28 +00:00
|
|
|
{% endif %}
|
2018-06-28 05:55:07 +00:00
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
<td style="padding-top: 15px;">
|
|
|
|
<p>
|
2021-08-02 08:19:22 +00:00
|
|
|
<input type="text" id="ssh_user-{{ssh.id}}" class="form-control" value="{{ssh.username}}">
|
2018-06-28 05:55:07 +00:00
|
|
|
</p>
|
2021-08-02 08:19:22 +00:00
|
|
|
{% if ssh.enable == 1 %}
|
|
|
|
<input type="password" id="ssh_pass-{{ssh.id}}" class="form-control" placeholder="*****" style="display: none;">
|
2018-06-28 05:55:07 +00:00
|
|
|
{% else %}
|
2021-08-02 08:19:22 +00:00
|
|
|
<input type="password" id="ssh_pass-{{ssh.id}}" class="form-control" placeholder="*****">
|
2018-06-28 05:55:07 +00:00
|
|
|
{% endif %}
|
|
|
|
<br>
|
|
|
|
</td>
|
|
|
|
<td>
|
2023-02-14 16:46:41 +00:00
|
|
|
<a class="delete" onclick="confirmDeleteSsh({{ssh.id}})" title="{{lang.words.delete|title()}} {{ssh.name}}" style="cursor: pointer;"></a>
|
2018-06-28 05:55:07 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2023-02-14 16:46:41 +00:00
|
|
|
{% endfor %}
|