Commit 50822058 authored by Pierre Dittgen's avatar Pierre Dittgen

UI adjustments

- Remove 'Relancer la validation' button
- Add alert info to enjoin reload page to run the validation again
- Add link on URL source
parent cf2f79bd
......@@ -12,7 +12,9 @@
{% block content %}
<h1>{{ title }}</h1>
<p class="text">Validation effectuée {{ validation_date }}</p>
<p class="text alert alert-info">
Pour relancer la validation, <a href="#" onclick="location.reload();">rechargez</a> la page.
</p>
{# Schema info #}
<div class="row">
<div class="col-md-5 my-4">
......@@ -37,10 +39,15 @@
<a href="{{ val_info.docurl }}" target="_blank" class="card-link">Documentation</a>
</p>
<hr />
<p class="text alert alert-info" style="margin-bottom: 0;">
<p class="text alert alert-secondary" style="margin-bottom: 0;">
Source
({% if source_type == 'file' %}fichier{% endif %}{% if source_type == 'url' %}URL{% endif %})
: <em>{{ source.name }}</em>
{% if source_type == 'file' %}
(fichier) : <em>{{ source.name }}</em>
{% endif %}
{% if source_type == 'url' %}
(URL) : <em><a href="{{source.name}}" target="_blank" title="{{source.name}}">{{source.name |
truncate(60)}}</a></em>
{% endif %}
<br />
Dimensions : <em>{{ report.table.col_count }} colonnes et {{ report.table.row_count }} lignes</em>
</p>
......@@ -61,9 +68,6 @@
<h2>La table est invalide</h2>
{% if source_type == 'url' %}
<a class="btn btn-secondary my-2" href="{{ request.url }}">Relancer la validation</a>
{% endif %}
{# table checks #}
{% if report.table.errors.structure %}
......
......@@ -15,7 +15,7 @@ import validata_ui.validata_util as vu
from validata_core import csv_helpers
from validata_core.loaders import custom_loaders
from validata_ui import app
from validata_ui.ui_util import (flash_error, flash_warning)
from validata_ui.ui_util import flash_error, flash_warning
from validata_ui.validata_util import ValidataSource
from validata_ui.validate_helper import ValidatorHelper
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment