{% extends "base.html" %}

{% block actions %}
  <a class="btn btn-danger" href="{% url 'evaluations:graph_detail' evaluation_graph_properties_id=evaluation_graph_properties.id %}">Retour au graphe</a>
{% endblock %}

{% block head %}
  <link rel="stylesheet" href="{{ STATIC_URL }}trainings/css/django-admin-widgets.css" type="text/css" media="screen" charset="utf-8" />

  <script type="text/javascript" src="{{ STATIC_URL }}trainings/js/ui/jquery-ui.js"></script>

  <script type="text/javascript" src="{{ STATIC_URL }}trainings/js/django-admin.multiselect.js"></script>
  <script type="text/javascript">
    $(function(){
       jQuery.each($("select[multiple]"), function () {
        // "Locations" can be any label you want
        SelectFilter.init(this.id, "Locations", 0, "/static/admin/");
       });
    });
  </script>
{% endblock %}

{% block subtitle %}
  Modification d'un axe du graph <span class="text-info">{{evaluation_graph_properties.name}}</span>
{% endblock %}

{% block main %}
  <form action="" method="post" enctype="multipart/form-data" >{% csrf_token %}
    <table class="table table-hover">
      <tbody>
      {% for field in eeForm %}
        <tr {% if field.errors %}class="error"{% endif %}>
          <td>
            {{ field.label_tag }}
          </td>
          <td>
            <div>{{field.errors}}</div>
            {{ field }}
          </td>
        </tr>
      {% endfor %}
      </tbody>
    </table>
    <div class="clearfix">
      <div class="pull-right">
        <input class="btn btn-primary" type="submit" value="Enregistrer" />
      </div>
    </div>
  </form>
{% endblock %}
