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

50 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">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">Enfants :</label>
</div>
<div class="col-auto">
<input type="number" class="form-control" name="children" id="children" min="1" max="5"
{% if children is not none %}
value="{{ adults }}"
{% else %}
value="1"
{% endif %}>
</div>
</div>
<button type="submit" value="RSVP" class="btn btn-primary">RSVP</button>
</form>
{% endblock %}