mirror of https://github.com/Aidaho12/haproxy-wi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
185 lines
6.0 KiB
185 lines
6.0 KiB
{% extends "base.html" %}
|
|
{% block content %}
|
|
{% from 'include/input_macros.html' import input, select %}
|
|
<script src="/inc/users.js"></script>
|
|
<script src="/inc/fontawesome.min.js"></script>
|
|
{% include 'include/del_confirm.html' %}
|
|
<div id="tabs">
|
|
<ul>
|
|
<li><a href="#users" title="Admin area: Manage users - HAProxy-WI">Users</a></li>
|
|
<li><a href="#groups" title="Admin area: Manage groups - HAProxy-WI">Groups</a></li>
|
|
<li><a href="#servers" title="Admin area: Manage servers - HAProxy-WI">Servers</a></li>
|
|
<li><a href="#ssh" title="Admin area: Manage SSH credentials - HAProxy-WI">SSH credentials</a></li>
|
|
<li><a href="#checker" title="Admin area: Manage checker - HAProxy-WI">Checker</a></li>
|
|
<li><a href="#openvpn" title="Admin area: OpenVPN - HAProxy-WI">OpenVPN</a></li>
|
|
<li><a href="#settings" title="Admin area: Manage HAProxy-WI settings - HAProxy-WI">Settings</a></li>
|
|
<li><a href="#services" title="Admin area: Manage HAProxy-WI services - HAProxy-WI">Services</a></li>
|
|
<li><a href="#updatehapwi" title="Admin area: Update HAProxy-WI - HAProxy-WI">Update</a></li>
|
|
<li><a href="#backup" title="Admin area: Backup configs - HAProxy-WI">Backup</a></li>
|
|
<li><a href="#installmon" title="Servers: Monitoring service installation - HAProxy-WI">Monitoring installation</a></li>
|
|
{% include 'include/login.html' %}
|
|
</ul>
|
|
<ul id='browse_histroy'></ul>
|
|
|
|
<div id="users">
|
|
{% include 'include/admin_users.html' %}
|
|
</div>
|
|
|
|
<div id="groups">
|
|
<table class="overview" id="ajax-group">
|
|
<thead>
|
|
<tr class="overviewHead">
|
|
<th class="padding10 first-collumn">Name</th>
|
|
<th style="width: 100%;">Description</th>
|
|
<th></th>
|
|
</tr>
|
|
<tbody>
|
|
{% for group in groups %}
|
|
<tr id="group-{{ group.0 }}" class="{{ loop.cycle('odd', 'even') }}">
|
|
{% if group.1 == "All" %}
|
|
<td class="padding10 first-collumn">{{ group.1 }}</td>
|
|
<td>{{ group.2 }}</td>
|
|
<td></td>
|
|
{% else %}
|
|
<td class="padding10 first-collumn">
|
|
{% set id = 'name-' + group.0|string() %}
|
|
{{ input(id, value=group.1) }}
|
|
</td>
|
|
<td>
|
|
{% set id = 'descript-' + group.0|string() %}
|
|
{% if group.2 != "None" %}
|
|
{{ input(id, value=group.2, size='60') }}
|
|
{% else %}
|
|
{{ input(id, value='', size='60') }}
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
<a class="delete" onclick="confirmDeleteGroup({{ group.0 }})" title="Delete group {{group.1}}" style="cursor: pointer;"></a>
|
|
</td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<br /><span class="add-button" title="Add group" id="add-group-button">+ Add</span>
|
|
<br /><br />
|
|
<div class="add-note addName alert-info" style="width: inherit; margin-right: 15px;">
|
|
How to setup groups you can read in this <a href="https://haproxy-wi.org/howto.py?howto=setup" title="How to setup servers, group and SSH credentials" target="_blank">article</a>
|
|
</div>
|
|
</div>
|
|
<div id="servers">
|
|
{% include 'include/admin_servers.html' %}
|
|
</div>
|
|
|
|
<div id="ssh">
|
|
{% include 'include/admin_ssh.html' %}
|
|
</div>
|
|
|
|
<div id="checker"></div>
|
|
|
|
<div id="openvpn"></div>
|
|
|
|
<div id="settings">
|
|
{% include 'include/admin_settings.html' %}
|
|
</div>
|
|
|
|
<div id="services">
|
|
<table id="services_table" class="overview">
|
|
<thead>
|
|
<tr class="overviewHead">
|
|
<td class="padding10 first-collumn" style="width: 25%;">
|
|
Service
|
|
</td>
|
|
<td class="padding10 first-collumn" style="width: 35%;">
|
|
Actions
|
|
</td>
|
|
<td>Description</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="ajax-services-body"></tbody>
|
|
</table>
|
|
<div class="add-note addName alert-info" style="width: inherit; margin-right: 15px;">
|
|
You can read about services <a href="https://haproxy-wi.org/services.py" title="HAProxy-WI services" target="_blank">here</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="updatehapwi">
|
|
<table class="overview">
|
|
<thead>
|
|
<tr class="overviewHead">
|
|
<td class="padding10 first-collumn" style="width: 25%;">Service</td>
|
|
<td>Currnet version</td>
|
|
<td class="padding10">Last version</td>
|
|
<td></td>
|
|
<td>
|
|
Description
|
|
</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="ajax-updatehapwi-body"></tbody>
|
|
</table>
|
|
<div class="add-note addName alert-info" style="width: inherit; margin-right: 15px;">
|
|
<b style="font-size: 20px; display: block; padding-bottom: 10px;">Note:</b>
|
|
For updating you have to use HAProxy-WI RPM. How to start using repository read <a href="https://haproxy-wi.org/installation.py" title="HAProxy-WI installation" target="_blank">here</a>
|
|
<br /><br />
|
|
If the HAProxy-WI server uses a proxy to connect to the Internet, add the proxy settings to yum.conf
|
|
<br /><br />
|
|
Read more about updating in <a href="https://haproxy-wi.org/updates.py" title="Doc" target="_blank">docs</a>
|
|
and <a href="https://haproxy-wi.org/changelog.py" title="Changelog" target="_blank">changelog</a>
|
|
</div>
|
|
<div id="ajax-update"></div>
|
|
</div>
|
|
|
|
<div id="backup">
|
|
{% include 'include/admin_backup.html' %}
|
|
</div>
|
|
|
|
<div id="installmon">
|
|
{% include 'include/mon_installation.html' %}
|
|
</div>
|
|
</div>
|
|
{% include 'include/admins_dialogs.html' %}
|
|
{% include 'include/change_pass_form.html' %}
|
|
<div id="change-user-groups-dialog" style="display: none;">
|
|
<div id="change-user-groups-form"></div>
|
|
</div>
|
|
<script>
|
|
$( function() {
|
|
{% for user in users %}
|
|
$("#role-{{user.0}}" ).selectmenu({
|
|
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
|
|
});
|
|
}
|
|
{% endfor %}
|
|
{% for server in backups %}
|
|
$("#backup-time-{{ server.0}}" ).selectmenu({
|
|
width: 100
|
|
});
|
|
$("#backup-type-{{server.0}}" ).selectmenu({
|
|
width: 130
|
|
});
|
|
$("#backup-credentials-{{server.0}}" ).selectmenu({
|
|
width: 150
|
|
});
|
|
{% endfor %}
|
|
});
|
|
</script>
|
|
<link href="/inc/servers.css" rel="stylesheet"/>
|
|
{% endblock %} |