mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-21 05:50:55 +01:00
refactor: integrazione PR 1591
This commit is contained in:
parent
f3bbb62554
commit
3f6f1549d9
@ -455,6 +455,13 @@ switch (post('op')) {
|
||||
|
||||
flash()->info(tr('Barcode generati correttamente!'));
|
||||
|
||||
break;
|
||||
|
||||
case 'change-attivo':
|
||||
Articolo::whereIn('id', $id_records)->update(['attivo' => post('attivo')]);
|
||||
|
||||
flash()->info(tr('Articoli '.(post('attivo') ? 'attivati' : 'disattivati').' correttamente!'));
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
@ -657,4 +664,16 @@ $operations['generate-barcode-bulk'] = [
|
||||
],
|
||||
];
|
||||
|
||||
$operations['change-attivo'] = [
|
||||
'text' => '<span><i class="fa fa-refresh"></i> '.tr('Attiva/disattiva articoli').'</span>',
|
||||
'data' => [
|
||||
'title' => tr('Attiva/disattiva articoli selezionati'),
|
||||
'msg' => '
|
||||
{[ "type": "checkbox", "label": "'.tr('Stato').'", "name": "attivo", "value": "0", "placeholder": "'.tr('Attivo').'" ]}<br>',
|
||||
'button' => tr('Procedi'),
|
||||
'class' => 'btn btn-lg btn-success',
|
||||
'blank' => false,
|
||||
],
|
||||
];
|
||||
|
||||
return $operations;
|
||||
|
Loading…
x
Reference in New Issue
Block a user