added tarifs_import with xlrd
This commit is contained in:
45
mondumas/templates/parametres/tarifs_import.pt
Normal file
45
mondumas/templates/parametres/tarifs_import.pt
Normal file
@@ -0,0 +1,45 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
<div class="alert alert-danger" tal:condition="message" tal:content="message" />
|
||||
<br />
|
||||
<form id="upload_doc-form" action="${url}" method="post" accept-charset="utf-8" enctype="multipart/form-data"
|
||||
data-fv-framework="bootstrap"
|
||||
data-fv-icon-valid="glyphicon glyphicon-ok"
|
||||
data-fv-icon-invalid="glyphicon glyphicon-remove"
|
||||
data-fv-icon-validating="glyphicon glyphicon-refresh">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label">Groupe :</label>
|
||||
<select class="form-control" id="groupe" name="groupe">
|
||||
<tal:block tal:repeat="item groupes">
|
||||
<option value="${item}" tal:attributes="selected groupe==item and 'selected' or None"> ${item}</option>
|
||||
</tal:block>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="uploadfile">Veuillez séléctionner un fichier :</label>
|
||||
<input id="uploadfile" name="filename" type="file" accept=".xls,.xlsx" value="" required />
|
||||
</div>
|
||||
<br />
|
||||
<div class="form-group">
|
||||
<a class="btn btn-default" href="/">
|
||||
<span class="glyphicon glyphicon-arrow-left"></span> Retour</a>
|
||||
<button id="uploadButton" class="btn btn-primary" type="submit" name="form.submitted">
|
||||
<i class="glyphicon glyphicon-refresh"></i> Importer</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<script type="text/javascript">
|
||||
$('#uploadButton').on('click', function(){
|
||||
$('i.gly-spin').removeClass('gly-spin');
|
||||
$('i').addClass('gly-spin');
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</metal:block>
|
||||
Reference in New Issue
Block a user