vicky-remi-wedding-website/france/france_rsvp/templates/rsvp.html

58 lines
1.3 KiB
HTML

{% 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 text-dark">Adultes :</label>
</div>
<div class="col-auto">
<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 %}
/>
</div>
</div>
<div class="row g-3 align-items-center">
<div class="col-auto">
<label for="children" class="col-form-label text-dark">Enfants :</label>
</div>
<div class="col-auto">
<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 %}
/>
</div>
</div>
<button type="submit" value="RSVP" class="btn btn-lg btn-primary mt-3">RSVP</button>
</form>
{% endblock %}