Correct blocs for creative theme

This commit is contained in:
2026-07-23 04:23:07 +02:00
committed by kitoy
parent 9c2a8d4e38
commit cf3f6a33ae
2 changed files with 8 additions and 6 deletions

View File

@@ -13,15 +13,17 @@
{% endfor %}
<hr>
</div>
<div class="col-lg-8 form-group mx-auto">
<div class="col-lg-10 form-group mx-auto">
{% set f = form.text.process_data(bloc.text) %}
{% include 'edit-tools/_editor-wysiwyg.html' %}
{% for error in form.text.errors %}
<span style="color: red;">{{ error }}</span>
{% endfor %}
</div>
<br/>
<div class="col-lg-4 form-group mx-auto">
<div class="col-lg-10 form-group mx-auto">
<h4> Texte du bouton </h4>
{{ form.text_button(value=bloc.text_button,
class="form-control text-center") }}
{% for error in form.text_button.errors %}
@@ -31,8 +33,8 @@
<h4> cible du bouton #bloc ou un lien (https://exemple.com) </h4>
{{ form.link(value=bloc.link, class="form-control text-center") }}
<br />
<div class="col-lg-8 form-group mx-auto">
<div class="col-lg-10 form-group mx-auto">
<h4> Image d'arrière plan </h4>
{{ form.image(class="form-control" ) }}
</div>
{% include 'edit-tools/_btn-save-cancel.html' %}

View File

@@ -19,7 +19,7 @@
</div>
</a>
<button type="button" class="btn btn-success m-4"
hx-get="{{ url_for('edit_img', page=page, bloc=bloc.name, image=image.file)}}"
hx-get="/edit/images/{{ bloc.name }}/{{ image.file }}"
hx-target="#editImage"
hw-swap="none">
<i class="fa fa-pencil-square-o"></i>