pywallter/templates/postedit.html

38 lines
1.5 KiB
HTML
Raw Normal View History

2020-11-29 02:05:19 +01:00
{% extends 'up_squelette.html' %}
{% block main %}
<div class="row">
<div class="col-sm-1"></div>
<div class="col-sm-10">
<div class="well">Vous pouvez modifier votre article. Actuellement seule la date de première édition sera publiée. Prochainement : intégration des edit'time dans la base de donnée.</div>
</div>
</div>
2023-07-06 05:52:10 +02:00
<form action="" method="POST" id="postform" style="height: 15vw;">
2020-11-29 02:05:19 +01:00
<input type="text" name="title" id="title" placeholder="Titre" class="form-control" value="{{ oldpost[0] }}"><br />
2023-07-06 05:52:10 +02:00
<textarea id="editeurMarkdown" class="form-control" form="postform" name="content" id="content" placeholder="Contenu" >{{ oldpost[1] }}</textarea><br />
<div class="row">
{% if oldpost[2] == 'public' %}
<div class="col-sm-4"></div>
<div class="col-sm-1"><input type="radio" name="status" value="prive"> <br/>Privé </div>
<div class="col-sm-2"></div>
<div class="col-sm-1"><input type="radio" name="status" value="public" checked> <br/> Public</div>
<div class="col-sm-4"></div>
{% else %}
<div class="col-sm-4"></div>
<div class="col-sm-1"><input type="radio" name="status" value="prive" checked> <br/> Privé</div>
<div class="col-sm-2"></div>
<div class="col-sm-1"><input type="radio" name="status" value="public"> <br/>Public</div>
<div class="col-sm-4"></div>
{% endif %}
</div>
2020-11-29 02:05:19 +01:00
<br />
<button id="tada" class="btn btn-default btn-primary" type="submit">Publier</button>
</form>
2023-07-06 05:52:10 +02:00
<br />
2020-11-29 02:05:19 +01:00
{% endblock %}
</div>