initial upload
This commit is contained in:
72
aem_gestion/templates/compta/recap_print.pt
Normal file
72
aem_gestion/templates/compta/recap_print.pt
Normal file
@@ -0,0 +1,72 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
<h3>${periode}</h3>
|
||||
<br />
|
||||
<div class="col-xs-6">
|
||||
<p>
|
||||
Société : <b>CERRA</b> <br />
|
||||
Edité le : ${TODAY.strftime('%d-%m-%Y')}
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<button type="button" class="btn btn-primary" onclick="window.print()">Imprimer</button>
|
||||
</div>
|
||||
<table id="recap_moniteurs-table" class="table table-condensed table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Moniteur</th>
|
||||
<th>Statut</th>
|
||||
<th>Réf.</th>
|
||||
<th>Intitulé</th>
|
||||
<th class="text-right">Heures</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<script type="text/javascript">
|
||||
var dataSet = ${dt_data};
|
||||
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment('DD-MM-YYYY HH:mm');
|
||||
$('#recap_moniteurs-table').DataTable({
|
||||
data: dataSet,
|
||||
paging: false,
|
||||
bLengthChange: false,
|
||||
searching: false,
|
||||
ordering: false,
|
||||
language: {
|
||||
url: 'https://cdn.datatables.net/plug-ins/1.10.16/i18n/French.json'
|
||||
},
|
||||
order: [[0, 'asc']],
|
||||
columnDefs: [
|
||||
{
|
||||
targets: 4,
|
||||
className: 'text-right',
|
||||
},
|
||||
],
|
||||
createdRow: function( row, data, dataIndex ) {
|
||||
if ( data[1] == "(15)" ) {
|
||||
$('td', row).eq(1).css('background-color', 'Yellow');
|
||||
$('td', row).eq(4).css('background-color', 'Yellow');
|
||||
}
|
||||
},
|
||||
fnRowCallback: function(nRow, aData, iDisplayIndex) {
|
||||
if (aData[1] == "") {
|
||||
$('td', nRow).each(function(){
|
||||
$(this).css('font-weight','bold');
|
||||
});
|
||||
}
|
||||
return nRow;
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</div> <!-- contents -->
|
||||
</metal:block>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user