report.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4. <title>{{ report.title }}</title>
  5. <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='font-awesome-4.7.0/css/font-awesome.min.css') }}">
  6. <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='jquery-ui/jquery-ui.min.css') }}"/>
  7. <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='DataTables/datatables.min.css') }}"/>
  8. <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='datachecker.css') }}"/>
  9. <script type="text/javascript" src="{{ url_for('static', filename='jquery-3.3.1.min.js') }}"></script>
  10. <script type="text/javascript" src="{{ url_for('static', filename='jquery-ui/jquery-ui.min.js') }}"></script>
  11. <script type="text/javascript" src="{{ url_for('static', filename='DataTables/datatables.min.js') }}"></script>
  12. <script type="text/javascript" src="{{ url_for('static', filename='datachecker.js') }}"> </script>
  13. </head>
  14. <body>
  15. <header>
  16. <h1>Rapport du Contrôle</h1>
  17. </header>
  18. <a id="logo" href="\" title="Retour à l'accueil">
  19. <img src="{{ url_for('static', filename='mn_logo_mini.png') }}" />
  20. </a>
  21. <section id=main>
  22. {% for reportfile in report.report_files %}
  23. <h2><i class="fa fa-file"></i> {{ reportfile.file }}</h2>
  24. {%- if reportfile.errors -%}
  25. <ul>
  26. {% for err in reportfile.errors %}
  27. <li class="fa fa-exclamation-circle error"> {{ err }}</li>
  28. {% endfor %}
  29. </ul>
  30. {% endif %}
  31. <table class="datatable cell-border display compact stripe">
  32. <thead>
  33. <tr>
  34. <th>N°</th>
  35. <th>Valide</th>
  36. {% for header in reportfile.headers %}
  37. <th>{{ header }}</th>
  38. {% endfor %}
  39. </tr>
  40. </thead>
  41. <tbody>
  42. {% for record in reportfile.records %}
  43. <tr>
  44. <td>{{ record.index }}</td>
  45. <td>
  46. {%- if record.valid -%}
  47. <i class="fa fa-check valid"></i>
  48. {% else %}
  49. <i class="fa fa-times error"></i>
  50. {% endif %}
  51. </td>
  52. {% for field in record.fields %}
  53. {%- if field.valid -%}
  54. <td>{{ field.value }}</td>
  55. {% else %}
  56. <td class="error" title="{{ field.error }}"><i class="fa fa-exclamation-circle"></i> <span>{{ field.value }}</span></td>
  57. {% endif %}
  58. {% endfor %}
  59. </tr>
  60. {% endfor %}
  61. </tbody>
  62. </table>
  63. {% endfor %}
  64. </section>
  65. </body>
  66. </html>