2018-01-30 22:04:06 +00:00
|
|
|
{% extends 'base.html' %}
|
2018-02-28 14:06:55 +00:00
|
|
|
{% load bootstrap4 %}
|
2018-01-30 22:04:06 +00:00
|
|
|
{% block content %}
|
2018-01-31 09:15:51 +00:00
|
|
|
{% if title %}
|
|
|
|
<h1>{{title}}</h1>
|
|
|
|
{% endif %}
|
2018-02-28 14:06:55 +00:00
|
|
|
<form action="" method="post" enctype="multipart/form-data">{% csrf_token %}
|
2018-02-12 08:16:25 +00:00
|
|
|
{% bootstrap_form form %}
|
|
|
|
<button type="submit" class="btn btn-primary">
|
|
|
|
{% if validate %}
|
|
|
|
{{validate}}
|
|
|
|
{% else %}
|
|
|
|
Mettre à jour
|
|
|
|
{% endif %}
|
|
|
|
</button>
|
2018-01-30 22:04:06 +00:00
|
|
|
</form>
|
2018-03-18 10:53:11 +00:00
|
|
|
{% if link %}
|
|
|
|
<a href="{{link}}">{{link_text}}</a>
|
|
|
|
{% endif %}
|
2018-01-30 22:04:06 +00:00
|
|
|
{% endblock %}
|