site_tps/templates/edit.html
2018-03-18 11:53:11 +01:00

20 lines
489 B
HTML

{% extends 'base.html' %}
{% load bootstrap4 %}
{% block content %}
{% if title %}
<h1>{{title}}</h1>
{% endif %}
<form action="" method="post" enctype="multipart/form-data">{% csrf_token %}
{% bootstrap_form form %}
<button type="submit" class="btn btn-primary">
{% if validate %}
{{validate}}
{% else %}
Mettre à jour
{% endif %}
</button>
</form>
{% if link %}
<a href="{{link}}">{{link_text}}</a>
{% endif %}
{% endblock %}