60 lines
2.2 KiB
XML
60 lines
2.2 KiB
XML
<metal:block use-macro="main_template">
|
|
<div metal:fill-slot="content">
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h4 class="panel-title">
|
|
<span class="glyphicon glyphicon-plus"></span> ${justif.LIBELLE}
|
|
</h4>
|
|
</div>
|
|
<div class="panel-body">
|
|
<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">
|
|
|
|
<p class="text-danger">${justif.conditions}</p>
|
|
<div class="form-group" tal:condition="justif.code == 'PHOTO_ID'">
|
|
<label class="control-label" for="libelle_fic">Veuillez saisir un code e-photo :</label>
|
|
<div>
|
|
<input class="form-control" type="text" required id="libelle_fic" name="libelle_fic" value="${justif.libelle_fic}"
|
|
data-fv-notempty="true"
|
|
data-fv-notempty-message="Le code est obligatoire" />
|
|
</div>
|
|
<br />
|
|
<p><b>ou bien </b></p>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="uploadfile">Veuillez séléctionner un fichier :</label>
|
|
<span class="btn btn-default btn-file">
|
|
<input class="file" id="uploadfile" name="uploadfile" type="file" multiple />
|
|
</span>
|
|
</div>
|
|
<div class="form-group">
|
|
<a class="btn btn-default" href="${url_retour}">
|
|
<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> Télécharger</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="panel-footer">
|
|
<ul>
|
|
<li>Seuls les documents au format <b>PNG, JPG ou JPEG</b> seront acceptés.</li>
|
|
<li>La taille de chaque document ne doit <b>pas dépasser 4 Mo</b>.</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
$('#uploadButton').on('click', function(){
|
|
$('i.gly-spin').removeClass('gly-spin');
|
|
$('i').addClass('gly-spin');
|
|
});
|
|
</script>
|
|
|
|
</div>
|
|
</metal:block>
|