mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-29 20:44:24 +00:00
44 lines
1.2 KiB
Django/Jinja
44 lines
1.2 KiB
Django/Jinja
{% extends "core/base.jinja" %}
|
|
|
|
{% block title %}
|
|
{% trans %}Poster{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div id="poster_edit">
|
|
|
|
<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>
|
|
</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>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
{% endblock %}
|
|
|
|
|
|
|