| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <!DOCTYPE html>
- <html lang="fr">
- <head>
- <title>{{ report['title'] }}</title>
- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='font-awesome-4.7.0/css/font-awesome.min.css') }}">
- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='jquery-ui/jquery-ui.min.css') }}"/>
- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='DataTables/datatables.min.css') }}"/>
- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='datachecker.css') }}"/>
-
- <script type="text/javascript" src="{{ url_for('static', filename='jquery-3.3.1.min.js') }}"></script>
- <script type="text/javascript" src="{{ url_for('static', filename='jquery-ui/jquery-ui.min.js') }}"></script>
- <script type="text/javascript" src="{{ url_for('static', filename='DataTables/datatables.min.js') }}"></script>
- <script type="text/javascript" src="{{ url_for('static', filename='datachecker.js') }}"> </script>
- </head>
- <body>
- <header>
- <a id="logo" href="\" title="Retour à l'accueil">
- <img src="{{ url_for('static', filename='mn_logo_mini.png') }}" />
- </a>
- <h1>Rapport de contrôle</h1>
- </header>
-
- <section id=main>
-
- <table style="text-align: left;">
- <tr>
- <th style="width: 150px;">Schéma</th>
- <td>{{ report['schema'] }}</td>
- </tr>
- <tr>
- <th>Fichier contrôlé</th>
- <td>{{ report['filename'] }}</td>
- </tr>
- <tr>
- <th>Temps de traitement</th>
- <td>{{ report['exec_time'] }}</td>
- </tr>
- </table>
-
- <h3>Check-Points</h3>
- <table style="border: none;">
- {% for chk in report['checkpoints'] %}
- <tr>
- {%- if chk['valid'] -%}
- <th><i class="fa fa-check valid"></i></th> <td>{{ chk['name'] }}</td>
- {% else %}
- <th><i class="fa fa-times error"></i></th> <td>{{ chk['name'] }}</td>
- {% endif %}
- </tr>
- {% endfor %}
- </table>
-
-
- {%- if report['errors'] -%}
- <h3>Détail des erreurs</h3>
-
- <table class="datatable cell-border display compact stripe">
- <thead>
- <tr>
- <th>Erreur</th>
- <th>Fichier</th>
- <th>Champs</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- {% for typeerr in report['errors'] %}
- {% for err in report['errors'][typeerr]['list'] %}
- <tr>
- <td data-sort='{{ report['errors'][typeerr]['order_'] }}'>{{ typeerr }}</td>
- <td>{{ err['filename'] }}</td>
- <td>{{ err['field'] }}</td>
- <td>{{ err['message'] }}</td>
- </tr>
- {% endfor %}
- {% endfor %}
- </tbody>
- </table>
- {% endif %}
-
- </section>
-
- </body>
- </html>
|