{% extends 'dg_ufr/base_ufr.html' %}
{% load static %}
{% load custom_tag %}
{% load custom_tag_obj %}
{% 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">LISTE DES MATI&Egrave;RES</h3></div>
                <div class="card-body">
                    <table class="table table-bordered table-striped">
                        {% for semestre in semsestres %}
                            {% if UFR.id|get_ecue_by_ufr_and_semestre:semestre.id %}
                            <tr class="antr">
                                    <td colspan="4" class="antd h4"><center>{{semestre.niveau}} | {{semestre}}</center></td>
                            </tr>
                              <tr>
                                <th>Code</th>
                                <th>libellé</th>
                                <th>Actions</th>
                              </tr>
                              {% for item in UFR.id|get_ecue_by_ufr_and_semestre:semestre.id %}
                                <tr>
                                    <td><b>{{item.code}}</b></td>
                                    <td style="text-transform:uppercase;">{{item.libelle}}</td>
                                    <td>
                                        <a type="button" class="btn btn-primary btn-xm " href="{% url 'EspaceEnseignant:emploi_du_temps_add' item.id %}" ><i class="fa fa-plus" title="Emploi du Temps"></i> Program.</a>
                                    </td>
                                </tr>
                              {% empty %}
                                <tr>
                                    <td colspan="3"><center>Aucun résultat</center></td>
                                </tr>
                              {% endfor %}
                            {% endif %}
                        {% endfor %}
                    </table><br/>
                    <!--<div class="blog">
                        {% include 'other_admin/pagination.html' %}
                    </div> -->
                </div>
            </div>
        </div>


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

{% block custom_js %}

{% endblock custom_js %}