Skip to content

Commit 3f6f154

Browse files
committed
refactor: integrazione PR 1591
1 parent f3bbb62 commit 3f6f154

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

modules/articoli/bulk.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,13 @@
455455

456456
flash()->info(tr('Barcode generati correttamente!'));
457457

458+
break;
459+
460+
case 'change-attivo':
461+
Articolo::whereIn('id', $id_records)->update(['attivo' => post('attivo')]);
462+
463+
flash()->info(tr('Articoli '.(post('attivo') ? 'attivati' : 'disattivati').' correttamente!'));
464+
458465
break;
459466
}
460467

@@ -657,4 +664,16 @@
657664
],
658665
];
659666

667+
$operations['change-attivo'] = [
668+
'text' => '<span><i class="fa fa-refresh"></i> '.tr('Attiva/disattiva articoli').'</span>',
669+
'data' => [
670+
'title' => tr('Attiva/disattiva articoli selezionati'),
671+
'msg' => '
672+
{[ "type": "checkbox", "label": "'.tr('Stato').'", "name": "attivo", "value": "0", "placeholder": "'.tr('Attivo').'" ]}<br>',
673+
'button' => tr('Procedi'),
674+
'class' => 'btn btn-lg btn-success',
675+
'blank' => false,
676+
],
677+
];
678+
660679
return $operations;

0 commit comments

Comments
 (0)