validation_report.html 1009 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{% extends "base.html" %}
{% block title %}{{ title }}{% endblock %}
{% block head %}
{{ super() }}
{% endblock %}
{% block content %}
<h1>{{ title }}</h1>

<div class="card bg-faded" style="width: 30rem;">
    <div class="card-body">
        <h5 class="card-title">
            Schéma {{ val_info.code }}
            <span class="badge badge-primary">{{ val_info.version }}</span>
        </h5>
        <h6 class="card-subtitle mb-2 text-muted">{{ val_info.description }}</h6>
        <p class="text">
            {% if source_type == 'file' %}Fichier{% endif %}
            {% if source_type == 'url' %}URL{% endif %}
            à valider : {{ source }}
        </p>
    </div>
</div>

{% if report.valid %}
<h2>La table est valide</h2>
<p>Aucune erreur détectée</p>
Pierre Dittgen's avatar
Pierre Dittgen committed
27
28
29

{% include 'table_preview.html' %}

30
{% else %}
Pierre Dittgen's avatar
Pierre Dittgen committed
31

32
<h2>La table est invalide</h2>
Pierre Dittgen's avatar
Pierre Dittgen committed
33
34
<p>{{ len(report['errors']) }} erreur(s) détectée(s)</p>

35
36
37
38
39
40
41
42
43
44
45
46
{% endif %}




<pre>
{{ report_str }}
</pre>

{% endblock %}
{% block footer %}
{% endblock %}