report.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. <a id="logo" href="\" title="Retour à l'accueil">
  17. <img src="{{ url_for('static', filename='mn_logo_mini.png') }}" />
  18. </a>
  19. <h1>{{ report['title'] }}</h1>
  20. </header>
  21. <section id=main>
  22. <h3>Check-Points</h3>
  23. <ul>
  24. {% for chk in report['checkpoints'] %}
  25. {%- if chk['valid'] -%}
  26. <li><i class="fa fa-check valid"></i> <span>{{ chk['name'] }}</span></li>
  27. {% else %}
  28. <li><i class="fa fa-times error"></i> <span>{{ chk['name'] }}</span></li>
  29. {% endif %}
  30. {% endfor %}
  31. </ul>
  32. {%- if report['errors'] -%}
  33. <h3>Détail des erreurs</h3>
  34. <table class="datatable cell-border display compact stripe">
  35. <thead>
  36. <tr>
  37. <th>Erreur</th>
  38. <th>Criticité</th>
  39. <th>Fichier</th>
  40. <th>Champs</th>
  41. <th>Description</th>
  42. <th>Aide</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. {% for typeerr in report['errors'] %}
  47. {% for err in report['errors'][typeerr]['list'] %}
  48. <tr>
  49. <td>{{ typeerr }}</td>
  50. <td></td>
  51. <td>{{ err['filename'] }}</td>
  52. <td>{{ err['field'] }}</td>
  53. <td>{{ err['message'] }}</td>
  54. <td>
  55. <i class="fa fa-question-circle" style="color: blue" "title="{{ report['errors'][typeerr]['help'] }}"></i>
  56. </td>
  57. </tr>
  58. {% endfor %}
  59. {% endfor %}
  60. </tbody>
  61. </table>
  62. {% endif %}
  63. </section>
  64. </body>
  65. </html>