Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Validata
validata-ui
Commits
ceac3b1b
Commit
ceac3b1b
authored
Nov 28, 2018
by
Pierre Dittgen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI fixes
parent
294de3aa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
15 deletions
+25
-15
validata_ui/templates/base_template.html
validata_ui/templates/base_template.html
+6
-2
validata_ui/templates/validation_macros.html
validata_ui/templates/validation_macros.html
+4
-2
validata_ui/templates/validation_report.html
validata_ui/templates/validation_report.html
+15
-11
No files found.
validata_ui/templates/base_template.html
View file @
ceac3b1b
...
...
@@ -73,13 +73,17 @@
{% block footer %}{% endblock %}
<footer
class=
"footer"
>
<div>
Un service de validation mis à disposition par
Le service de validation du
<a
href=
"https://www.validata.fr/"
>
projet Validata
</a>
est mis à disposition par
<a
href=
"http://www.opendatafrance.net/"
>
OpenDataFrance
</a>
avec
l'aide de
<a
href=
"https://jailbreak.paris"
>
Jailbreak
</a>
</div>
<ul
class=
"list-unstyled mt-4"
>
<li><a
href=
"/docs"
target=
"_blank"
>
Documentation
</a></li>
<li><a
href=
"/api/v1/apidocs"
target=
"_blank"
>
API
</a></li>
<li><a
href=
"https://git.opendatafrance.net/validata"
target=
"_blank"
>
Code source
</a></li>
<li><a
href=
"/docs"
target=
"_blank"
>
Documentation
</a></li>
<li><a
href=
"https://riot.im/app/#/room/!grYuWajLztzrYUfnez:jailbreak.paris"
target=
"_blank"
>
Salon de
discussion public
</a></li>
</ul>
</footer>
...
...
validata_ui/templates/validation_macros.html
View file @
ceac3b1b
...
...
@@ -71,18 +71,20 @@
{% set structure_errors = report.table['error-stats']['structure-errors'] %}
{% if structure_errors['count'] != 0 %}
Erreur
(s)
de structure ({{ structure_errors['count'] }}) :
Erreur
s
de structure ({{ structure_errors['count'] }}) :
<ul>
{% for elt in structure_errors['count-by-code'] %}
<li>
{{ elt[0] }} : {{ elt[1] }}
</li>
{% endfor %}
</ul>
{% else %}
Aucune erreur de structure.
<br/>
{% endif %}
{% if report.table.do_display_body_errors %}
{% set value_errors = report.table['error-stats']['value-errors'] %}
{% if value_errors['count'] != 0 %}
Erreur
(s)
de contenu ({{ value_errors['count'] }}) :
Erreur
s
de contenu ({{ value_errors['count'] }}) :
<ul>
{% for elt in value_errors['count-by-code'] %}
<li>
{{ elt[0] }} : {{ elt[1] }}
</li>
...
...
validata_ui/templates/validation_report.html
View file @
ceac3b1b
...
...
@@ -90,13 +90,20 @@
<h2>
La table est invalide
</h2>
<p>
{{ report.table['error-stats']['count'] }} erreur(s) détectée(s).
</p>
<p>
{% set error_count = report.table['error-stats']['count'] %}
{% if error_count == 1 %}
1 erreur détectée.
{% else %}
{{ error_count }} erreurs détectées.
{% endif %}
</p>
{{ macros.error_statistics(report) }}
<h3>
Problèmes de structure
</h3>
{% if report.table.errors.structure %}
<h3>
Erreurs de structure
</h3>
{# Non-column errors #}
{% for err in report.table.errors.structure %}
{% if not err.in_column_comp %}
...
...
@@ -118,29 +125,26 @@
<thead
class=
"thead-light"
>
<tr>
<th
scope=
"col"
>
Colonnes du fichier
</th>
<th
scope=
"col"
>
C
hamps du schéma
</th>
<th
scope=
"col"
>
C
olonnes attendues
</th>
</tr>
</thead>
<tbody>
{% for elt in report.table.column_comparison_info %}
<tr
{%
if
elt[2] =
=
'
ko
'
%}
class=
"table-danger"
{%
endif
%}
>
<td>
{{ elt[0]}}
</td>
<td>
{{ elt[1]}}
</td>
<td>
{{ elt[0]
}}
</td>
<td>
{{ elt[1]
}}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<p>
Attention : toutes les colonnes attendues doivent être présentes dans le fichier à valider.
<p>
{% endif %}
{% else %}
<p>
Aucune erreur de structure
</p>
{% endif %}
{# We do display body errors! #}
{% if report.table.do_display_body_errors %}
<h3>
Problème
s de contenu
</h3>
<h3>
Erreur
s de contenu
</h3>
{# No errors - display preview #}
{% if not report.table.errors.body %}
...
...
@@ -159,7 +163,7 @@
{# do not display errors #}
{% else %}
<p>
Veuillez corriger ce
(s)
erreur
(s)
pour visualiser les éventuel
s problème
s de contenu.
Veuillez corriger ce
s
erreur
s
pour visualiser les éventuel
les erreur
s de contenu.
</p>
{% endif %}
{% endif %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment