Start repo

This commit is contained in:
2026-02-03 01:24:56 +01:00
committed by kitoy
parent e176b7212f
commit c2aaa0ed4a
267 changed files with 54491 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<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 }}
<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>
{{ form.submit(class="btn") }}
<button class="btn btn-danger" hx-get="/view/{{ bloc.name }}" hx-swap="outerHTML" hx-target="#{{ bloc.name }}" > Annuler </button>
</form>
</div>