initial upload
This commit is contained in:
64
aem_gestion/templates/examens/examen_list.pt
Normal file
64
aem_gestion/templates/examens/examen_list.pt
Normal file
@@ -0,0 +1,64 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
<div class="col-md-2">Permis : <b>${permis}</b></div>
|
||||
<div class="col-md-2">Total unités : <b>${total_unites}</b></div>
|
||||
<div class="col-md-3">Accompagnateur : <b>${accompgntr}</b></div>
|
||||
<div class="col-md-5">Lieu : <b>${lieu_exa}</b></div>
|
||||
|
||||
<table id="examens_list" class="table table-condensed table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Agence</th>
|
||||
<th>Prénom Nom</th>
|
||||
<th>Nom JF</th>
|
||||
<th>Filière</th>
|
||||
<th>Moniteur</th>
|
||||
<th>Téléphone</th>
|
||||
<th>ETG OK</th>
|
||||
<th>Indice</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<script type="text/javascript">
|
||||
var dataSet = ${dt_data};
|
||||
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment('DD-MM-YYYY');
|
||||
$('#examens_list').DataTable({
|
||||
data: dataSet,
|
||||
pageLength: 100,
|
||||
bLengthChange: false,
|
||||
language: {
|
||||
url: 'https://cdn.datatables.net/plug-ins/1.10.16/i18n/French.json'
|
||||
},
|
||||
columnDefs: [
|
||||
{ "targets": 1,
|
||||
"render": function (data, type, full, meta) {
|
||||
// ajouter un link vers le formulaire
|
||||
return '<a href="/fiche_eleve/' + data.substr(0, 6) + '">' + data + '</a>';
|
||||
},
|
||||
},
|
||||
],
|
||||
createdRow: function( row, data, dataIndex ) {
|
||||
if ( data[1].slice(0,1) == "0" ) {
|
||||
if ( data[1].slice(0,6) == "000080") {
|
||||
$('td', row).eq(0).css('background-color', 'Gold');
|
||||
} else {
|
||||
$('td', row).eq(0).css('background-color', 'OrangeRed');
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</div><!-- content -->
|
||||
</metal:block>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user