-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #228 from mvergez/feat/report
Feat/report-158
- Loading branch information
Showing
18 changed files
with
1,159 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,239 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Export rapport d'import</title> | ||
</head> | ||
|
||
<body> | ||
<div class="header"> | ||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
href="{{url_for('static', filename='css/metadata_pdf.css')}}" | ||
> | ||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
href="{{url_for('static', filename='css/custom.css')}}" | ||
> | ||
<img | ||
class="bandeau" | ||
src="{{url_for('static', filename='images/Bandeau_pdf.png')}}" | ||
alt="Bandeau" | ||
> | ||
<img | ||
class="logo" | ||
src="{{url_for('static', filename='images/logo_structure.jpg')}}" | ||
alt="Logo" | ||
> | ||
</div> | ||
<div class="titre"> | ||
<h5> Import ID : {{ data.id_import }} </h5> | ||
<h5> Date d'import : {{ data.date_end_import.split(" ")[0] }} </h5> | ||
<h5> Nom du fichier d'import : {{ data.full_file_name }} </h5> | ||
<div class="ligne-titre ligne main-color"></div> | ||
</div> | ||
{% if data.taxa_count: %} | ||
<div class="etiquettes"> | ||
<div id="taxons" class="etiquette"> | ||
<div class="etiquette-haut"> | ||
<img | ||
class="logo-etiquette" | ||
src="{{url_for('static', filename='images/Taxon_icon.svg')}}" | ||
alt="taxon-icon" | ||
> | ||
<div class="etiquette-bas"> | ||
<small>Taxons</small> | ||
</br> | ||
{% if data.taxa_count: %} | ||
{{ data.taxa_count }} | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="data" class="etiquette"> | ||
<div class="etiquette-haut"> | ||
<img | ||
class="logo-etiquette" | ||
src="{{url_for('static', filename='images/Donnee_icon.svg')}}" | ||
alt="donnee-icon" | ||
> | ||
<div class="etiquette-bas"> | ||
<small>Données importées/totales</small> | ||
</br> | ||
{% if data.import_count: %} | ||
{{ data.import_count }} / {{ data.source_count }} | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
<div class="zone"> | ||
<!-- <p class="zone-geographique">Périmètre géographique</p> --> | ||
<h5 class="zone-geographique">Zone géographique</h5> | ||
<img id="map" src="{{ data.map }}"> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
<div class="description"> | ||
<div class="left-block"> | ||
<p class="fiche-descriptive">Fiche descriptive</p> | ||
<div class="information"> | ||
<p class="info-titre">Identification</p> | ||
<p class="info-contenu"> | ||
<br> | ||
Auteur : | ||
{% if data.author_name: %} | ||
{{ data.author_name }} | ||
{% endif %} | ||
<br> | ||
SRID : | ||
{% if data.srid: %} | ||
{{ data.srid }} | ||
{% endif %} | ||
<br> | ||
Encodage : | ||
{% if data.encoding: %} | ||
{{ data.encoding }} | ||
{% endif %} | ||
<br> | ||
Format : | ||
{% if data.format_source_file: %} | ||
{{ data.format_source_file }} | ||
{% endif %} | ||
<br> | ||
Jeux de données : | ||
{% if data.dataset_name: %} | ||
{{ data.dataset_name }} | ||
{% endif %} | ||
</p> | ||
</div> | ||
|
||
{% if data.keywords: %} | ||
<div class="information"> | ||
<p class="info-titre">Mots-clés</p> | ||
<p class="info-contenu"> | ||
{{ data.keywords }} | ||
</p> | ||
</div> | ||
{% endif %} | ||
</div> | ||
<div id="chart" class="zone"> | ||
<p class="zone-geographique">Répartition taxonomique</p> | ||
<img src="{{ data.chart }}"> | ||
</div> | ||
</div> | ||
<div id="Error-block" class="information"> | ||
<p class="info-titre">Erreurs</p> | ||
<p class="info-contenu"> | ||
<div id="errors"> | ||
<table id="error-table"> | ||
<thead> | ||
<tr> | ||
<th class="main-color">Type d'erreur</th> | ||
<th class="main-color">Champ</th> | ||
<th class="main-color">Nombre d'erreur(s)</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for error in data.errors %} | ||
<tr> | ||
<td>{{ error.error_type }}</td> | ||
<td>{{ error.column_error }}</td> | ||
<td>{{ error.id_rows | length }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</p> | ||
</div> | ||
<div class="footer"> | ||
<a href="{{data.url}}">Voir le rapport dans le module d'import</a> | ||
<span>{{data.date_end_import}}</span> | ||
</div> | ||
</body> | ||
<style> | ||
/* Puts style here since I cannot make blueprint static files work...*/ | ||
.zone img { | ||
max-width: 200px; | ||
max-height: 100px; | ||
} | ||
|
||
.zone { | ||
max-width: 400px; | ||
max-height: 100px; | ||
margin-left: 0px; | ||
margin-top: 5px; | ||
} | ||
|
||
#chart { | ||
margin-left: 30px; | ||
} | ||
|
||
h5 { | ||
text-align: center; | ||
} | ||
|
||
#Error-block { | ||
margin-top: 20px; | ||
margin-left: 5px; | ||
} | ||
|
||
#errors { | ||
margin-right: 10px; | ||
} | ||
|
||
#error-table { | ||
border-collapse: collapse; | ||
width: 100%; | ||
} | ||
|
||
#error-table td, #error-table th { | ||
border: 1px solid #ddd; | ||
padding: 8px; | ||
} | ||
|
||
#error-table tr:nth-child(even){background-color: #f2f2f2;} | ||
|
||
#error-table td { | ||
font-size: 10px; | ||
} | ||
|
||
#error-table th { | ||
padding-top: 8px; | ||
padding-bottom: 8px; | ||
text-align: left; | ||
color: white; | ||
font-size: 12px; | ||
|
||
} | ||
|
||
#taxons { | ||
width: 150px; | ||
margin-top: 50px; | ||
} | ||
|
||
#data { | ||
width: 350px; | ||
margin-top: 50px; | ||
} | ||
|
||
.etiquettes { | ||
display: contents; | ||
margin: 0px 0px 0px 0px; | ||
} | ||
|
||
.left-block { | ||
width: 700px; | ||
margin-left: 5px; | ||
} | ||
.description { | ||
margin-left: 0px; | ||
width: 720px; | ||
} | ||
</style> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 0 additions & 56 deletions
56
frontend/app/components/import_errors/import_errors.component.html
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
frontend/app/components/import_errors/import_errors.component.scss
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.