mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
19 lines
781 B
HTML
19 lines
781 B
HTML
<?php $action = $record->is_frozen ? 'unfreeze' : 'freeze'; ?>
|
|
<label class="custom-switch" data-check="oc-freeze-<?= $record->id ?>" style="margin-bottom:0">
|
|
<input data-request="onBulkAction"
|
|
data-request-data="action: '<?= $action ?>', checked: [<?= $record->id ?>]"
|
|
data-request-update="list_manage_toolbar: '#plugin-toolbar'"
|
|
type="checkbox"
|
|
name="freeze_<?= $record->id ?>"
|
|
value="<?= !$record->is_frozen ?>"
|
|
<?php if (!$record->is_frozen) : ?>checked=checked<?php endif; ?>
|
|
data-stripe-load-indicator
|
|
>
|
|
|
|
<span>
|
|
<span><?= e(trans('system::lang.plugins.check_yes')) ?></span>
|
|
<span><?= e(trans('system::lang.plugins.check_no')) ?></span>
|
|
</span>
|
|
<a class="slide-button"></a>
|
|
</label>
|