2018-05-05 12:40:41 +00:00
{% extends "base.html" %}
2023-03-03 20:03:41 +00:00
{% block title %}{{lang.words.admin_area|title()}}{% endblock %}
{% block h2 %}{{lang.words.admin_area|title()}}{% endblock %}
2018-05-05 12:40:41 +00:00
{% block content %}
2021-12-20 07:29:52 +00:00
{% from 'include/input_macros.html' import input, select, copy_to_clipboard, checkbox %}
2018-05-05 12:40:41 +00:00
< script src = "/inc/users.js" > < / script >
2018-09-28 10:35:44 +00:00
< script src = "/inc/fontawesome.min.js" > < / script >
2019-10-25 07:18:57 +00:00
{% include 'include/del_confirm.html' %}
2018-05-05 12:40:41 +00:00
< div id = "tabs" >
2022-11-28 07:47:18 +00:00
< ul id = "admin-tabs" >
2023-02-13 14:45:45 +00:00
< li > < a href = "#users" title = "{{lang.words.admin_area|title()}}: {{lang.words.manage|title()}} {{lang.words.users}} - Roxy-WI" > {{lang.words.users|title()}}< / a > < / li >
< li > < a href = "#groups" title = "{{lang.words.admin_area|title()}}: {{lang.words.manage|title()}} {{lang.words.groups}} - Roxy-WI" > {{lang.words.groups|title()}}< / a > < / li >
< li > < a href = "#servers" title = "{{lang.words.admin_area|title()}}: {{lang.words.manage|title()}} {{lang.words.servers}} - Roxy-WI" > {{lang.words.servers|title()}}< / a > < / li >
< li > < a href = "#ssh" title = "{{lang.words.admin_area|title()}}: {{lang.words.manage|title()}} SSH {{lang.words.creds}} - Roxy-WI" > SSH {{lang.words.creds}}< / a > < / li >
< li > < a href = "#openvpn" title = "{{lang.words.admin_area|title()}}: {{lang.words.manage|title()}} OpenVPN - Roxy-WI" id = "admin-tabs-vpn" > OpenVPN< / a > < / li >
< li > < a href = "#settings" title = "{{lang.words.admin_area|title()}}: {{lang.words.manage|title()}} Roxy-WI {{lang.words.settings}} - Roxy-WI" > {{lang.words.settings|title()}}< / a > < / li >
2023-09-17 09:42:39 +00:00
< li > < a href = "#tools" title = "{{lang.words.admin_area|title()}}: {{lang.words.manage|title()}} Roxy-WI {{lang.words.tools}} - Roxy-WI" > {{lang.words.tools|title()}}< / a > < / li >
2023-02-13 14:45:45 +00:00
< li > < a href = "#updatehapwi" title = "{{lang.words.admin_area|title()}}: {{lang.words.w_update|title()}} Roxy-WI - Roxy-WI" > {{lang.words.w_update|title()}}< / a > < / li >
2023-04-02 16:58:55 +00:00
< li > < a href = "#backup" title = "{{lang.words.admin_area|title()}}: {{lang.words.manage|title()}} {{lang.words.backup|title()}} {{lang.words.configs}} - Roxy-WI" id = "admin-tabs-backup" > {{lang.words.backup|title()}}< / a > < / li >
2018-05-05 12:40:41 +00:00
< / ul >
< div id = "users" >
2020-09-05 06:31:40 +00:00
{% include 'include/admin_users.html' %}
2018-05-05 12:40:41 +00:00
< / div >
2020-09-05 06:31:40 +00:00
2018-05-05 12:40:41 +00:00
< div id = "groups" >
< table class = "overview" id = "ajax-group" >
2020-01-18 23:50:43 +00:00
< thead >
2018-05-05 12:40:41 +00:00
< tr class = "overviewHead" >
2023-05-17 17:38:13 +00:00
< th class = "padding10" style = "width: 0;" > Id< / th >
2023-02-13 14:45:45 +00:00
< th class = "padding10 first-collumn" > {{lang.words.name|title()}}< / th >
< th style = "width: 100%;" > {{lang.words.desc|title()}}< / th >
2020-01-18 23:50:43 +00:00
< th > < / th >
2018-05-05 12:40:41 +00:00
< / tr >
2020-01-18 23:50:43 +00:00
< tbody >
2018-05-05 12:40:41 +00:00
{% for group in groups %}
2021-08-02 08:19:22 +00:00
< tr id = "group-{{ group.group_id }}" class = "{{ loop.cycle('odd', 'even') }}" >
2023-05-17 17:38:13 +00:00
< td class = "padding10" style = "width: 0" > {{group.group_id}}< / td >
2022-04-29 10:28:48 +00:00
{% if group.name == "Default" %}
2021-08-02 08:19:22 +00:00
< td class = "padding10 first-collumn" > {{ group.name }}< / td >
< td > {{ group.description }}< / td >
2018-05-05 12:40:41 +00:00
< td > < / td >
{% else %}
< td class = "padding10 first-collumn" >
2021-08-31 08:31:55 +00:00
{% set id = 'name-' + group.group_id|string() %}
2021-08-02 08:19:22 +00:00
{{ input(id, value=group.name) }}
2018-05-05 12:40:41 +00:00
< / td >
2020-08-04 16:40:58 +00:00
< td >
2021-08-02 08:19:22 +00:00
{% set id = 'descript-' + group.group_id|string() %}
{% if group.description is not none %}
{{ input(id, value=group.description, size='60') }}
2018-10-01 02:32:13 +00:00
{% else %}
2020-04-06 16:38:58 +00:00
{{ input(id, value='', size='60') }}
2018-10-01 02:32:13 +00:00
{% endif %}
2018-05-05 12:40:41 +00:00
< / td >
< td >
2023-03-19 15:51:58 +00:00
< a class = "delete" onclick = "confirmDeleteGroup({{ group.group_id }})" title = "{{lang.words.delete|title()}} {{lang.words.group2}} {{group.name}}" style = "cursor: pointer;" > < / a >
2018-05-05 12:40:41 +00:00
< / td >
{% endif %}
< / tr >
{% endfor %}
2020-01-18 23:50:43 +00:00
< / tbody >
2018-05-05 12:40:41 +00:00
< / table >
2023-03-19 15:51:58 +00:00
< br / > < span class = "add-button" title = "{{lang.words.add|title()}} {{lang.words.group2}}" id = "add-group-button" > + {{lang.words.add|title()}}< / span >
2018-05-05 12:40:41 +00:00
< br / > < br / >
2021-06-02 07:28:07 +00:00
< div class = "add-note alert addName alert-info" style = "width: inherit; margin-right: 15px;" >
2023-02-13 14:45:45 +00:00
{{lang.phrases.read_howto}} < a href = "https://roxy-wi.org/howto/roles-and-groups" title = "How to use groups and roles" target = "_blank" > {{lang.words.article}}< / a >
{{lang.words.and}} {{lang.words.this2}} < a href = "https://roxy-wi.org/howto/setup" title = "How to setup servers, group and SSH credentials" target = "_blank" > {{lang.words.article}}< / a >
2019-10-14 21:23:49 +00:00
< / div >
2018-05-05 12:40:41 +00:00
< / div >
< div id = "servers" >
2020-09-04 19:12:31 +00:00
{% include 'include/admin_servers.html' %}
2018-05-05 12:40:41 +00:00
< / div >
2019-10-14 06:55:29 +00:00
2018-05-07 13:24:22 +00:00
< div id = "ssh" >
2020-08-11 09:54:03 +00:00
{% include 'include/admin_ssh.html' %}
2018-05-05 12:40:41 +00:00
< / div >
2020-10-09 15:56:16 +00:00
2021-02-20 07:47:33 +00:00
< div id = "openvpn" > < / div >
2019-10-21 06:00:16 +00:00
< div id = "settings" >
2020-08-10 18:32:44 +00:00
{% include 'include/admin_settings.html' %}
2019-10-21 06:00:16 +00:00
< / div >
2023-09-17 09:42:39 +00:00
< div id = "tools" >
2020-05-12 18:57:05 +00:00
< table id = "services_table" class = "overview" >
2021-02-20 07:47:33 +00:00
< thead >
< tr class = "overviewHead" >
< td class = "padding10 first-collumn" style = "width: 25%;" >
2023-02-13 14:45:45 +00:00
{{lang.words.service|title()}}
2020-05-12 18:57:05 +00:00
< / td >
2021-07-21 04:57:58 +00:00
< td class = "padding10 first-collumn" >
2023-02-13 14:45:45 +00:00
{{lang.words.actions|title()}}
2020-05-12 18:57:05 +00:00
< / td >
2023-04-09 13:11:16 +00:00
< td class = "first-collumn" > {{lang.words.version|title()}}< / td >
2023-02-13 14:45:45 +00:00
< td style = "width: 100%" > {{lang.words.desc|title()}}< / td >
< td > < span onclick = "loadServices()" class = "refresh" title = "{{lang.words.reload|title()}} {{lang.words.services}}" > < / span > < / td >
2020-05-12 18:57:05 +00:00
< / tr >
2021-02-20 07:47:33 +00:00
< / thead >
< tbody id = "ajax-services-body" > < / tbody >
2020-05-12 18:57:05 +00:00
< / table >
2021-06-02 07:28:07 +00:00
< div class = "add-note alert addName alert-info" style = "width: inherit; margin-right: 15px;" >
2023-02-13 14:45:45 +00:00
{{lang.words.read|title()}} {{lang.words.about}} {{lang.words.services}} < a href = "https://roxy-wi.org/services" title = "Roxy-WI {{lang.words.services4}}" target = "_blank" > {{lang.words.here}}< / a >
2020-05-12 18:57:05 +00:00
< / div >
< / div >
2019-10-21 06:00:16 +00:00
< div id = "updatehapwi" >
< table class = "overview" >
2021-02-20 07:47:33 +00:00
< thead >
2019-10-21 06:00:16 +00:00
< tr class = "overviewHead" >
2023-02-13 14:45:45 +00:00
< td class = "padding10 first-collumn" style = "width: 25%;" > {{lang.words.service|title()}}< / td >
2023-04-09 13:11:16 +00:00
< td class = "first-collumn" style = "width: 10%" > {{lang.words.current2|title()}} {{lang.words.version}}< / td >
2023-02-13 14:45:45 +00:00
< td class = "padding10" style = "width: 10%" > {{lang.words.latest|title()}} {{lang.words.version}}< / td >
2022-06-15 07:34:20 +00:00
< td style = "width: 10%" > < / td >
2023-02-13 14:45:45 +00:00
< td style = "width: 100%" > {{lang.words.desc|title()}}< / td >
< td > < span onclick = "loadupdatehapwi()" class = "refresh" title = "{{lang.words.refresh|title()}}" > < / span > < / td >
2019-10-21 06:00:16 +00:00
< / tr >
2021-02-20 07:47:33 +00:00
< / thead >
< tbody id = "ajax-updatehapwi-body" > < / tbody >
2019-10-21 06:00:16 +00:00
< / table >
2021-06-02 07:28:07 +00:00
< div class = "add-note alert addName alert-info" style = "width: inherit; margin-right: 15px;" >
2023-02-13 14:45:45 +00:00
< b style = "font-size: 20px; display: block; padding-bottom: 10px;" > {{lang.words.note|title()}}:< / b >
{{lang.admin_page.desc.for_updating}}. {{lang.words.read|title()}} < a href = "https://roxy-wi.org/installation" title = "Roxy-WI installation" target = "_blank" > {{lang.words.here}}< / a >
{{lang.admin_page.desc.how_to_using_repo}}
2019-10-25 07:18:57 +00:00
< br / > < br / >
2023-02-13 14:45:45 +00:00
{{lang.admin_page.desc.proxy_settings}}
2019-10-25 07:18:57 +00:00
< br / > < br / >
2023-02-13 14:45:45 +00:00
{{lang.words.read|title()}} {{lang.words.about}} {{lang.words.updating}} < a href = "https://roxy-wi.org/updates" title = "Doc" target = "_blank" > docs< / a >
{{lang.words.and}} < a href = "https://roxy-wi.org/changelog" title = "Changelog" target = "_blank" > changelog< / a >
2019-10-21 06:00:16 +00:00
< / div >
< div id = "ajax-update" > < / div >
< / div >
2020-08-08 06:26:43 +00:00
2023-04-02 16:58:55 +00:00
< div id = "backup" >
{% include 'include/admin_backup.html' %}
< / div >
2020-01-11 21:16:27 +00:00
< / div >
2020-08-07 15:14:59 +00:00
{% include 'include/admins_dialogs.html' %}
2020-01-18 23:50:43 +00:00
< script >
2020-05-10 06:17:07 +00:00
$( function() {
{% for user in users %}
2021-08-02 08:19:22 +00:00
$("#role-{{user.role_id}}" ).selectmenu({
2020-05-10 06:17:07 +00:00
width: 100
});
{% endfor %}
{% for server in servers %}
$("#servergroup-{{ server.0}}" ).selectmenu({
width: 100
});
$("#slavefor-{{server.0}}" ).selectmenu({
2023-02-13 14:45:45 +00:00
width: 115
2020-05-10 06:17:07 +00:00
});
$("#credentials-{{server.0}}" ).selectmenu({
width: 150
});
{% endfor %}
{% for ssh in sshs %}
if (window.matchMedia('(max-width: 1280px)').matches) {
$("#sshgroup-{{ ssh.0}}" ).selectmenu({
width: 100
2020-01-18 23:50:43 +00:00
});
2020-05-10 06:17:07 +00:00
}
{% endfor %}
{% for server in backups %}
2021-08-02 08:19:22 +00:00
$("#backup-time-{{ server.id}}" ).selectmenu({
2020-05-10 06:17:07 +00:00
width: 100
});
2021-08-02 08:19:22 +00:00
$("#backup-type-{{server.id}}" ).selectmenu({
2020-05-10 06:17:07 +00:00
width: 130
});
2021-08-02 08:19:22 +00:00
$("#backup-credentials-{{server.id}}" ).selectmenu({
2020-05-10 06:17:07 +00:00
width: 150
});
{% endfor %}
});
< / script >
2022-08-15 08:50:29 +00:00
< link href = "/inc/css/servers.css" rel = "stylesheet" / >
2022-11-28 07:47:18 +00:00
{% include 'include/intro/admin.html' %}
2022-12-06 18:29:14 +00:00
{% include 'include/intro/js_script.html' %}
2022-07-30 17:00:36 +00:00
{% endblock %}