Fix indentation
This commit is contained in:
parent
3959e46afe
commit
0c71f45e66
|
@ -3,11 +3,11 @@
|
|||
|
||||
{% block navitems %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{url_for('index')}}">Info</a>
|
||||
<a class="nav-link" href="{{ url_for('index') }}">Info</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" href="{{url_for('form')}}">RSVP <span class="visually-hidden">(current)</span></a>
|
||||
<a class="nav-link active" href="{{ url_for('form') }}">RSVP <span class="visually-hidden">(current)</span></a>
|
||||
</li>
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{url_for('form')}}">RSVP</a>
|
||||
<a class="nav-link" href="{{ url_for('form') }}">RSVP</a>
|
||||
</li>
|
||||
{% endblock %}
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
|||
|
||||
<p class="text-dark">Rémi & Vicky were married in a small ceremony in Janaury 30, 2021. Exactly 1.5 years later, we can finally make it to France to renew our vows and celebrate with everyone! We hope to see you there.</p>
|
||||
|
||||
<a class="btn btn-primary btn-lg mb-3" href="{{url_for('form')}}" role="button">RSVP <i class="bi bi-heart-arrow"></i></a>
|
||||
<a class="btn btn-primary btn-lg mb-3" href="{{ url_for('form') }}" role="button">RSVP <i class="bi bi-heart-arrow"></i></a>
|
||||
|
||||
<h4><i class="bi bi-geo-alt"></i> La Chapelle-Taillefert</h4>
|
||||
<h4><i class="bi bi-calendar-heart"></i> 30 Julliet 2022</h4>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
{% block navitems %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{url_for('index')}}">Info</a>
|
||||
<a class="nav-link" href="{{ url_for('index') }}">Info</a>
|
||||
</li>
|
||||
{% endblock %}
|
||||
|
||||
|
@ -20,12 +20,16 @@
|
|||
<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"
|
||||
<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 %}>
|
||||
{% endif %}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row g-3 align-items-center">
|
||||
|
@ -33,12 +37,16 @@
|
|||
<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"
|
||||
<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 %}>
|
||||
{% endif %}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{% block title %}MERCI -{% endblock %}
|
||||
{% block navitems %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{url_for('index')}}">Info</a>
|
||||
<a class="nav-link" href="{{ url_for('index') }}">Info</a>
|
||||
</li>
|
||||
{% endblock %}
|
||||
|
||||
|
@ -10,6 +10,6 @@
|
|||
|
||||
<h1>Merci !</h1>
|
||||
|
||||
<p class="text-dark">We are looking forward to seeing you there. The itinerary and addresses are on the <a href="{{url_for('index')}}">info page</a>.</p>
|
||||
<p class="text-dark">We are looking forward to seeing you there. The itinerary and addresses are on the <a href="{{ url_for('index') }}">info page</a>.</p>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -9,10 +9,12 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
app = Flask('france_rsvp')
|
||||
|
||||
|
||||
@app.route('/france/')
|
||||
def index():
|
||||
return render_template('index.html')
|
||||
|
||||
|
||||
@app.route('/france/rsvp', methods=['GET', 'POST'])
|
||||
def form():
|
||||
error = None
|
||||
|
|
Loading…
Reference in New Issue