{% extends 'enseignant/base_profile.html' %}
{% load static %}
{% load widget_tweaks %}
{% load unicorn %}
{% unicorn_scripts %}
{% block page_title %}{{page_title}}{% endblock page_title %}
{% block content %}
<section class="content">
    <div class="container-fluid">
        <!-- Small boxes (Stat box)-->
        <div class="container">


              <!-- DONUT CHART -->
              <div class="card card-secondary">
                <div class="card-header" style="background: #21618C">
                  <h3 class="card-title" >MOFIFIER LA SEANCE </h3> &nbsp;&nbsp;
                  <div class="card-tools">
                  </div>
                </div>
                <div class="card-body">
                    <form action="#" method="post">
                           {% csrf_token %}
                          <div class="row">
                              <div class="form-group col-md-3">
                                  <label style="color:#000;">Année</label>
                                  {% render_field form.annee class="form-control" %}
                              </div>
                              <div class="form-group col-md-7">
                                  <label style="color:#000;">Ecue</label>
                                  <select class="form-control" name="ecue" >
                                        <option value="{{seance.ecue.id}}">{{seance.ecue.ue.ufr.code}} - {{seance.ecue.libelle}} ({{seance.ecue.code}})</option>
                                        {% for ecue in ecues %}
                                        <option value="{{ecue.id}}">{{ecue.ue.ufr.code}} - {{ecue.libelle}} ({{ecue.code}})</option>
                                        {% endfor %}
                                  </select>
                              </div>
                              <div class="form-group col-md-2">
                                  <label style="color:#000;">Type</label>
                                  {% render_field form.type_cours class="form-control" %}
                              </div>
                          </div>
                          <div class="row">
                              <div class="form-group col-md-2">
                                  <label style="color:#000;">Salle</label>
                                  {% render_field form.salle class="form-control" %}
                              </div>
                              <div class="form-group col-md-4">
                                  <label style="color:#000;">Date</label>
                                  {% render_field form.date class="form-control" type="date" %}
                              </div>
                              <div class="form-group col-md-3">
                                  <label style="color:#000;">Heure début</label>
                                  {% render_field form.debut class="form-control" type="time" %}
                              </div>
                              <div class="form-group col-md-3">
                                  <label style="color:#000;">Heure fin</label>
                                  {% render_field form.fin class="form-control" type="time" %}
                              </div>
                          </div><hr/>
                          <div class="row">
                              <div class="form-group col-md-12">
                                  <label style="color:#000;">Contenu (Cahier de texte)</label>
                                  {% render_field form.contenu class="form-control" placeholder="Remplissez ici votre cahier de text" %}
                              </div>

                          </div>

                          <div class="modal-footer">
                            <button type="submit" class="btn btn-success" {% if seance.admin_valid %}disabled{% endif %}>Enregistrer</button>
                            <a href="{% url 'EspaceEnseignant:seance_cours' %}" class="btn btn-secondary">Annuler</a>
                          </div>
                      </form>
                </div>
                <!-- /.card-body -->
              </div>
              <!-- /.card -->
        </div>


    </div>
  </section>
{% endblock content %}

{% block custom_js %}

{% endblock custom_js %}