42 lines
1.5 KiB
HTML
42 lines
1.5 KiB
HTML
<header class="masthead text-center text-white d-flex" style="background-image: url('/static/img/{{ bloc.bg_img }}');">
|
|
<div class="container my-auto">
|
|
<form method='POST' action='/edit/accueil' enctype="multipart/form-data">
|
|
{{ form.csrf_token }}
|
|
<div class="row">
|
|
<div class="col-lg-10 form-group mx-auto">
|
|
{{ form.titre(value=bloc.title,
|
|
class="form-control form-control-lg text-center text-uppercase")
|
|
}}
|
|
{% for error in form.titre.errors %}
|
|
<span style="color: red;">{{ error }}</span>
|
|
{% endfor %}
|
|
<hr>
|
|
</div>
|
|
<div class="col-lg-8 form-group mx-auto">
|
|
{% set f = form.presentation.process_data(bloc.text) %}
|
|
{{ form.presentation(
|
|
class="form-control text-center",
|
|
rows="7")
|
|
}}
|
|
{% for error in form.presentation.errors %}
|
|
<span style="color: red;">{{ error }}</span>
|
|
{% endfor %}
|
|
<br/>
|
|
<div class="col-lg-4 form-group mx-auto">
|
|
{{ form.texte_boutton(value=bloc.text_button,
|
|
class="form-control text-center") }}
|
|
{% for error in form.texte_boutton.errors %}
|
|
<span style="color: red;">
|
|
{{ error }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
<div class="col-lg-3 form-group mx-auto">
|
|
{{ form.image(class="form-control" ) }}
|
|
</div>
|
|
{{ form.submit() }}
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</header>
|