initial upload

This commit is contained in:
2023-06-22 10:34:18 +02:00
parent 6df897b44d
commit 5c621cf669
1030 changed files with 355394 additions and 49 deletions

View File

@@ -0,0 +1,78 @@
<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="control-label col-xs-4" for="niveau">Niveau</label>
<div class="col-xs-4">
<select class="form-control" id="niveau" name="niveau">
<div tal:repeat="item niveaux">
<option value="${item}" tal:attributes="selected eleve.niveau==item and 'selected' or None">${item}</option>
</div>
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-4" for="filiere">Filière</label>
<div class="col-xs-4">
<select class="form-control" id="filiere" name="filiere">
<div tal:repeat="item filieres">
<option value="${item.code}" tal:attributes="selected eleve.filiere==item.code and 'selected' or None">${item.code}</option>
</div>
</select>
</div>
</div>
<div class="form-group">
<label class="col-xs-4 control-label">Estimées à l'évaluation</label>
<div class="col-xs-4">
<div class="input-group">
<input class="form-control" type="text" name="heures_estimees"
value="${eleve.heures_estimees}"
data-fv-integer="true"
data-fv-integer-message="Ce nombre n'est pas vailde" />
<span class="input-group-addon">heure(s)</span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-xs-4 control-label">Revues après le stage</label>
<div class="col-xs-4">
<div class="input-group">
<input class="form-control" type="text" name="heures_revues"
value="${eleve.heures_revues}"
data-fv-integer="true"
data-fv-integer-message="Ce nombre n'est pas vailde" />
<span class="input-group-addon">heure(s)</span>
</div>
</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>&nbsp;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>