initial upload
This commit is contained in:
99
aem_gestion/templates/eleves/eleve_pap.pt
Normal file
99
aem_gestion/templates/eleves/eleve_pap.pt
Normal file
@@ -0,0 +1,99 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<form id="change-eleve-details-form" class="form-horizontal" action="${url}" method="post" tal:condition="eleve"
|
||||
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="col-xs-4 control-label" for="permis_delivre_le">Délivré (imprimé) le</label>
|
||||
<div class="col-xs-8">
|
||||
<input class="form-control" type="text" id="permis_delivre_le" name="permis_delivre_le" value="${permis_delivre_le}"
|
||||
placeholder="JJ/MM/AAAA"
|
||||
data-fv-notempty="true"
|
||||
data-fv-notempty-message="La date de délivrance du permis est obligatoire"
|
||||
data-fv-date="true"
|
||||
data-fv-date-format="DD/MM/YYYY"
|
||||
data-fv-date-message="La date de délivrance du permis n'est pas valide (JJ/MM/AAAA)" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-xs-4 control-label" for="permis_delivre_par">Préfecture de délivrance</label>
|
||||
<div class="col-xs-8">
|
||||
<select class="form-control" id="permis_delivre_par" name="permis_delivre_par">
|
||||
<tal:block tal:repeat="item dept">
|
||||
<option value="${item.libelle}" tal:attributes="selected item.libelle == eleve.permis_delivre_par and 'selected' or None">
|
||||
${item.code} - ${item.libelle}</option>
|
||||
</tal:block>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-4" for="cas_PAP">Cas de stage obligatoire</label>
|
||||
<div class="col-xs-6">
|
||||
<select class="form-control" id="cas_PAP" name="cas_PAP">
|
||||
<div tal:repeat="item cas_pap">
|
||||
<option value="${item}" tal:attributes="selected eleve.cas_PAP == item and 'selected' or None">${item}</option>
|
||||
</div>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-4" for="infraction_lieu">Lieu de l'infraction</label>
|
||||
<div class="col-xs-6">
|
||||
<input class="form-control" type="text" id="infraction_lieu" name="infraction_lieu" value="${eleve.infraction_lieu}"
|
||||
data-fv-stringlength="true"
|
||||
data-fv-stringlength-max="30"
|
||||
data-fv-stringlength-message="30 caractères maximum" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-4" for="infraction_le">Date de l'infraction</label>
|
||||
<div class="col-xs-3">
|
||||
<input class="form-control" type="text" id="infraction_le" name="infraction_le" value="${eleve.infraction_le}"
|
||||
placeholder="JJ/MM/AAAA"
|
||||
data-fv-date="true"
|
||||
data-fv-date-format="DD/MM/YYYY"
|
||||
data-fv-date-message="La date de l'infraction n'est pas valide (JJ/MM/AAAA)" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-4" for="infraction_a">Heure de l'infraction</label>
|
||||
<div class="col-xs-3">
|
||||
<input class="form-control" type="text" id="infraction_a" name="infraction_a" value="${infraction_a}"
|
||||
placeholder="00:00"
|
||||
data-fv-regexp="true"
|
||||
data-fv-regexp-regexp="^(2[0-3]|[01]?[0-9]):([0-5]?[0-9])$"
|
||||
data-fv-regexp-message="L'heure de l'infraction doit au format 00:00" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-xs-offset-4 col-xs-5">
|
||||
<a class="btn btn-default" href="${request.application_url}/fiche_eleve/${eleve.CD_CLI}">
|
||||
<span class="glyphicon glyphicon-chevron-left"></span> Annuler</a>
|
||||
<button class="btn btn-primary" type="submit" name="form.submitted">
|
||||
<span class="glyphicon glyphicon-ok"></span> Enregistrer</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div> <!-- row -->
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#change-eleve-details-form').formValidation();
|
||||
$('form input').on('keypress', function(e) {
|
||||
return e.which !== 13;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</div>
|
||||
</metal:block>
|
||||
Reference in New Issue
Block a user