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