{% extends 'EspaceEtudiant/base_etudiant.html' %}
{% load static %}
{% load custom_tag %}
{% block page_title %}{% endblock page_title %}
{% block content %}
{% load unicorn %}
{% unicorn_scripts %}
<section class="content">
    <div style="text-align:center;">
        <h4>ETABLISSEMENT: <span style="color:red">{{etudiant.ufr.code}}</span> | ANNEE: <span style="color:red">{{annee}}</span> | CLASSE: <span style="color:red">{{niveau}}</span></h4>
    </div>

    <div class="container-fluid">
        <div class="row">
            <div class="col-md-12">
                <div class="card">
                    <div class="card-header text-white" style="background: #21618C">
                        <h3 class="card-title ">Matière : ({{ue.code}}) {{ue.libelle}}</h3>
                    </div>
                    <div class="table p-2">
                        <table class="table table-striped table-bordered">
                            {% for ecue in ecues %}
                                <tr>
                                    <th width="100px">CODE</th>
                                    <th>LIBELLE</th>
                                    <th width="100px">COEFF.</th>
                                     {% for evaluation in ecue|get_evaluations_ecue:annee %}
                                    <th width="100px">{{evaluation.libelle}}</th>
                                    {% endfor %}
                                </tr>
                                <tr>
                                    <td><b>{{ecue.code}}</b></td>
                                    <td>{{ecue.libelle}}</td>
                                    <td>{{ecue.credit}}</td>
                                    {% for evaluation in ecue|get_evaluations_ecue:annee %}
                                    <td style="text-center;">
                                        {{ evaluation|get_evalution_note3:args }}
                                    </td>
                                    {% endfor %}
                                </tr>
                            {% endfor%}
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
{% endblock content %}

{% block custom_js %}
{% endblock custom_js %}