2018-05-05 12:40:41 +00:00
{% extends "base.html" %}
{% 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" >
< ul >
2021-06-02 07:28:07 +00:00
< li > < a href = "#users" title = "Admin area: Manage users - Roxy-WI" > Users< / a > < / li >
< li > < a href = "#groups" title = "Admin area: Manage groups - Roxy-WI" > Groups< / a > < / li >
< li > < a href = "#servers" title = "Admin area: Manage servers - Roxy-WI" > Servers< / a > < / li >
< li > < a href = "#ssh" title = "Admin area: Manage SSH credentials - Roxy-WI" > SSH credentials< / a > < / li >
< li > < a href = "#checker" title = "Admin area: Manage checker - Roxy-WI" > Checker< / a > < / li >
< li > < a href = "#openvpn" title = "Admin area: OpenVPN - Roxy-WI" > OpenVPN< / a > < / li >
< li > < a href = "#settings" title = "Admin area: Manage Roxy-WI settings - Roxy-WI" > Settings< / a > < / li >
< li > < a href = "#services" title = "Admin area: Manage Roxy-WI services - Roxy-WI" > Services< / a > < / li >
< li > < a href = "#updatehapwi" title = "Admin area: Update Roxy-WI - Roxy-WI" > Update< / a > < / li >
< li > < a href = "#backup" title = "Admin area: Backup configs - Roxy-WI" > Backup< / a > < / li >
< li > < a href = "#installmon" title = "Servers: Monitoring service installation - Roxy-WI" > Monitoring installation< / a > < / li >
2019-10-25 07:18:57 +00:00
{% include 'include/login.html' %}
2018-05-05 12:40:41 +00:00
< / ul >
2020-01-12 16:13:48 +00:00
< ul id = 'browse_histroy' > < / ul >
2020-09-05 06:31:40 +00:00
2018-05-05 12:40:41 +00:00
< 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" >
2020-01-18 23:50:43 +00:00
< th class = "padding10 first-collumn" > Name< / th >
2020-08-07 15:14:59 +00:00
< th style = "width: 100%;" > Description< / 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') }}" >
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 >
2021-08-02 08:19:22 +00:00
< a class = "delete" onclick = "confirmDeleteGroup({{ group.group_id }})" title = "Delete group {{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 >
< br / > < span class = "add-button" title = "Add group" id = "add-group-button" > + Add< / span >
< br / > < br / >
2021-06-02 07:28:07 +00:00
< div class = "add-note alert addName alert-info" style = "width: inherit; margin-right: 15px;" >
2022-07-30 17:00:36 +00:00
How to setup groups you can read in this < a href = "https://roxy-wi.org/howto/roles-and-groups" title = "How to use groups and roles" target = "_blank" > article< / a >
and this < a href = "https://roxy-wi.org/howto/setup" title = "How to setup servers, group and SSH credentials" target = "_blank" > 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 >
2018-07-25 05:25:27 +00:00
2021-02-20 07:47:33 +00:00
< div id = "checker" > < / 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 >
2020-05-12 18:57:05 +00:00
< div id = "services" >
< 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%;" >
Service
2020-05-12 18:57:05 +00:00
< / td >
2021-07-21 04:57:58 +00:00
< td class = "padding10 first-collumn" >
2021-02-20 07:47:33 +00:00
Actions
2020-05-12 18:57:05 +00:00
< / td >
2021-07-21 04:57:58 +00:00
< td class = "padding10" > Version< / td >
< td style = "width: 100%" > Description< / td >
2022-04-27 18:10:26 +00:00
< td > < span onclick = "loadServices()" class = "refresh" title = "Reload 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;" >
2022-07-30 17:00:36 +00:00
You can read about services < a href = "https://roxy-wi.org/services" title = "Roxy-WI services" target = "_blank" > 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" >
2020-09-24 05:01:48 +00:00
< td class = "padding10 first-collumn" style = "width: 25%;" > Service< / td >
2022-06-15 07:34:20 +00:00
< td class = "padding10" style = "width: 10%" > Current version< / td >
< td class = "padding10" style = "width: 10%" > Latest version< / td >
< td style = "width: 10%" > < / td >
< td style = "width: 100%" > Description< / td >
2022-04-27 18:10:26 +00:00
< td > < span onclick = "loadupdatehapwi()" class = "refresh" title = "Reload Update" > < / 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;" >
2019-10-21 06:00:16 +00:00
< b style = "font-size: 20px; display: block; padding-bottom: 10px;" > Note:< / b >
2022-07-30 17:00:36 +00:00
For updating you have to use Roxy-WI RPM or DEB. Read < a href = "https://roxy-wi.org/installation" title = "Roxy-WI installation" target = "_blank" > here< / a >
2021-08-31 08:31:55 +00:00
how to start using repository
2019-10-25 07:18:57 +00:00
< br / > < br / >
2021-06-02 07:28:07 +00:00
If the Roxy-WI server uses a proxy to connect to the Internet, add the proxy settings to yum.conf
2019-10-25 07:18:57 +00:00
< br / > < br / >
2022-07-30 17:00:36 +00:00
Read more about updating in < a href = "https://roxy-wi.org/updates" title = "Doc" target = "_blank" > docs< / a >
2021-07-21 04:57:58 +00:00
and < a href = "https://roxy-wi.org/changelog.py" 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
2020-01-11 21:16:27 +00:00
< div id = "backup" >
2020-08-08 06:26:43 +00:00
{% include 'include/admin_backup.html' %}
2020-01-11 21:16:27 +00:00
< / div >
2020-08-08 20:54:53 +00:00
< div id = "installmon" >
{% include 'include/mon_installation.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-05-10 06:17:07 +00:00
< div id = "change-user-groups-dialog" style = "display: none;" >
< div id = "change-user-groups-form" > < / div >
< / div >
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({
width: 130
});
$("#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 >
2021-01-12 05:05:53 +00:00
< link href = "/inc/servers.css" rel = "stylesheet" / >
2022-07-30 17:00:36 +00:00
{% endblock %}