{% load static %}
{% load custom_tag %}
<!DOCTYPE>
<html>
    <head>
        <title>Deliberation Ecue:{{ ecue.code }}</title>
        <style type="text/css">
            .usp-info img{
                width:1124px;
            }
            .table{
                border:1px solid #000000;
                text-align:left;
                font-size:11px;
                border-collapse: collapse;
            }
            .table-2{
                border:1px solid #000000;
                width:80%;
                text-align:left;
                font-size:12px;
            }
            .table tr{
                padding:1px;
            }
            .table td {
              border: 1px solid;
            }
            .table th{
                text-align:left;
                padding:1px;
            }
            .nce{
                width:148px;
            }
            .nom{
                width:160px;
            }
            .ue-content{
                min-width:45px;
            }
            .title{
                font-size:20px;
                text-align: center;
                border:1px solid #000000;
                padding:15px;
            }
            .stat-ue{
                font-size:16px;
                font-weight:bold;
                width:113px;
                padding:3px 2px 1px 2px;
            }
            .stat-ue-2{
                font-size:16px;
                font-weight:bold;
                width:200px;
                padding:3px 2px 1px 2px;
            }
            .bg-orange{
                background-color:#fdc000;
            }
            @page{
                size: a4 landscape;
                margin:  25px 50px 25px 50px;


            }
        </style>
    </head>
    <body>
      <div class="pdf-content">
          <div class="usp-info">
                <img src="static/ac-img/usp-info.png">
          </div>
          <br/>
          <div class="title">
              <span style="font-weight:bold;">UFR: {{get_ufr}}</span><br/>
              <span style="text-transform: uppercase;">ANNEE UNIVERSITAIRE: {{get_annee}}</span><br/>
              <span style="text-transform: uppercase;">NIVEAU: {{get_niveau}}</span><br/>
              <span style="font-weight:bold;">ECUE: ({{ecue.code}}) {{ecue.libelle}}</span><br/>
              <br/>
          </div><br/>
          <br/>
          <p style="text-align:center;font-size:20px;text-transform:uppercase;text-decoration:underline;">
              RESULTATS ECUE: ({{ecue.code}}) {{ecue.libelle}}

            </p>
          <table class="table">
              <thead>
                    <th style="width:35px;text-align:center;"></th>
                    <th style="width:115px;text-align:center;">NCE</th>
                    <th style="text-align:center;">NOMS ET PRENOMS</th>
                    {% for evaluation in EvalEns %}
                        <th style="width:100px;text-align:center;">
                                {{ evaluation.libelle }}
                        </th>
                    {% endfor %}
                    <th style="width:100px;text-align:center;">MU</th>
                    <th style="width:90px;text-align:center;">Délibér.</th>
              </thead>
              <tbody>
              {% for item in zip_list %}
                    <tr>
                        <td style="text-align:center;">{{ forloop.counter }}</td>
                        <td>{{ item.1.nce }}</td>
                        <td>{{ item.1 }}</td>
                        {% for note in item.0 %}
                            <td style="text-align:center;">
                                <span>{{ note}}</span> <!--&nbsp;<i class="fa fa-pen">--></i>
                            </td>
                        {% endfor %}
                        <td style="text-align:center;">{{ item.2 |stringformat:".2f"}}</td>
                        <td style="width:90px;padding:4px;text-align:center;">{{ item.3 }}</td>
                    </tr>
              {% endfor %}
              </tbody>
          </table>

      </div>
    <div id="footer_content">(c) - page <pdf:pagenumber>/<pdf:pagecount></div>
    </body>
</html>