initial upload
This commit is contained in:
69
aem_gestion/templates/parametres/moniteurs.pt
Normal file
69
aem_gestion/templates/parametres/moniteurs.pt
Normal file
@@ -0,0 +1,69 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
<style>
|
||||
.redClass{
|
||||
background-color : #E6E6E6;
|
||||
color : #9C9C9C !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>
|
||||
<a href="${request.application_url}/parametres" class="btn btn-default" role="button">
|
||||
<span class="glyphicon glyphicon-chevron-left"></span> Retour</a>
|
||||
<a href="${request.application_url}/moniteurs_agence" class="btn btn-info" role="button">
|
||||
<span class="glyphicon glyphicon-list"></span> Liste moniteurs par agence</a>
|
||||
<a href="${request.application_url}/moniteur_edit/0" class="btn btn-success" role="button" tal:condition="code == 9">
|
||||
<span class="glyphicon glyphicon-plus"></span> Nouveau</a>
|
||||
</p>
|
||||
|
||||
<table id="moniteurs_list" class="table table-condensed table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>CD_MON</th>
|
||||
<th>Prénom Nom</th>
|
||||
<th>Planning</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<script type="text/javascript">
|
||||
var dataSet = ${dt_data};
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#moniteurs_list').DataTable({
|
||||
data: dataSet,
|
||||
pageLength: 10,
|
||||
bLengthChange: false,
|
||||
language: {
|
||||
url: 'https://cdn.datatables.net/plug-ins/1.10.16/i18n/French.json'
|
||||
},
|
||||
createdRow: function( row, data, dataIndex){
|
||||
console.log(data);
|
||||
if( parseInt(data[3]) === -1 ){
|
||||
$(row).addClass('redClass');
|
||||
}
|
||||
},
|
||||
columnDefs: [
|
||||
{ targets: 1,
|
||||
render: function (data, type, full, meta) {
|
||||
if(parseInt(full[3]) === -1){
|
||||
return data;
|
||||
}
|
||||
else{
|
||||
return '<a href="/moniteur_edit/' + full[0] + '">' + data + '</a>';
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
]
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</div><!-- content -->
|
||||
</metal:block>
|
||||
Reference in New Issue
Block a user