2022-05-22 16:13:14 +00:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block title %}RSVP -{% endblock %}
|
|
|
|
|
|
|
|
{% block navitems %}
|
2022-05-23 02:51:32 +00:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ url_for('index') }}">Info</a>
|
|
|
|
</li>
|
2022-05-22 16:13:14 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
{% if error %}
|
|
|
|
<p class="error">{{ error }}</p>
|
|
|
|
{% endif %}
|
2022-05-23 02:51:32 +00:00
|
|
|
|
2022-05-22 16:13:14 +00:00
|
|
|
<form action="" method="POST">
|
2022-05-23 02:51:32 +00:00
|
|
|
|
2022-05-22 16:13:14 +00:00
|
|
|
<div class="row g-3 align-items-center">
|
|
|
|
<div class="col-auto">
|
2022-05-22 17:28:00 +00:00
|
|
|
<label for="adults" class="col-form-label text-dark">Adultes :</label>
|
2022-05-22 16:13:14 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-auto">
|
2022-05-23 02:51:32 +00:00
|
|
|
<input
|
|
|
|
type="number" class="form-control"
|
|
|
|
name="adults" id="adults"
|
|
|
|
min="1" max="5"
|
|
|
|
{% if adults is not none %}
|
|
|
|
value="{{ adults }}"
|
|
|
|
{% else %}
|
|
|
|
value="1"
|
|
|
|
{% endif %}
|
|
|
|
/>
|
2022-05-22 16:13:14 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row g-3 align-items-center">
|
|
|
|
<div class="col-auto">
|
2022-05-22 17:28:00 +00:00
|
|
|
<label for="children" class="col-form-label text-dark">Enfants :</label>
|
2022-05-22 16:13:14 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-auto">
|
2022-05-23 02:51:32 +00:00
|
|
|
<input
|
|
|
|
type="number" class="form-control"
|
|
|
|
name="children" id="children"
|
|
|
|
min="0" max="5"
|
|
|
|
{% if children is not none %}
|
|
|
|
value="{{ children }}"
|
|
|
|
{% else %}
|
|
|
|
value="0"
|
|
|
|
{% endif %}
|
|
|
|
/>
|
2022-05-22 16:13:14 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-23 02:51:32 +00:00
|
|
|
|
2022-05-22 18:16:41 +00:00
|
|
|
<button type="submit" value="RSVP" class="btn btn-lg btn-primary mt-3">RSVP</button>
|
2022-05-22 16:13:14 +00:00
|
|
|
|
|
|
|
</form>
|
2022-05-23 02:51:32 +00:00
|
|
|
|
2022-05-22 16:13:14 +00:00
|
|
|
{% endblock %}
|