ajout de emails_sent.pt : liste es emails envoyés

This commit is contained in:
2019-08-07 11:04:37 +02:00
parent 03d49ad4f8
commit e503586e61
14 changed files with 130 additions and 956 deletions

View File

@@ -32,7 +32,12 @@
<div class="col-sm-3" tal:condition="logged_in=='CAO'">
<a href="${request.application_url}/demandes">
<span class="glyphicon glyphicon-download-alt logo-warning"></span>
<h4>GENERER DOSSIERS</h4></a>
<h4>EMAILS <span class="glyphicon glyphicon-arrow-right"></span> DOSSIERS</h4></a>
</div>
<div class="col-sm-3">
<a href="${request.application_url}/emails_sent">
<span class="glyphicon glyphicon-send logo-small"></span>
<h4>EMAILS ENVOYES</h4></a>
</div>
</div>
<br />

View File

@@ -1,7 +1,7 @@
<metal:block use-macro="main_template">
<div metal:fill-slot="content">
<table id="users_list" class="table table-striped table-bordered">
<table id="demandes" class="table table-striped table-bordered">
<thead>
<tr>
<th>No</th>
@@ -35,7 +35,7 @@
$(document).ready(function() {
$.fn.dataTable.moment('DD-MM-YYYY MH:mm:ss');
$('#users_list').DataTable({
$('#demandes').DataTable({
data: dataSet,
pageLength: 50,
bLengthChange: false,

View File

@@ -22,7 +22,7 @@
data-fv-stringlength-message="65 caractères maximum" />
</div>
<div class="col-sm-offset-3 col-sm-9" tal:condition="suivi.attached_text">
<pre>${suivi.attached_text}</pre>
<p><pre>${suivi.attached_text}</pre></p>
</div>
</div>
<div class="form-group">

View File

@@ -0,0 +1,16 @@
<metal:block use-macro="main_template">
<div metal:fill-slot="content">
<p>
<a href="${request.application_url}/emails_sent" class="btn btn-default" role="button">
<span class="glyphicon glyphicon-chevron-left"></span> Retour</a>
</p>
<div class="form-group">
<p><pre>${item.attached_text}</pre></p>
</div>
</div><!-- content -->
</metal:block>

View File

@@ -0,0 +1,53 @@
<metal:block use-macro="main_template">
<div metal:fill-slot="content">
<p>
<a href="${request.application_url}/" class="btn btn-default" role="button">
<span class="glyphicon glyphicon-chevron-left"></span> Retour</a>
</p>
<table id="emails_sent" class="table table-striped table-bordered">
<thead>
<tr>
<th>Date</th>
<th>Dossier</th>
<th>Client</th>
<th>Objet</th>
<th>No</th>
<th>Par</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');
$('#emails_sent').DataTable({
data: dataSet,
pageLength: 50,
bLengthChange: false,
language: {
url: 'https://cdn.datatables.net/plug-ins/1.10.16/i18n/French.json'
},
columnDefs: [
{ "targets": 3,
"render": function (data, type, row, meta) {
// ajouter un link vers le login
return '<a href="/emails_msg/' + row[4] + '">' + data + '</a>';
},
},
]
});
});
</script>
</div><!-- content -->
</metal:block>