49 lines
1.6 KiB
XML
49 lines
1.6 KiB
XML
<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" for="uploadfile">Veuillez séléctionner un fichier :</label>
|
|
<input id="uploadfile" name="filename" type="file" 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>
|
|
<button id="uploadButton" class="btn btn-success" type="submit" name="form.previewed">
|
|
<i class="glyphicon glyphicon-refresh"></i> Visualiser</button>
|
|
</div>
|
|
</form>
|
|
<ul>
|
|
<li>Seuls les documents au format <b>PDF</b> seront acceptés.</li>
|
|
<li>La taille de chaque document ne doit <b>pas dépasser 4 Mo</b>.</li>
|
|
</ul>
|
|
|
|
<br />
|
|
<div tal:condition="html_text">
|
|
<h3>Contenu du PDF</h3>
|
|
<hr>
|
|
<div tal:replace="structure html_text">Page text goes here.</div>
|
|
<hr>
|
|
</div>
|
|
<br />
|
|
<br />
|
|
|
|
<script type="text/javascript">
|
|
$('#uploadButton').on('click', function(){
|
|
$('i.gly-spin').removeClass('gly-spin');
|
|
$('i').addClass('gly-spin');
|
|
});
|
|
</script>
|
|
</div>
|
|
</metal:block>
|