Zdalne-systemy-z-kit-uVPN/templates/create.html

88 lines
2.1 KiB
HTML
Raw Normal View History

2023-04-19 10:58:31 +00:00
{% extends "base.html" %}
{% block title %}Tworzenie obrazu{% endblock %}
{% block style %}
2023-04-13 10:55:06 +00:00
/* styl dla całej strony */
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
}
/* styl dla sekcji formularza */
form {
max-width: 500px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
/* styl dla tytułu formularza */
form h2 {
text-align: center;
font-weight: bold;
margin-bottom: 20px;
}
/* styl dla etykiet formularza */
form label {
display: block;
font-weight: bold;
margin-bottom: 5px;
}
/* styl dla pól formularza */
form input[type="text"],
form input[type="password"],
2023-04-19 11:03:05 +00:00
form input[type="number"],
2023-04-13 10:55:06 +00:00
form textarea {
width: 100%;
padding: 10px;
border: 2px solid #ccc;
border-radius: 5px;
margin-bottom: 20px;
font-size: 16px;
}
2023-04-19 11:04:27 +00:00
form input[type="submit"] {
2023-04-13 10:55:06 +00:00
background-color: #4CAF50;
border: none;
2023-04-19 11:04:27 +00:00
color: white;
2023-04-13 10:55:06 +00:00
padding: 10px 20px;
2023-04-19 11:04:27 +00:00
text-align: center;
text-decoration: none;
display: inline-block;
2023-04-13 10:55:06 +00:00
font-size: 16px;
2023-04-19 11:04:27 +00:00
margin: 10px 0;
2023-04-13 10:55:06 +00:00
cursor: pointer;
}
2023-04-19 11:04:27 +00:00
form input[type="submit"] {
2023-04-13 10:55:06 +00:00
background-color: #3e8e41;
}
2023-04-19 11:04:27 +00:00
form textarea {
resize: none;
}
2023-04-19 10:58:31 +00:00
{% endblock %}
{% block content %}
2023-04-19 11:03:05 +00:00
<br>
<h1>Formularz tworzenia obrazu konfiguracyjnego</h1>
2023-04-13 11:13:39 +00:00
<form method="POST" action="/api/createconf" enctype="multipart/form-data">
2023-04-21 08:40:09 +00:00
<label>Nazwa konfiguracji:</label>
2023-04-13 10:55:06 +00:00
<input type="text" name="config_name" required><br><br>
2023-04-21 08:40:09 +00:00
<label>Nazwa tokenu:</label>
2023-04-13 10:55:06 +00:00
<input type="text" name="token_name" required><br><br>
2023-04-21 08:40:09 +00:00
<label>Długość klucza:</label>
<input type="number" name="key_length" min="1024" value="2048" required><br><br>
2023-04-21 08:40:09 +00:00
<label>Adres ip VPN:</label>
2023-04-19 11:46:25 +00:00
<input type="text" name="ip" required><br><br>
2023-04-21 08:40:09 +00:00
<label>Hasło dla roota:</label>
<input type="password" name="pass" required><br><br>
<label>Konfiguracja authorized_keys:</label>
2023-04-13 10:55:06 +00:00
<textarea name="authorized_keys_config" rows="4" cols="50"></textarea><br><br>
<input type="submit" value="Wyślij">
</form>
2023-04-19 10:58:31 +00:00
{% endblock %}