69 lines
2.2 KiB
XML
69 lines
2.2 KiB
XML
<metal:block use-macro="main_template">
|
|
<div metal:fill-slot="content">
|
|
|
|
<h3>${justif.LIBELLE}</h3>
|
|
<p class="text-danger">${justif.conditions}</p>
|
|
|
|
<form id="upload_doc-form" action="${url}" method="post" class="form-horizontal"
|
|
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" tal:condition="justif.code == 'PHOTO_ID'">
|
|
<label class="control-label col-xs-4" for="libelle_fic">Code e-photo</label>
|
|
<div class="col-xs-8">
|
|
<input class="form-control" type="text" id="libelle_fic" name="libelle_fic" value="${justif.libelle_fic}">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-4" for="intitule">Nom du fichier</label>
|
|
<div class="col-xs-8">
|
|
<p>${justif.nom_fic}
|
|
|
|
<button class="btn btn-warning" type="submit" name="form.erased"
|
|
tal:condition="justif.nom_fic and justif.valide == 0">
|
|
<i class="glyphicon glyphicon-erase"></i> Effacer le fichier</button>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-4">Taille du fichier</label>
|
|
<div class="col-xs-8">
|
|
<p class="form-control-static">${justif.taille_fic} Ko</p>
|
|
</div>
|
|
<label class="control-label col-xs-4">Créé par</label>
|
|
<div class="col-xs-8">
|
|
<p class="form-control-static">${justif.cd_uti} </p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-xs-offset-4 col-xs-8">
|
|
<label tal:condition= "justif.valide != 0"><b>Le document est validé</b>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="col-sm-offset-4 col-sm-8">
|
|
<div class="form-group">
|
|
<a class="btn btn-default" href="${url_retour}">
|
|
<span class="glyphicon glyphicon-arrow-left"></span> Retour</a>
|
|
<button class="btn btn-primary" type="submit" name="form.submitted"
|
|
tal:condition="justif.valide == 0 and justif.code == 'PHOTO_ID'">
|
|
<i class="glyphicon glyphicon-pencil"></i> Enregister</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
|
|
<script type="text/javascript">
|
|
$('#uploadButton').on('click', function(){
|
|
$('i.gly-spin').removeClass('gly-spin');
|
|
$('i').addClass('gly-spin');
|
|
});
|
|
</script>
|
|
|
|
</div>
|
|
</metal:block>
|