Work on blog

This commit is contained in:
2026-02-28 01:06:48 +01:00
parent 7c89dbcd4f
commit 9f55623807
10 changed files with 244 additions and 88 deletions

View File

@@ -7,11 +7,11 @@
{% block main %}
<form action="" method="POST" id="postform" >
<form action="" method="POST" id="postform" hx-post="/myblog/update/{{ oldpost['title'] }}" hx-target="#confirm">
<input type="text" name="title" id="title" placeholder="titre" class="form-control" value="{{ oldpost['title'] }}"><br />
<input type="text" name="subtitle" id="subtitle" placeholder="sous-titre" class="form-control" value="{{ oldpost['subtitle'] }}"><br />
<input type="text" name="category" id="category" placeholder="Catégorie" class="form-control" value="{{ oldpost['category'] }}"><br />
<textarea id="editeurMarkdown" class="form-control" form="postform" name="content" id="content" placeholder="Contenu" style="height:20vw;">{{ oldpost['content'] }}</textarea>
<textarea id="editeurMarkdown" class="form-control" form="postform" name="content" placeholder="Contenu" style="height:20vw;">{{ oldpost['content'] }}</textarea>
<br />
@@ -51,7 +51,8 @@
Publier cet article dans le blog général
</label>
</fieldset>
<div class="flashed {{ categorie }}" id="confirm">
</div>
<button type="submit"> Mettre à jour </button>
</form>
@@ -59,5 +60,6 @@
{% block js %}
{% include '_js_editor.html' %}
{% include '_js_htmx.html' %}
{% endblock %}