{% 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">
            <!--<div class="card">
                <div class="card-header text-white" style="background: #21618C"><h3 class="card-title">MENU</h3></div>
                <div class="card-body">
                    <div class="row">

                    </div>
                </div>
            </div>-->
              <!-- DONUT CHART -->
              <div class="card card-secondary">
                <div class="card-header" style="background: #21618C">
                  <h3 class="card-title" >EIDTER LES SYLLABUS</h3> &nbsp;&nbsp;
                  <div class="card-tools">
                    <button type="button" class="btn btn-tool" data-card-widget="collapse"><i class="fas fa-minus"></i>
                    </button>
                  </div>
                </div>
                <div class="card-body">
                    {% if show_form %}
                    {% else %}
                    <a href="{% url 'EspaceEnseignant:syllabus_ecue_home' ecue.id %}" class="btn btn-primary"><i class="fa  fa-long-arrow-left"></i> Voir le Syllabus</a>
                    {% endif %}
                    <form method="post" action="#" {% if show_form %}{% else %}hidden{% endif %}>
                        {% csrf_token %}
                        <input type="text" value="{{ecue.id}}" name="ecue" hidden>
                    <table class="table table-bordered">
                        <tbody>

                            <tr>
                                <td style="width:200px;font-weight:bold;">Titre de l'ECUE</td>
                                <td>{{ecue.libelle}}</td>
                            </tr>
                            <tr>
                                <td style="font-weight:bold;">Code</td>
                                <td>{{ecue.code}}</td>
                            </tr>
                            <tr>
                                <td style="font-weight:bold;">Parcours</td>
                                <td></td>
                            </tr>
                            <tr>
                                <td style="font-weight:bold;">Crédit(s) ECTS</td>
                                <td>{% render_field form.credit class="form-control" %}</td>
                            </tr>
                            <tr>
                                <td style="font-weight:bold;">Durée (en heures, jours ou semaines)</td>
                                <td>{% render_field form.duree class="form-control" %}</td>
                            </tr>
                            <tr>
                                <td style="font-weight:bold;">Pré-requis</td>
                                <td>{% render_field form.prerequis class="form-control" style="resize:none;height:200px;" %}</td>
                            </tr>
                            <tr>
                                <td style="font-weight:bold;">Objectifs Généraux</td>
                                <td>{% render_field form.objectif class="form-control" style="resize:none;height:200px;" %}</td>
                            </tr>
                            <tr>
                                <td style="font-weight:bold;">Contenu de l'Ecue</td>
                                    <td>{% render_field form.pubNivVise class="form-control" style="resize:none;height:200px;" %}</td>
                            </tr>
                            <tr>
                                <td style="font-weight:bold;">Compétences</td>
                                <td>{% render_field form.Competence class="form-control" style="resize:none;height:200px;" %}</td>
                            </tr>
                            <tr>
                                <td style="font-weight:bold;">Evaluation de l'ECUE</td>
                                <td>{% render_field form.description class="form-control" style="resize:none;height:150px;" %}</td>
                            </tr>
                            <tr>
                                <td style="font-weight:bold;">Equipe de rédaction</td>
                                <td>{% render_field form.participant class="form-control" style="resize:none;height:200px;" %}</td>
                            </tr>
                            <tr>
                                <td style="font-weight:bold;">No. Version et date</td>
                                <td>{% render_field form.versionDate class="form-control" style="resize:none;height:200px;" %}</td>
                            </tr>
                            <tr>
                                <td style="font-weight:bold;">Bibliographie</td>
                                <td>{% render_field form.bibliographie class="form-control" style="resize:none;height:200px;" %}</td>
                            </tr>
                        </tbody>
                    </table>
                        <center><button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> Enregistrer</button></center>
                    </form>
                </div>
                <!-- /.card-body -->
              </div>
              <!-- /.card -->
        </div>


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

{% block custom_js %}

{% endblock custom_js %}