mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-17 11:43:20 +00:00
26 lines
548 B
Django/Jinja
26 lines
548 B
Django/Jinja
{% extends "core/base.jinja" %}
|
|
|
|
{% block title %}
|
|
{% if object %}
|
|
{% trans obj=object %}Edit {{ obj }}{% endtrans %}
|
|
{% else %}
|
|
{% trans %}Save{% endtrans %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if object %}
|
|
<h2>{% trans obj=object %}Edit {{ obj }}{% endtrans %}</h2>
|
|
{% else %}
|
|
<h2>{% trans %}Save{% endtrans %}</h2>
|
|
{% endif %}
|
|
<form action="" method="post" enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
{{ form.as_p() }}
|
|
<p><input type="submit" value="{% trans %}Save{% endtrans %}" /></p>
|
|
</form>
|
|
{% endblock %}
|
|
|
|
|
|
|