mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-28 01:42:22 +00:00
18 lines
493 B
HTML
18 lines
493 B
HTML
{% extends "base.html" %}
|
|
|
|
{% load crispy_forms_filters i18n %}
|
|
|
|
{% block content %}
|
|
<form method="post">
|
|
<div id="form-content">
|
|
{% csrf_token %}
|
|
{{ form|crispy }}
|
|
</div>
|
|
{% if object.pk %}
|
|
<button class="btn btn-primary" type="submit">{% trans "Update" %}</button>
|
|
{% else %}
|
|
<button class="btn btn-success" type="submit">{% trans "Create" %}</button>
|
|
{% endif %}
|
|
</form>
|
|
{% endblock content %}
|