Sith/core/templates/core/edit.jinja

26 lines
548 B
Django/Jinja
Raw Normal View History

2016-04-20 01:01:14 +00:00
{% extends "core/base.jinja" %}
{% block title %}
2016-10-18 21:36:26 +00:00
{% if object %}
{% trans obj=object %}Edit {{ obj }}{% endtrans %}
2016-10-18 21:36:26 +00:00
{% else %}
{% trans %}Save{% endtrans %}
{% endif %}
{% endblock %}
2016-04-20 01:01:14 +00:00
{% block content %}
2016-10-18 21:36:26 +00:00
{% if object %}
2016-07-19 17:03:16 +00:00
<h2>{% trans obj=object %}Edit {{ obj }}{% endtrans %}</h2>
2016-10-18 21:36:26 +00:00
{% else %}
<h2>{% trans %}Save{% endtrans %}</h2>
{% endif %}
2016-08-31 13:29:16 +00:00
<form action="" method="post" enctype="multipart/form-data">
2016-07-19 17:03:16 +00:00
{% csrf_token %}
{{ form.as_p() }}
<p><input type="submit" value="{% trans %}Save{% endtrans %}" /></p>
</form>
2016-04-20 01:01:14 +00:00
{% endblock %}