Fix indentation
This commit is contained in:
parent
3959e46afe
commit
0c71f45e66
|
@ -20,12 +20,16 @@
|
||||||
<label for="adults" class="col-form-label text-dark">Adultes :</label>
|
<label for="adults" class="col-form-label text-dark">Adultes :</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
<input type="number" class="form-control" name="adults" id="adults" min="1" max="5"
|
<input
|
||||||
|
type="number" class="form-control"
|
||||||
|
name="adults" id="adults"
|
||||||
|
min="1" max="5"
|
||||||
{% if adults is not none %}
|
{% if adults is not none %}
|
||||||
value="{{ adults }}"
|
value="{{ adults }}"
|
||||||
{% else %}
|
{% else %}
|
||||||
value="1"
|
value="1"
|
||||||
{% endif %}>
|
{% endif %}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row g-3 align-items-center">
|
<div class="row g-3 align-items-center">
|
||||||
|
@ -33,12 +37,16 @@
|
||||||
<label for="children" class="col-form-label text-dark">Enfants :</label>
|
<label for="children" class="col-form-label text-dark">Enfants :</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
<input type="number" class="form-control" name="children" id="children" min="0" max="5"
|
<input
|
||||||
|
type="number" class="form-control"
|
||||||
|
name="children" id="children"
|
||||||
|
min="0" max="5"
|
||||||
{% if children is not none %}
|
{% if children is not none %}
|
||||||
value="{{ children }}"
|
value="{{ children }}"
|
||||||
{% else %}
|
{% else %}
|
||||||
value="0"
|
value="0"
|
||||||
{% endif %}>
|
{% endif %}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -9,10 +9,12 @@ logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
app = Flask('france_rsvp')
|
app = Flask('france_rsvp')
|
||||||
|
|
||||||
|
|
||||||
@app.route('/france/')
|
@app.route('/france/')
|
||||||
def index():
|
def index():
|
||||||
return render_template('index.html')
|
return render_template('index.html')
|
||||||
|
|
||||||
|
|
||||||
@app.route('/france/rsvp', methods=['GET', 'POST'])
|
@app.route('/france/rsvp', methods=['GET', 'POST'])
|
||||||
def form():
|
def form():
|
||||||
error = None
|
error = None
|
||||||
|
|
Loading…
Reference in New Issue