Work on blog
rewrite entire blog section
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
{% extends 'up_squelette.html' %}
|
||||
|
||||
{% block main %}
|
||||
|
||||
<p>Vous pouvez modifier votre article. </p>
|
||||
|
||||
|
||||
<h2> {{ oldpost['title'] }}</h2><br />
|
||||
<form action="" method="POST" id="postform" style="height: 15vw;">
|
||||
<input type="text" name="subtitle" id="subtitle" placeholder="sous-titre" class="form-control" value="{{ oldpost['title'] }}"><br />
|
||||
<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><br />
|
||||
<textarea id="editeurMarkdown" class="form-control" form="postform" name="content" id="content" placeholder="Contenu" style="height:20vw;">{{ oldpost['content'] }}</textarea>
|
||||
|
||||
<br />
|
||||
|
||||
<h3> Visibilité </h3>
|
||||
|
||||
<div class="center">
|
||||
<p> Les articles brouillons ne sont visibles que par vous même</p>
|
||||
<p> Les articles privés ne sont visibles que par les membres du serveur </p>
|
||||
@@ -34,15 +35,23 @@
|
||||
|
||||
{% endif %}
|
||||
</div>
|
||||
<br />
|
||||
|
||||
|
||||
<fieldset>
|
||||
<label>
|
||||
{% if blog_unified == "True" %}
|
||||
<input id="blog-unified" name="blog-unified" type="checkbox" role="switch" checked />
|
||||
{% else %}
|
||||
<input id="blog-unified" name="blog-unified" type="checkbox" role="switch" />
|
||||
{% endif %}
|
||||
Publier cet article dans le blog général
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
<button type="submit"> Mettre à jour </button>
|
||||
</form>
|
||||
<br />
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block js %}
|
||||
{% include '_js_editor.html' %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user