diff --git a/src/Resources/ConsentOptionResource.php b/src/Resources/ConsentOptionResource.php index 1cf9a4a..4fe4503 100644 --- a/src/Resources/ConsentOptionResource.php +++ b/src/Resources/ConsentOptionResource.php @@ -100,6 +100,7 @@ public static function form(Form $form): Form Repeater::make('fields')->label('') ->schema([ Forms\Components\TextInput::make('name') + ->hint('(Ex: some_name)') ->regex('/^[a-z_]+$/') ->required(), Forms\Components\Select::make('type') @@ -118,6 +119,7 @@ public static function form(Form $form): Form Forms\Components\TextInput::make('label'), Forms\Components\TagsInput::make('options')->separator(',')->splitKeys(['Tab']), Forms\Components\Select::make('column_span') + ->label('Field\'s Column span') ->options([ 1 => '1 Column', 2 => '2 Columns', @@ -132,7 +134,9 @@ public static function form(Form $form): Form ->options([ 'require_if_another_field' => 'Required If another field matches', ]), - Forms\Components\TextInput::make('another_field')->label('Another field name'), + Forms\Components\TextInput::make('another_field')->regex('/^[a-z_]+$/') + ->label('Another field name') + ->hint('("Name" of parent)'), Forms\Components\TextInput::make('value_equals')->label('Value equals'), ]) ->visible(fn(Get $get) => (bool)$get('custom_rules'))