{% extends 'enseignant/base_profile.html' %}
{% load static %}
{% load widget_tweaks %}
{% load unicorn %}
{% unicorn_scripts %}
{% block custom_css %}
<style>
        #loading {
            background: red;
            position: fixed;
            top: 0;
            width: 100%;
            height: 100%;
        }

    </style>
{% endblock custom_css %}
{% block page_title %}{{page_title}}{% endblock page_title %}
{% block content %}
<section class="content">
    <div class="container-fluid">
        <!-- Small boxes (Stat box)-->
        {% include "enseignant/parts/stats_seance.html" %}

    </div>
  </section>


<div class="card mb-3">
    <div class="card-header">
        <i class="fas fa-table"></i>
        MODIFIER UN COURS
    </div>
    <div class="card-body">
        <form action="#" method="post">
               {% csrf_token %}
                <div class="form-group">
                    <label>ANNEE</label>
                    {% render_field form.annee class="form-control" placeholder="Ex:2022-2023" %}
                </div>
              <div class="form-group">
                    <label>LIBELLE</label>
                    {% render_field form.libelle class="form-control" placeholder="Ex:Proba-stat" %}
                </div>
              <div class="form-group">
                    <label>NIVEAU</label>
                    {% render_field form.niveau class="form-control" placeholder="Ex:L1,Licence 1" %}
                </div>
              <div class="form-group">
                    <label>ETABLISSEMENT</label>
                    {% render_field form.etablissement class="form-control" placeholder="Ex:USP" %}
                </div>


              <div class="modal-footer">
                <button type="submit" class="btn btn-success">Enregistrer</button>
              </div>
          </form>
    </div>
</div>
{% endblock content %}

{% block custom_js %}
<script>
    $('#sField').change(function(){
        $('#sForm').submit()
    });
</script>
{% endblock custom_js %}