refactor
This commit is contained in:
31
templates_old/import_hosts.html
Normal file
31
templates_old/import_hosts.html
Normal file
@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Import Hosts</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; }
|
||||
input[type="file"] { display: block; margin: 20px auto; }
|
||||
button { margin-top: 1em; padding: 10px 20px; background: #007bff; border: none; color: #fff; cursor: pointer; border-radius: 4px; display: block; margin: 0 auto; }
|
||||
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>Import Hosts</h1>
|
||||
<form method="POST" action="{{ url_for('import_hosts') }}" enctype="multipart/form-data">
|
||||
<input type="file" name="file" accept=".csv" required>
|
||||
<button type="submit">Import Hosts</button>
|
||||
</form>
|
||||
<div class="links">
|
||||
<a href="{{ url_for('manage_hosts') }}">Back to Hosts Management</a> |
|
||||
<a href="{{ url_for('dashboard') }}">Back to Dashboard</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user