Rewrite edit blocs and themes
This commit is contained in:
26
app/templates/creative/blocs/edit/_external_link.html
Normal file
26
app/templates/creative/blocs/edit/_external_link.html
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
<div class="container text-center">
|
||||
<form method='POST' action='/edit/{{ bloc.name }}' hx-post='/edit//{{ bloc.name }}' hx-swap="outerHTML" hx-target="#{{ bloc.name }}">
|
||||
{{ form.csrf_token }}
|
||||
{% include 'edit-tools/_form-base.html' %}
|
||||
<h2 class="mb-4"> Titre du lien </h2>
|
||||
{{ form.title(value=bloc.title,
|
||||
class="form-control form-control-lg text-center") }}
|
||||
<h3> Description du lien </h3>
|
||||
{{ form.text(value=bloc.text,
|
||||
class="form-control text-center") }}
|
||||
<h3> Votre lien (https://exemple.com) </h3>
|
||||
{{ form.link(value=bloc.link, class="form-control text-center") }}
|
||||
<br />
|
||||
<div class="col-lg-4 form-group mx-auto">
|
||||
{{ form.text_button(value=bloc.text_button,
|
||||
class="form-control text-center") }}
|
||||
{% for error in form.text_button.errors %}
|
||||
<span style="color: red;">
|
||||
{{ error }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% include 'edit-tools/_btn-save-cancel.html' %}
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user