Sith/core/templates/core/edit.jinja

26 lines
580 B
Django/Jinja
Raw Normal View History

2016-04-20 01:01:14 +00:00
{% extends "core/base.jinja" %}
{% block title %}
{% if object %}
{% trans obj=object %}Edit {{ obj }}{% endtrans %}
{% else %}
{% trans %}Save{% endtrans %}
{% endif %}
{% endblock %}
2016-04-20 01:01:14 +00:00
{% 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">
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 %}