Work on blog
This commit is contained in:
@@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user