mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 15:34:44 +02:00
Adjust the mounts
This commit is contained in:
parent
aac522232f
commit
978a4ac0a2
@ -23,27 +23,57 @@ class MountResource extends Resource
|
|||||||
{
|
{
|
||||||
return $form
|
return $form
|
||||||
->schema([
|
->schema([
|
||||||
Forms\Components\TextInput::make('uuid')
|
|
||||||
->label('UUID')
|
|
||||||
->required()
|
|
||||||
->maxLength(36),
|
|
||||||
Forms\Components\TextInput::make('name')
|
Forms\Components\TextInput::make('name')
|
||||||
->required()
|
->required()
|
||||||
|
->helperText('Unique name used to separate this mount from another.')
|
||||||
->maxLength(191),
|
->maxLength(191),
|
||||||
Forms\Components\Textarea::make('description')
|
Forms\Components\ToggleButtons::make('read_only')
|
||||||
->columnSpanFull(),
|
->label('Read only?')
|
||||||
|
->helperText('Is the mount read only inside the container?')
|
||||||
|
->options([
|
||||||
|
false => 'Writeable',
|
||||||
|
true => 'Read only',
|
||||||
|
])
|
||||||
|
->icons([
|
||||||
|
false => 'tabler-writing',
|
||||||
|
true => 'tabler-writing-off',
|
||||||
|
])
|
||||||
|
->colors([
|
||||||
|
false => 'warning',
|
||||||
|
true => 'success',
|
||||||
|
])
|
||||||
|
->inline()
|
||||||
|
->default(false)
|
||||||
|
->required(),
|
||||||
Forms\Components\TextInput::make('source')
|
Forms\Components\TextInput::make('source')
|
||||||
->required()
|
->required()
|
||||||
|
->helperText('File path on the host system to mount to a container.')
|
||||||
->maxLength(191),
|
->maxLength(191),
|
||||||
Forms\Components\TextInput::make('target')
|
Forms\Components\TextInput::make('target')
|
||||||
->required()
|
->required()
|
||||||
|
->helperText('Where the mount will be accessible inside a container.')
|
||||||
->maxLength(191),
|
->maxLength(191),
|
||||||
Forms\Components\TextInput::make('read_only')
|
Forms\Components\ToggleButtons::make('user_mountable')
|
||||||
->required()
|
->hidden()
|
||||||
->numeric(),
|
->label('User mountable?')
|
||||||
Forms\Components\TextInput::make('user_mountable')
|
->options([
|
||||||
->required()
|
false => 'No',
|
||||||
->numeric(),
|
true => 'Yes',
|
||||||
|
])
|
||||||
|
->icons([
|
||||||
|
false => 'tabler-user-cancel',
|
||||||
|
true => 'tabler-user-bolt',
|
||||||
|
])
|
||||||
|
->colors([
|
||||||
|
false => 'success',
|
||||||
|
true => 'warning',
|
||||||
|
])
|
||||||
|
->default(false)
|
||||||
|
->inline()
|
||||||
|
->required(),
|
||||||
|
Forms\Components\Textarea::make('description')
|
||||||
|
->helperText('A longer description for this mount.')
|
||||||
|
->columnSpanFull(),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user