refactor web interface
This commit is contained in:
app.py
templates
add_server.htmlbackups.htmlbase.htmlchange_password.htmlclear_hosts.htmlclear_servers.htmledit_host.htmledit_hosts.htmledit_server.htmlhosts.htmlhosts_files.htmlimport_hosts.htmlimport_servers.htmllist_regex_hosts.htmllogin.htmlnew_edit_hosts_file.htmlnew_edit_regex_host.htmlregister.htmlserver_list.htmlsettings.htmlview_backup.html
32
templates/clear_servers.html
Normal file
32
templates/clear_servers.html
Normal file
@ -0,0 +1,32 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}Wyczyść Server - /etc/hosts Manager{% endblock %}
|
||||
{% block extra_css %}
|
||||
{{ super() }}
|
||||
<style>
|
||||
.tooltip-inner {
|
||||
max-width: 300px;
|
||||
text-align: left;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div class="card mb-4">
|
||||
<div class="card-header">
|
||||
<h2>Wyczyść serwery</h2>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ url_for('clear_server') }}">
|
||||
<div class="form-check mb-3">
|
||||
<input class="form-check-input" type="checkbox" name="linux" id="linux">
|
||||
<label class="form-check-label" for="linux">Wyczyść Linux</label>
|
||||
</div>
|
||||
<div class="form-check mb-3">
|
||||
<input class="form-check-input" type="checkbox" name="mikrotik" id="mikrotik">
|
||||
<label class="form-check-label" for="mikrotik">Wyczyść Mikrotik</label>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-danger">Wyczyść wybrane</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user