rename last_emailing to rappels_rdv

This commit is contained in:
2021-01-22 16:44:32 +01:00
parent b3fb088d9f
commit af2315bad2
8 changed files with 132 additions and 15 deletions

View File

@@ -85,7 +85,7 @@
},
},
],
"createdRow": function( row, data, dataIndex ){
createdRow: function( row, data, dataIndex ){
if ( data[6] == "Humidité" ) {
$('td', row).eq(6).css('background-color', 'Crimson').css('color', 'white');
}

View File

@@ -17,6 +17,7 @@
<th>Tél. 2</th>
<th>Portable</th>
<th>Ville</th>
<th></th>
<th>Modif le</th>
</tr>
</thead>
@@ -46,6 +47,11 @@
},
},
],
createdRow: function( row, data, dataIndex ){
if ( data[6] == "0" ) {
$('td', row).eq(0).css('background-color', 'OrangeRed').css('color', 'white');
}
},
});
});

View File

@@ -3,7 +3,7 @@
<div class="row">
<h2>Derniers traitements différés</h2>
<p><a href="/last_emailing">[ Consulter les derniers envois de mail ]</a></p>
<p><a href="/rappels_rdv">[ Consulter les derniers envois de mail ]</a></p>
<table class="table table-condensed">
<tr tal:repeat="item log_nuit">
<td>${item.date.strftime('%d %b, %H:%M')}</td>

View File

@@ -1,8 +1,16 @@
<metal:block use-macro="main_template">
<div metal:fill-slot="content">
<div metal:fill-slot="content">
<br />
<form id="login-form" role="form" action="${url}" method="post" >
<div class="form-group">
<button class="btn btn-success" type="submit" name="form.generate">
<span class="glyphicon glyphicon-flash"></span>&nbsp;Générer les rappels</button>
<button class="btn btn-primary" type="submit" name="form.emailing">
<span class="glyphicon glyphicon-send"></span>&nbsp;Envoyer les rappels</button>
</div>
</form>
<table id="last_emailing" class="table table-condensed table-striped table-bordered">
<table id="rappels_rdv" class="table table-condensed table-striped table-bordered">
<thead>
<tr>
<th>Date RDV</th>
@@ -24,7 +32,7 @@
$(document).ready(function() {
$.fn.dataTable.moment('DD-MM-YYYY HH:mm');
$('#last_emailing').DataTable({
$('#rappels_rdv').DataTable({
data: dataSet,
pageLength: 100,
bLengthChange: false,