refactor
This commit is contained in:
README.mdapp.py
templates
backups.htmlbase.htmlchange_password.htmlclear_hosts.htmldashboard.htmldeploy_hosts_file.htmledit_host.htmledit_hosts.htmledit_local_hosts.htmlhosts.htmlhosts_files.htmlimport_hosts.htmllist_regex_hosts.htmllogin.htmlnew_edit_hosts_file.htmlnew_edit_regex_host.htmlregister.htmlsettings.htmlview_backup.html
templates_old
32
templates_old/clear_hosts.html
Normal file
32
templates_old/clear_hosts.html
Normal file
@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Clear Hosts Files</title>
|
||||
<style>
|
||||
body { font-family: Arial, sans-serif; background: #f1f1f1; padding: 20px; }
|
||||
.container { max-width: 500px; margin: 0 auto; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px #ccc; }
|
||||
h1 { text-align: center; }
|
||||
button { margin-top: 1em; padding: 10px 20px; background: #007bff; border: none; color: #fff; cursor: pointer; border-radius: 4px; }
|
||||
button:hover { background: #0056b3; }
|
||||
.links { text-align: center; margin-top: 10px; }
|
||||
.links a { color: #007bff; text-decoration: none; }
|
||||
.links a:hover { text-decoration: underline; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Clear /etc/hosts* Files</h1>
|
||||
<form method="POST" action="{{ url_for('clear_all_hosts') }}">
|
||||
<p>Select which types of hosts to clear:</p>
|
||||
<label><input type="checkbox" name="linux" value="1"> Linux Server/s</label><br>
|
||||
<label><input type="checkbox" name="mikrotik" value="1"> Mikrotik Router/s</label><br>
|
||||
<button type="submit">Clear /etc/hosts* on selected servers</button>
|
||||
<p>* - or MikroTik Router</p>
|
||||
</form>
|
||||
<div class="links">
|
||||
<a href="{{ url_for('dashboard') }}">Back to Dashboard</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user