Files
2023-06-22 10:34:18 +02:00

65 lines
2.1 KiB
XML

<metal:block use-macro="main_template">
<div metal:fill-slot="content">
<div class="alert alert-danger" tal:condition="message" tal:content="message" />
<div class="row">
<form id="member-search-form" role="form" action="${url}" method="post">
<div class="row">
<div class="col-xs-6">
<div class="input-group">
<input type="text" class="form-control" name="name" value=""
placeholder="Nom, Code ou No mobile" />
<span class="input-group-btn">
<button id="submitButton" class="btn btn-primary" type="submit" name="form.submitted">
<span class="glyphicon glyphicon-search"></span></button>
</span>
</div>
</div>
<div class="col-xs-6">
<input type="checkbox" name="cb_tous" value="cb_tous"
tal:attributes="checked cb_tous == 'oui' and 'checked' or None">
Afficher les fiches cloturées</input>
</div>
</div>
</form>
</div><!-- row -->
<br />
<div class="row">
<div class="justify-content-end" tal:condition="code == 9">
<a href="${request.application_url}/eleve_edit/0" class="btn btn-primary " role="button" style="margin-bottom:15px">
<span class="glyphicon glyphicon-plus"></span>&nbsp;Nouvel élève </a>
</div>
</div>
<div class="row">
<div>
<table class="table table-striped table-bordered">
<tr>
<th>Code</th>
<th>Nom, Prénom</th>
<th class="text-center">Permis</th>
<th>Formule</th>
<th>Inscrit</th>
<th class="text-center">Statut</th>
</tr>
<tr tal:repeat="member eleves">
<td>${member.cd_cli}</td>
<td>
<a href="/fiche_eleve/${member.cd_cli}" tal:condition="goto_url=='fiche_eleve'">${member.civilite} ${member.nompren}</a>
<a href="${goto_url}${member.cd_cli}" tal:condition="goto_url!='fiche_eleve'">${member.civilite} ${member.nompren}</a>
</td>
<td class="text-center">${member.permis_demande}</td>
<td>${member.formule}</td>
<td>${member.cree_le.strftime('%d/%m/%Y')}</td>
<td class="text-center">${member.statut}</td>
</tr>
</table>
</div>
<br />
<br />
</div>
</div>
</metal:block>