Commit aed08c41 authored by Pierre Dittgen's avatar Pierre Dittgen

Adding 'relancer la validation' button

parent 8b6416b4
......@@ -33,6 +33,9 @@
<h2>La table est invalide</h2>
<p>{{ report.error_count }} erreur(s) détectée(s)</p>
{% if source_type == 'url' %}
<button class="btn btn-primary" id="btn-reload">Relancer la validation</button>
{% endif %}
<!-- table checks -->
{% if report.table.errors.structure %}
......@@ -100,7 +103,14 @@
{% block footer %}
<script>
$(function () {
// Errors tooltip activate
$('[data-toggle="tooltip"]').tooltip()
// Reload to re-validate
$('#btn-reload').on('click', function () {
$(this).prop('disabled', true)
window.location.reload(true);
})
})
</script>
{% endblock %}
\ No newline at end of file
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