{% 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 %}



