This commit is contained in:
2026-02-25 13:50:50 +00:00
parent ee5d1b2758
commit f1e591ab5b

View File

@@ -6,50 +6,59 @@
<div class="container py-4"> <div class="container py-4">
<div class="card bg-dark bg-opacity-75 p-3 mb-4"> <div class="card bg-dark bg-opacity-75 p-3 mb-4">
<form method="post" action="/submit" class="row g-2 align-items-center justify-content-start"> <div class="row g-2 align-items-center">
<div class="col-md-4"> <!-- Partie gauche : 3/4 -->
<input <div class="col-9">
type="text" <form method="post" action="/submit" class="row g-2 align-items-center">
name="query" <div class="col-md-5">
class="form-control bg-dark text-white" <input
placeholder="Nom de la machine"> type="text"
</div> name="query"
<div class="col-md-2"> class="form-control bg-dark text-white"
<select name="time" class="form-select bg-dark text-white" id="time-select"> placeholder="Nom de la machine">
</div>
<div class="col-md-3">
<select name="time" class="form-select bg-dark text-white" id="time-select">
{% for hour in range(0, 24) %}
<option value="{{ '%02d:00'|format(hour) }}">{{ '%02d:00'|format(hour) }}</option>
<option value="{{ '%02d:30'|format(hour) }}">{{ '%02d:30'|format(hour) }}</option>
{% endfor %}
</select>
</div>
<div class="col-md-3">
<div class="form-check text-white">
<input class="form-check-input" type="checkbox" name="noshutdown" id="noshutdown">
<label class="form-check-label" for="noshutdown">
Whitelist shutdown
</label>
</div>
</div>
<div class="col-md-1">
<button type="submit" class="btn btn-primary w-100">
<i class="bi bi-plus-lg"></i>Savee
</button>
</div>
</form>
</div>
<!-- Partie droite : 1/4 -->
<div class="col-3">
<form method="post" action="/submit-default" class="d-flex gap-2">
<select name="default-time" class="form-select bg-dark text-white flex-grow-1" id="default-time-select">
{% for hour in range(0, 24) %} {% for hour in range(0, 24) %}
<option value="{{ '%02d:00'|format(hour) }}">{{ '%02d:00'|format(hour) }}</option> <option value="{{ '%02d:00'|format(hour) }}">{{ '%02d:00'|format(hour) }}</option>
<option value="{{ '%02d:30'|format(hour) }}">{{ '%02d:30'|format(hour) }}</option> <option value="{{ '%02d:30'|format(hour) }}">{{ '%02d:30'|format(hour) }}</option>
{% endfor %} {% endfor %}
</select> </select>
</div> <button type="submit" class="btn btn-sm btn-primary">
<div class="col-md-2"> <i class="bi bi-save"></i>Save
<div class="form-check text-white">
<input class="form-check-input" type="checkbox" name="noshutdown" id="noshutdown">
<label class="form-check-label" for="noshutdown">
Whitelist shutdown
</label>
</div>
</div>
<div class="col-auto">
<button type="submit" class="btn btn-primary">
<i class="bi bi-plus-lg"></i> Ajouter
</button> </button>
</div> </form>
</div>
</form>
<form method="post" action="/submit-default" class="row g-2 align-items-center justify-content-start">
<select name="default-time" class="form-select bg-dark text-white" id="default-time-select">
{% for hour in range(0, 24) %}
<option value="{{ '%02d:00'|format(hour) }}">{{ '%02d:00'|format(hour) }}</option>
<option value="{{ '%02d:30'|format(hour) }}">{{ '%02d:30'|format(hour) }}</option>
{% endfor %}
</select>
<button type="submit" class="btn btn-sm btn-primary">
<i class="bi bi-save"></i> Sauvegarder
</button>
</form>
</div> </div>
</div>
<div class="card bg-dark bg-opacity-75 p-3"> <div class="card bg-dark bg-opacity-75 p-3">
<h5 class="text-white mb-3">Liste des éléments</h5> <h5 class="text-white mb-3">Liste des éléments</h5>