This commit is contained in:
2024-12-09 20:30:19 +01:00
parent d080b6287c
commit 9b5f3b23fb
13 changed files with 636 additions and 43 deletions

View File

@@ -23,6 +23,7 @@
<div class="buttons">
{% if session.get('logged_in') %}
<a href="{{ url_for('administrator') }}" class="button">Administrace</a>
<a href="{{ url_for('repairs') }}" class="button">Správa Oprav</a>
<a href="{{ url_for('logout') }}" class="button">Odhlásit se</a>
{% else %}
<a href="{{ url_for('login') }}" class="button">Administrace</a>
@@ -128,13 +129,13 @@
<div class="form-container">
<span class="close-button" onclick="closeReservationForm()">&times;</span>
<h2>Rezervace</h2>
<form>
<form action="{{ url_for('create_reservation') }}" method="post">
<label for="fullName">Celé jméno: <span class="required">*</span></label>
<input type="text" id="fullName" name="fullName" required>
<label for="email">Email: <span class="required">*</span></label>
<input type="email" id="email" name="email" required>
<label for="date">Datum: <span class="required">*</span></label>
<input type="date" id="date" name="date" required>
<input type="text" id="date" name="date" required readonly>
<label for="description">Popis: <span class="required">*</span></label>
<textarea id="description" name="description" rows="4" required></textarea>
<button type="submit" class="button">Odeslat</button>
@@ -142,5 +143,7 @@
</div>
</div>
<script src="{{ url_for('static', filename='scripts/reservation.js') }}"></script>
</body>
</html>