mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 10:54:46 +02:00
Switch this back to datalist
This commit is contained in:
parent
716d298b75
commit
d30accbc71
@ -171,11 +171,12 @@ class ServerResource extends Resource
|
|||||||
->whereNull('server_id'),
|
->whereNull('server_id'),
|
||||||
)
|
)
|
||||||
->createOptionForm(fn (Forms\Get $get) => [
|
->createOptionForm(fn (Forms\Get $get) => [
|
||||||
Forms\Components\Select::make('allocation_ip')
|
Forms\Components\TextInput::make('allocation_ip')
|
||||||
->options(Node::find($get('node_id'))?->ipAddresses() ?? [])
|
->datalist(Node::find($get('node_id'))?->ipAddresses() ?? [])
|
||||||
->label('IP Address')
|
->label('IP Address')
|
||||||
|
->ipv4()
|
||||||
->helperText("Usually your machine's public IP unless you are port forwarding.")
|
->helperText("Usually your machine's public IP unless you are port forwarding.")
|
||||||
->selectablePlaceholder(false)
|
// ->selectablePlaceholder(false)
|
||||||
->required(),
|
->required(),
|
||||||
Forms\Components\TextInput::make('allocation_alias')
|
Forms\Components\TextInput::make('allocation_alias')
|
||||||
->label('Alias')
|
->label('Alias')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user