# Conflicts:
#	web/templates/home.html
This commit is contained in:
2024-12-10 22:52:23 +01:00
14 changed files with 635 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>
@@ -147,6 +148,7 @@
document.querySelector(target).scrollIntoView({ behavior: 'smooth' });
}
</script>
<script src="{{ url_for('static', filename='scripts/reservation.js') }}"></script>
</body>
</html>