{% 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 TYPE DE PUBLICATION

    </div>
    <div class="card-body">
        <form action="#" method="post">
               {% csrf_token %}
                <div class="form-group">
                    <label>Nom de l'équipe</label>
                    {% render_field form.libelle class="form-control" placeholder="Entrez le libellé" %}
                </div>
                <div class="form-group">
                    <label>Libellé</label>
                    {% render_field form.institut class="form-control" placeholder="Institut" %}
                </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 %}