2018-06-28 05:55:07 +00:00
|
|
|
{% extends "base.html" %}
|
2023-02-28 13:56:14 +00:00
|
|
|
{% block title %}{{lang.menu_links.servers.title}}{% endblock %}
|
|
|
|
{% block h2 %}{{lang.menu_links.servers.title}}{% endblock %}
|
2018-06-28 05:55:07 +00:00
|
|
|
{% block content %}
|
2021-07-23 09:40:33 +00:00
|
|
|
{% from 'include/input_macros.html' import input, checkbox, select, copy_to_clipboard %}
|
2018-06-28 05:55:07 +00:00
|
|
|
<script src="/inc/users.js"></script>
|
2019-10-25 07:18:57 +00:00
|
|
|
{% include 'include/del_confirm.html' %}
|
2018-10-03 10:14:57 +00:00
|
|
|
<input type="hidden" id="new-group" name="new-group" value="{{ group }}">
|
|
|
|
<input type="hidden" id="new-server-group-add" name="new-server-group-add" value="{{ group }}" >
|
2020-02-20 20:34:50 +00:00
|
|
|
<input type="hidden" id="new-sshgroup" name="new-sshgroup" value="{{ group }}" >
|
2020-08-07 15:14:59 +00:00
|
|
|
{{ input('new-telegram-group-add', type='hidden', value=group) }}
|
2021-08-02 08:19:22 +00:00
|
|
|
{{ input('new-slack-group-add', type='hidden', value=group) }}
|
2023-08-03 06:56:25 +00:00
|
|
|
{{ input('new-pd-group-add', type='hidden', value=group) }}
|
2018-06-28 05:55:07 +00:00
|
|
|
<div id="tabs">
|
|
|
|
<ul>
|
2023-02-13 14:45:45 +00:00
|
|
|
<li><a href="#users" title="{{lang.words.servers|title()}}: {{lang.words.manage|title()}} {{lang.words.users}} - Roxy-WI">{{lang.words.users|title()}}</a></li>
|
|
|
|
<li><a href="#servers" title="{{lang.words.servers|title()}}: {{lang.words.manage|title()}} {{lang.words.servers}} - Roxy-WI">{{lang.words.servers|title()}}</a></li>
|
|
|
|
<li><a href="#ssh" title="{{lang.words.servers|title()}}: {{lang.words.manage|title()}} SSH {{lang.words.creds}} - Roxy-WI">SSH {{lang.words.creds}}</a></li>
|
|
|
|
<li><a href="#settings" title="{{lang.words.servers|title()}}: {{lang.words.manage|title()}} Roxy-WI {{lang.words.settings}} - Roxy-WI">{{lang.words.settings|title()}}</a></li>
|
2023-04-02 16:58:55 +00:00
|
|
|
<li><a href="#backup" title="{{lang.words.servers|title()}}: {{lang.words.manage|title()}} {{lang.words.backup|title()}} configs - Roxy-WI" id="admin-tabs-backup">{{lang.words.backup|title()}}</a></li>
|
2018-06-28 05:55:07 +00:00
|
|
|
</ul>
|
2018-09-28 16:10:01 +00:00
|
|
|
<div id="users">
|
2020-09-05 06:31:40 +00:00
|
|
|
{% include 'include/admin_users.html' %}
|
2018-09-28 16:10:01 +00:00
|
|
|
</div>
|
2020-08-11 09:54:03 +00:00
|
|
|
|
2018-06-28 05:55:07 +00:00
|
|
|
<div id="servers">
|
2020-09-04 19:12:31 +00:00
|
|
|
{% include 'include/admin_servers.html' %}
|
2018-06-28 05:55:07 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="ssh">
|
2020-08-11 09:54:03 +00:00
|
|
|
{% include 'include/admin_ssh.html' %}
|
2018-06-28 05:55:07 +00:00
|
|
|
</div>
|
2018-07-25 05:25:27 +00:00
|
|
|
|
2020-08-10 18:32:44 +00:00
|
|
|
<div id="settings">
|
|
|
|
{% include 'include/admin_settings.html' %}
|
|
|
|
</div>
|
|
|
|
|
2023-04-02 16:58:55 +00:00
|
|
|
<div id="backup">
|
|
|
|
{% include 'include/admin_backup.html' %}
|
|
|
|
</div>
|
2023-09-17 09:42:39 +00:00
|
|
|
|
2018-07-27 06:46:50 +00:00
|
|
|
</div>
|
2020-08-07 15:14:59 +00:00
|
|
|
{% include 'include/admins_dialogs.html' %}
|
2019-10-25 07:18:57 +00:00
|
|
|
{% include 'include/change_pass_form.html' %}
|
2018-07-27 06:46:50 +00:00
|
|
|
<script>
|
2019-10-01 05:35:05 +00:00
|
|
|
$( function() {
|
|
|
|
{% for user in users %}
|
|
|
|
$("#role-{{user.0}}" ).selectmenu({
|
|
|
|
width: 100
|
|
|
|
});
|
|
|
|
{% endfor %}
|
|
|
|
{% for server in servers %}
|
|
|
|
$("#slavefor-{{server.0}}" ).selectmenu({
|
2023-02-13 14:45:45 +00:00
|
|
|
width: 100
|
2019-10-01 05:35:05 +00:00
|
|
|
});
|
|
|
|
$("#credentials-{{server.0}}" ).selectmenu({
|
|
|
|
width: 150
|
|
|
|
});
|
|
|
|
{% endfor %}
|
2020-01-11 21:16:27 +00:00
|
|
|
{% for ssh in sshs %}
|
|
|
|
$("#sshgroup-{{ ssh.0}}" ).selectmenu({
|
|
|
|
width: 150
|
|
|
|
});
|
|
|
|
{% endfor %}
|
2021-08-02 08:19:22 +00:00
|
|
|
{% for server in backups %}
|
|
|
|
$("#backup-time-{{ server.id}}" ).selectmenu({
|
|
|
|
width: 100
|
|
|
|
});
|
|
|
|
$("#backup-type-{{server.id}}" ).selectmenu({
|
|
|
|
width: 130
|
|
|
|
});
|
|
|
|
$("#backup-credentials-{{server.id}}" ).selectmenu({
|
|
|
|
width: 150
|
|
|
|
});
|
|
|
|
{% endfor %}
|
2019-10-01 05:35:05 +00:00
|
|
|
});
|
2018-07-27 06:46:50 +00:00
|
|
|
</script>
|
2024-02-04 07:28:17 +00:00
|
|
|
<link href="{{ url_for('static', filename='css/servers.css') }}" rel="stylesheet"/>
|
2022-11-28 07:47:18 +00:00
|
|
|
{% include 'include/intro/servers.html' %}
|
2022-12-06 18:29:14 +00:00
|
|
|
{% include 'include/intro/js_script.html' %}
|
2019-12-04 13:38:07 +00:00
|
|
|
{% endblock %}
|