1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-25 23:33:02 +01:00

Aggiunta eliminazione massiva destinatari lista newsletter

This commit is contained in:
MatteoPistorello 2022-11-22 17:46:29 +01:00
parent 2610b3e580
commit c08aaf31e9
2 changed files with 13 additions and 0 deletions

View File

@ -104,5 +104,14 @@ switch (filter('op')) {
flash()->info(tr('Destinatario rimosso dalla lista!'));
break;
case 'remove_all_receivers':
$database->delete('em_list_receiver', [
'id_list' => $lista->id,
]);
flash()->info(tr('Tutti i destinatari sono stati rimossi dalla lista newsletter!'));
break;
}

View File

@ -125,6 +125,10 @@ echo '
</tr>
</thead>
</table>
<a class="btn btn-danger ask pull-right" data-backto="record-edit" data-op="remove_all_receivers">
<i class="fa fa-trash"></i> '.tr('Elimina tutti').'
</a>
</div>
</div>