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" %}
<div class="row form-only">
<div class="col-sm-12 col-md-8 col-md-offset-2">
<div class="content-form">
<form submit="" method="post" class="form-horizontal">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {% include 'kfet/form_snippet.html' with form=form %}
{% if not perms.kfet.change_article %} {% if not perms.kfet.add_article %}
<input type="password" name="KFETPASSWORD"> {% include 'kfet/form_authentication_snippet.html' %}
{% endif %} {% endif %}
<input type="submit" value="Mettre à jour"> {% include 'kfet/form_submit_snippet.html' with value="Mettre à jour" %}
</form> </form>
</div>
</div>
</div>
{% endblock %} {% endblock %}