Helper text for creating new allocations

This commit is contained in:
Lance Pioch 2024-04-11 11:41:03 -04:00
parent da1bf320dd
commit f8550334dd

View File

@ -85,12 +85,18 @@ class ServerResource extends Resource
->createOptionForm([ ->createOptionForm([
Forms\Components\TextInput::make('allocation_ip') Forms\Components\TextInput::make('allocation_ip')
->label('IP Address') ->label('IP Address')
->helperText('Usually your machine\'s public IP unless you are port forwarding.')
->required(), ->required(),
Forms\Components\TextInput::make('allocation_alias') Forms\Components\TextInput::make('allocation_alias')
->label('Alias') ->label('Alias')
->helperText('This is just a display only name to help you recognize what this Allocation is used for.')
->required(false), ->required(false),
Forms\Components\TagsInput::make('allocation_ports') Forms\Components\TagsInput::make('allocation_ports')
->placeholder('Examples: 27015, 27017-27019') ->placeholder('Examples: 27015, 27017-27019')
->helperText('
These are the ports that users can connect to this Server through.
They usually consist of the port forwarded ones.
')
->label('Ports') ->label('Ports')
->required(), ->required(),
]) ])