mirror of
https://github.com/pelican-dev/panel.git
synced 2025-06-01 09:58:59 +02:00
pint
This commit is contained in:
parent
fbf1a5cc59
commit
cd88d23592
@ -135,6 +135,7 @@ class RoleResource extends Resource
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string[]|int[]|Permission[]|\BackedEnum[] $options
|
* @param string[]|int[]|Permission[]|\BackedEnum[] $options
|
||||||
|
*
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
private static function makeSection(string $model, array $options): Section
|
private static function makeSection(string $model, array $options): Section
|
||||||
|
@ -89,21 +89,21 @@ class ScheduleResource extends Resource
|
|||||||
->placeholder('A human readable identifier for this schedule.')
|
->placeholder('A human readable identifier for this schedule.')
|
||||||
->autocomplete(false)
|
->autocomplete(false)
|
||||||
->required(),
|
->required(),
|
||||||
// TODO conditional ->hiddenOn, ->visibleOn appear broken?
|
// TODO conditional ->hiddenOn, ->visibleOn appear broken?
|
||||||
// ToggleButtons::make('Status')
|
// ToggleButtons::make('Status')
|
||||||
// ->hiddenOn(Operation::Create)
|
// ->hiddenOn(Operation::Create)
|
||||||
// ->formatStateUsing(fn (Schedule $schedule) => !$schedule->is_active ? 'inactive' : ($schedule->is_processing ? 'processing' : 'active'))
|
// ->formatStateUsing(fn (Schedule $schedule) => !$schedule->is_active ? 'inactive' : ($schedule->is_processing ? 'processing' : 'active'))
|
||||||
// ->options(fn (Schedule $schedule) => !$schedule->is_active ? ['inactive' => 'Inactive'] : ($schedule->is_processing ? ['processing' => 'Processing'] : ['active' => 'Active']))
|
// ->options(fn (Schedule $schedule) => !$schedule->is_active ? ['inactive' => 'Inactive'] : ($schedule->is_processing ? ['processing' => 'Processing'] : ['active' => 'Active']))
|
||||||
// ->colors([
|
// ->colors([
|
||||||
// 'inactive' => 'danger',
|
// 'inactive' => 'danger',
|
||||||
// 'processing' => 'warning',
|
// 'processing' => 'warning',
|
||||||
// 'active' => 'success',
|
// 'active' => 'success',
|
||||||
// ])
|
// ])
|
||||||
// ->columnSpan([
|
// ->columnSpan([
|
||||||
// 'default' => 4,
|
// 'default' => 4,
|
||||||
// 'md' => 1,
|
// 'md' => 1,
|
||||||
// 'lg' => 1,
|
// 'lg' => 1,
|
||||||
// ]),
|
// ]),
|
||||||
Toggle::make('only_when_online')
|
Toggle::make('only_when_online')
|
||||||
->label('Only when Server is Online?')
|
->label('Only when Server is Online?')
|
||||||
->hintIconTooltip('Only execute this schedule when the server is in a running state.')
|
->hintIconTooltip('Only execute this schedule when the server is in a running state.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user