Semaine 11
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
{% extends "parc/base.html" %}
|
||||
|
||||
{% block title %}{% if object %}Modifier{% else %}Ajouter{% endif %} un équipement{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{% if object %}Modifier{% else %}Ajouter{% endif %} un équipement</h1>
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button type="submit" class="btn">Enregistrer</button>
|
||||
<a class="btn btn-secondary" href="{% url 'equipment_list' %}">Annuler</a>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user