{% extends "base.html" %}
{% load i18n %}

{% block actions %}
  <a class="btn btn-default" href="{% url 'trainings:training_contents' training_id=training.id %}">
    {% trans 'Back to training content' %}
  </a>
{% endblock %}

{% block subtitle %}
  {% trans 'Add a quizz to the training' %} <span class="text-info">{{training.name}}</span>
{% 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 main %}
  <form action="" method="post" enctype="multipart/form-data" >{% csrf_token %}
    <table class="table table-bordered table-hover">
      {% include 'extras/form.html' with form=formWorkshopProperties %}
    </table>
    <div class="row">
      <div class="col-md-12">
        <input class="btn btn-primary" type="submit" value="{% trans 'Save' %}" />
      </div>
    </div>
  </form>
{% endblock %}
