Fix publish / unpublish button on post edit form

This commit is contained in:
Guillaume Ayoub 2018-10-05 17:12:03 +02:00
parent d8589223fa
commit 7b3449c50c

View File

@ -60,7 +60,7 @@
</label>
<input type="submit" value="Enregistrer" class="button" />
{% if admin %}
{% if post.state == 'waiting' %}
{% if post._state == 'waiting' %}
<input type="submit" name="publish" value="Publier" class="button" />
{% else %}
<input type="submit" name="unpublish" value="Dépublier" class="button" />