Compare commits
38 Commits
88fc767e7a
...
955c8df46a
Author | SHA1 | Date |
---|---|---|
diary | 955c8df46a | 9 months ago |
Ubuntu | 301f8810c6 | 9 months ago |
Ubuntu | a510d411c9 | 9 months ago |
root | 5ca1cd9852 | 1 year ago |
root | fd1ef94df3 | 1 year ago |
root | 0f1582ef37 | 1 year ago |
root | b6a2db60d8 | 1 year ago |
Onja | be2aa34303 | 1 year ago |
Onja | 7b77339cd8 | 1 year ago |
Onja | 299191b0f2 | 1 year ago |
Onja | 82d0cb32e1 | 1 year ago |
Onja | 406820e0ac | 1 year ago |
Onja | 2df187edea | 1 year ago |
Onja | be8e78639c | 1 year ago |
Onja | 79d3e8c391 | 1 year ago |
Onja | 4ce04de2a5 | 1 year ago |
root | 01c8c046a0 | 1 year ago |
root | 184b68389c | 1 year ago |
Onja | 56eaced508 | 1 year ago |
root | 999617245d | 1 year ago |
root | ed3559b1f0 | 1 year ago |
root | e4d8e2a580 | 1 year ago |
Onja | 62798ab869 | 1 year ago |
Onja | cd747af78a | 1 year ago |
Onja | 1421af2bb2 | 1 year ago |
Onja | f1d912638c | 1 year ago |
root | 4cfc9d6f1c | 1 year ago |
root | d7a38ff8e3 | 1 year ago |
root | 8718f552f1 | 1 year ago |
Onja | d71f3e4a00 | 1 year ago |
Onja | 42f53cd32e | 1 year ago |
Onja | 6b1683d0ab | 1 year ago |
Onja | ca981c24cc | 1 year ago |
Onja | 1cd5608c43 | 1 year ago |
Onja | 91ad8ea526 | 1 year ago |
root | 84e930d29c | 1 year ago |
root | 9016c3ee89 | 1 year ago |
root | 84298632fe | 1 year ago |
7 changed files with 1193 additions and 8814 deletions
File diff suppressed because it is too large
@ -1,99 +1,100 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="en"> |
|||
|
|||
<head> |
|||
<meta charset="UTF-8"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|||
<title>Génération CSV</title> |
|||
<!-- Include jQuery --> |
|||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> |
|||
<!-- Include jQuery UI --> |
|||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> |
|||
<!-- Include custom CSS --> |
|||
<link rel="stylesheet" href="styles.css"> |
|||
<title>Génération CSV</title> |
|||
<!-- Include jQuery --> |
|||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> |
|||
<!-- Include jQuery UI --> |
|||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> |
|||
<!-- Include custom CSS --> |
|||
</head> |
|||
|
|||
<body> |
|||
<div class="container"> |
|||
<div class="px-4 py-5 my-5 text-center"> |
|||
<h1 class="display-5 fw-bold text-body-emphasis">Génération CSV</h1> |
|||
<p class="lead mb-4">Génération de fichier CSV depuis une URL pointant vers un fichier de bodacc</p> |
|||
</div> |
|||
<div class="container-fluid"> |
|||
<div class="row"> |
|||
<div class="col-12"> |
|||
<form method="post" action="/" id="form-download"> |
|||
<div class="form-group mb-3"> |
|||
<img src="/img/help.jpg" alt="help" class="img-fluid img-thumbnail" /> |
|||
</div> |
|||
<hr /> |
|||
<div class="form-group mt-3"> |
|||
<label for="name" class="form-label">URL</label> |
|||
<textarea class="form-control" id="form__url" name="url" rows="5">{{form.url.value}}</textarea> |
|||
<div class="form-text"> |
|||
Insérer dans le champs ci-dessus l'url du fichier CSV bodacc à télécharger |
|||
<div id="index"> |
|||
<div class="container"> |
|||
|
|||
<div class="px-4 py-5 my-5 text-center"> |
|||
<h1 class="display-5 fw-bold text-body-emphasis">Génération CSV</h1> |
|||
<p class="lead mb-4">Génération de fichier CSV depuis une URL pointant vers un fichier de bodacc</p> |
|||
</div> |
|||
|
|||
<div class="container-fluid"> |
|||
<div class="row"> |
|||
<div class="col-12"> |
|||
<form method="post" action="/" id="form-download"> |
|||
<div class="form-group mb-3"> |
|||
<img src="/img/help.jpg" alt="help" class="img-fluid img-thumbnail" /> |
|||
</div> |
|||
</div> |
|||
<div class="row my-5"> |
|||
<div class="col-12 col-md-6"> |
|||
<div class="form-group form__column column-choices"> |
|||
<label for="name" class="column-choices__title">Colonnes disponibles</label> |
|||
<ul id="form__choices" class="column-choices__list"> |
|||
{{#each form.columns.options}} |
|||
<li class="form__choice column-choice" data-value="{{this}}"> |
|||
<label class="column-choice__inner"> |
|||
<input type="checkbox" name="columns[]" value="{{this}}" class="column-choice__input" /> |
|||
<span class="column-choice__text">{{this}}</span> |
|||
</label> |
|||
</li> |
|||
{{/each}} |
|||
</ul> |
|||
<hr /> |
|||
<div class="form-group mt-3"> |
|||
<label for="name" class="form-label">URL</label> |
|||
<textarea class="form-control" id="form__url" name="url" rows="5">{{form.url.value}}</textarea> |
|||
<div class="form-text"> |
|||
Inserer dans le champs ci-dessus l'url du fichier CSV bodacc à télécharger |
|||
</div> |
|||
</div> |
|||
<div class="col-12 col-md-6"> |
|||
<div class="form-group form__column column-choices"> |
|||
<label for="name" class="column-choices__title column-choices__title--green">Colonnes |
|||
exportées</label> |
|||
<ul id="form__selected" class="column-choices__list"> |
|||
{{#each form.columns.selected}} |
|||
<li class="form__choice column-choice" data-value="{{this}}"> |
|||
<label class="column-choice__inner"> |
|||
<input type="checkbox" name="columns[]" value="{{this}}" class="column-choice__input" |
|||
checked="checked" /> |
|||
<span class="column-choice__text">{{this}}</span> |
|||
</label> |
|||
</li> |
|||
{{/each}} |
|||
</ul> |
|||
<div class="row my-5"> |
|||
<div class="col-12 col-md-6"> |
|||
<div class="form-group form__column column-choices"> |
|||
<label for="name" class="column-choices__title">Colonnes disponibles</label> |
|||
<ul id="form__choices" class="column-choices__list"> |
|||
{{#each form.columns.options}} |
|||
<li class="form__choice column-choice" data-value="{{this}}"> |
|||
<label class="column-choice__inner"> |
|||
<input type="checkbox" name="columns[]" value="{{this}}" class="column-choice__input" /> |
|||
<span class="column-choice__text">{{this}}</span> |
|||
</label> |
|||
</li> |
|||
{{/each}} |
|||
</ul> |
|||
</div> |
|||
</div> |
|||
<div class="col-12 col-md-6"> |
|||
<div class="form-group form__column column-choices"> |
|||
<label for="name" class="column-choices__title column-choices__title--green">Colonnes |
|||
exportées</label> |
|||
<ul id="form__selected" class="column-choices__list"> |
|||
{{#each form.columns.selected}} |
|||
<li class="form__choice column-choice" data-value="{{this}}"> |
|||
<label class="column-choice__inner"> |
|||
<input type="checkbox" name="columns[]" value="{{this}}" class="column-choice__input" |
|||
checked="checked" /> |
|||
<span class="column-choice__text">{{this}}</span> |
|||
</label> |
|||
</li> |
|||
{{/each}} |
|||
</ul> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<hr /> |
|||
<div class="d-flex justify-content-center"> |
|||
<div class="spinner-border text-primary d-none" role="status" id="form__spinner" style=""> |
|||
<span class="visually-hidden">Loading...</span> |
|||
<hr /> |
|||
<div class="d-flex justify-content-center"> |
|||
<div class="spinner-border text-primary d-none" role="status" id="form__spinner" style=""> |
|||
<span class="visually-hidden">Loading...</span> |
|||
</div> |
|||
</div> |
|||
<div class="d-none my-3" id="form__result"> |
|||
<strong>Lien vers le fichier généré : </strong> |
|||
<a href="" target="_blank" download></a> |
|||
</div> |
|||
<div class="d-grid gap-2 col-12 col-md-4 mx-auto my-3"> |
|||
<button class="btn btn-primary" id="form__submit" type="submit">Télécharger</button> |
|||
</div> |
|||
</div> |
|||
<div class="d-none my-3" id="form__result"> |
|||
<strong>Lien vers le fichier généré : </strong> |
|||
<a href="" target="_blank" download></a> |
|||
</div> |
|||
<div class="d-grid gap-2 col-12 col-md-4 mx-auto my-3"> |
|||
<button class="btn btn-primary" id="form__submit" type="submit">Télécharger</button> |
|||
</div> |
|||
</form> |
|||
</form> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- /.container-fluid --> |
|||
</div> |
|||
</div> |
|||
<!-- Script pour le fonctionnement de drag and drop et AJAX --> |
|||
<script> |
|||
$(document).ready(function () { |
|||
<!-- Script pour le fonctionnement de drag and drop et AJAX --> |
|||
<script> |
|||
$(document).ready(function () { |
|||
$("#form__selected").sortable({ |
|||
revert: false, |
|||
helper: "clone" |
|||
}); |
|||
}); |
|||
</script> |
|||
</script> |
|||
</body> |
|||
</html> |
Loading…
Reference in new issue