Idem for article_update

This commit is contained in:
Ludovic Stephan 2017-03-30 19:34:22 -03:00
parent 079666c0db
commit 8e65298c7c

View file

@ -1,17 +1,27 @@
{% extends 'kfet/base.html' %} {% extends 'kfet/base.html' %}
{% load widget_tweaks %}
{% load staticfiles %}
{% block title %}Édition de l'article {{ article.name }}{% endblock %} {% block title %}Édition de l'article {{ article.name }}{% endblock %}
{% block content-header-title %}Article {{ article.name }} - Édition{% endblock %} {% block content-header-title %}Article {{ article.name }} - Édition{% endblock %}
{% block content %} {% block content %}
<form action="" method="post"> {% include "kfet/base_messages.html" %}
{% csrf_token %}
{{ form.as_p }} <div class="row form-only">
{% if not perms.kfet.change_article %} <div class="col-sm-12 col-md-8 col-md-offset-2">
<input type="password" name="KFETPASSWORD"> <div class="content-form">
{% endif %} <form submit="" method="post" class="form-horizontal">
<input type="submit" value="Mettre à jour"> {% csrf_token %}
</form> {% include 'kfet/form_snippet.html' with form=form %}
{% if not perms.kfet.add_article %}
{% include 'kfet/form_authentication_snippet.html' %}
{% endif %}
{% include 'kfet/form_submit_snippet.html' with value="Mettre à jour" %}
</form>
</div>
</div>
</div>
{% endblock %} {% endblock %}