Sith/com/templates/com/poster_edit.jinja

44 lines
1.2 KiB
Django/Jinja
Raw Permalink Normal View History

2017-11-28 14:02:46 +00:00
{% extends "core/base.jinja" %}
{% block title %}
{% trans %}Poster{% endtrans %}
2017-11-28 14:02:46 +00:00
{% endblock %}
{% block content %}
<div id="poster_edit">
2017-11-28 14:02:46 +00:00
<div id="title">
<div id="links" class="left">
{% if app == "com" %}
<a id="list" class="link" href="{{ url(app + ":poster_list") }}">{% trans %}List{% endtrans %}</a>
{% elif app == "club" %}
<a id="list" class="link" href="{{ url(app + ":poster_list", club.id) }}">{% trans %}List{% endtrans %}</a>
{% endif %}
</div>
<h3>{% trans %}Posters - edit{% endtrans %}</h3>
<div id="links" class="right">
{% if app == "com" %}
<a class="link delete" href="{{ url(app + ":poster_delete", poster.id) }}">{% trans %}Delete{% endtrans %}</a>
{% elif app == "club" %}
<a class="link delete" href="{{ url(app + ":poster_delete", club.id, poster.id) }}">{% trans %}Delete{% endtrans %}</a>
{% endif %}
</div>
2017-11-28 14:02:46 +00:00
</div>
<div id="poster">
<form action="" method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p() }}
<p><input type="submit" value="{% trans %}Save{% endtrans %}" /></p>
</form>
2017-11-28 14:02:46 +00:00
</div>
</div>
2017-11-28 14:02:46 +00:00
{% endblock %}