diary
9 months ago
7 changed files with 1193 additions and 8814 deletions
File diff suppressed because it is too large
@ -1,99 +1,100 @@ |
|||||
<!DOCTYPE html> |
<!DOCTYPE html> |
||||
<html lang="en"> |
<html lang="en"> |
||||
|
|
||||
<head> |
<head> |
||||
<meta charset="UTF-8"> |
<meta charset="UTF-8"> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
<title>Génération CSV</title> |
||||
<title>Génération CSV</title> |
<!-- Include jQuery --> |
||||
<!-- Include jQuery --> |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> |
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> |
<!-- Include jQuery UI --> |
||||
<!-- Include jQuery UI --> |
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> |
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> |
<!-- Include custom CSS --> |
||||
<!-- Include custom CSS --> |
|
||||
<link rel="stylesheet" href="styles.css"> |
|
||||
</head> |
</head> |
||||
|
|
||||
<body> |
<body> |
||||
<div class="container"> |
<div id="index"> |
||||
<div class="px-4 py-5 my-5 text-center"> |
<div class="container"> |
||||
<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 class="px-4 py-5 my-5 text-center"> |
||||
</div> |
<h1 class="display-5 fw-bold text-body-emphasis">Génération CSV</h1> |
||||
<div class="container-fluid"> |
<p class="lead mb-4">Génération de fichier CSV depuis une URL pointant vers un fichier de bodacc</p> |
||||
<div class="row"> |
</div> |
||||
<div class="col-12"> |
|
||||
<form method="post" action="/" id="form-download"> |
<div class="container-fluid"> |
||||
<div class="form-group mb-3"> |
<div class="row"> |
||||
<img src="/img/help.jpg" alt="help" class="img-fluid img-thumbnail" /> |
<div class="col-12"> |
||||
</div> |
<form method="post" action="/" id="form-download"> |
||||
<hr /> |
<div class="form-group mb-3"> |
||||
<div class="form-group mt-3"> |
<img src="/img/help.jpg" alt="help" class="img-fluid img-thumbnail" /> |
||||
<label for="name" class="form-label">URL</label> |
</div> |
||||
<textarea class="form-control" id="form__url" name="url" rows="5">{{form.url.value}}</textarea> |
<hr /> |
||||
<div class="form-text"> |
<div class="form-group mt-3"> |
||||
Insérer dans le champs ci-dessus l'url du fichier CSV bodacc à télécharger |
<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> |
||||
</div> |
<div class="row my-5"> |
||||
<div class="row my-5"> |
<div class="col-12 col-md-6"> |
||||
<div class="col-12 col-md-6"> |
<div class="form-group form__column column-choices"> |
||||
<div class="form-group form__column column-choices"> |
<label for="name" class="column-choices__title">Colonnes disponibles</label> |
||||
<label for="name" class="column-choices__title">Colonnes disponibles</label> |
<ul id="form__choices" class="column-choices__list"> |
||||
<ul id="form__choices" class="column-choices__list"> |
{{#each form.columns.options}} |
||||
{{#each form.columns.options}} |
<li class="form__choice column-choice" data-value="{{this}}"> |
||||
<li class="form__choice column-choice" data-value="{{this}}"> |
<label class="column-choice__inner"> |
||||
<label class="column-choice__inner"> |
<input type="checkbox" name="columns[]" value="{{this}}" class="column-choice__input" /> |
||||
<input type="checkbox" name="columns[]" value="{{this}}" class="column-choice__input" /> |
<span class="column-choice__text">{{this}}</span> |
||||
<span class="column-choice__text">{{this}}</span> |
</label> |
||||
</label> |
</li> |
||||
</li> |
{{/each}} |
||||
{{/each}} |
</ul> |
||||
</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> |
</div> |
||||
<div class="col-12 col-md-6"> |
<hr /> |
||||
<div class="form-group form__column column-choices"> |
<div class="d-flex justify-content-center"> |
||||
<label for="name" class="column-choices__title column-choices__title--green">Colonnes |
<div class="spinner-border text-primary d-none" role="status" id="form__spinner" style=""> |
||||
exportées</label> |
<span class="visually-hidden">Loading...</span> |
||||
<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> |
||||
</div> |
<div class="d-none my-3" id="form__result"> |
||||
<hr /> |
<strong>Lien vers le fichier généré : </strong> |
||||
<div class="d-flex justify-content-center"> |
<a href="" target="_blank" download></a> |
||||
<div class="spinner-border text-primary d-none" role="status" id="form__spinner" style=""> |
</div> |
||||
<span class="visually-hidden">Loading...</span> |
<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> |
</form> |
||||
<div class="d-none my-3" id="form__result"> |
</div> |
||||
<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> |
|
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
|
<!-- /.container-fluid --> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
<!-- Script pour le fonctionnement de drag and drop et AJAX --> |
<!-- Script pour le fonctionnement de drag and drop et AJAX --> |
||||
<script> |
<script> |
||||
$(document).ready(function () { |
$(document).ready(function () { |
||||
$("#form__selected").sortable({ |
$("#form__selected").sortable({ |
||||
revert: false, |
revert: false, |
||||
helper: "clone" |
helper: "clone" |
||||
}); |
}); |
||||
}); |
}); |
||||
</script> |
</script> |
||||
</body> |
</body> |
||||
</html> |
</html> |
Loading…
Reference in new issue