This commit is contained in:
Pek5892 2022-11-22 17:55:13 +01:00
commit e16c13a515
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>