finished theme
This commit is contained in:
parent
5cd502b19c
commit
cd5b431127
1 changed files with 61 additions and 61 deletions
|
|
@ -1,67 +1,66 @@
|
|||
<!DOCTYPE html>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
|
||||
<style>
|
||||
body {
|
||||
background-color: #333;
|
||||
color: #fff;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
h1 {
|
||||
color: #ff6347;
|
||||
}
|
||||
p {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
form {
|
||||
margin: 20px;
|
||||
padding: 20px;
|
||||
background-color: #444;
|
||||
border-radius: 5px;
|
||||
}
|
||||
label {
|
||||
color: #fff;
|
||||
}
|
||||
input {
|
||||
border: 1px solid #555;
|
||||
border-radius: 3px;
|
||||
padding: 5px;
|
||||
margin-bottom: 5px;
|
||||
background-color: #555;
|
||||
color: #fff;
|
||||
}
|
||||
button {
|
||||
background-color: #ff6347;
|
||||
color: #fff;
|
||||
padding: 10px 20px;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
}
|
||||
button:hover {
|
||||
background-color: #db3b21;
|
||||
}
|
||||
</style>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Input Form</title>
|
||||
<title>Sparkytron Config</title>
|
||||
</head>
|
||||
<style>
|
||||
body {
|
||||
background-color: #333;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.container {
|
||||
background-color: #444;
|
||||
border-radius: 10px;
|
||||
padding: 20px;
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
background-color: #555;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #6c757d;
|
||||
border-color: #6c757d;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: #495057;
|
||||
border-color: #495057;
|
||||
}
|
||||
|
||||
.alert-success {
|
||||
background-color: #198754;
|
||||
color: #fff;
|
||||
border-color: #198754;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<h1>Warning!</h1>
|
||||
<p>This information is stored in PLAIN TEXT in a .env file!</p>
|
||||
<div class="container">
|
||||
<h1 class="mt-5">Warning!</h1>
|
||||
<p class="lead">This information is stored in PLAIN TEXT in a .env file!</p>
|
||||
<form method="post">
|
||||
{% for key, value in key_value_pairs.items() %}
|
||||
<label for="{{ key }}">{{ key }}</label>
|
||||
<input type="text" id="{{ key }}" name="{{ key }}" value="{{ value }}">
|
||||
<br>
|
||||
<div class="row mb-3">
|
||||
<label for="{{ key }}" class="col-sm-2 col-form-label">{{ key }}</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" id="{{ key }}" name="{{ key }}" value="{{ value }}" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<button type="submit">Submit</button>
|
||||
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
|
||||
{% with messages = get_flashed_messages() %}
|
||||
{% if messages %}
|
||||
{% for message in messages %}
|
||||
<div class="alert alert-success">
|
||||
<div class="alert alert-success alert-dismissible fade show mt-3" role="alert">
|
||||
{{ message }}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>
|
||||
|
|
@ -69,5 +68,6 @@
|
|||
{% endif %}
|
||||
{% endwith %}
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue