feat: limit room remarks field to 200 characters to align with buspro
This commit is contained in:
@@ -82,6 +82,10 @@ class ParticipantDto
|
|||||||
#[Assert\NotNull(message: 'Bitte ein Zimmer auswählen', groups: ['strict_required'])]
|
#[Assert\NotNull(message: 'Bitte ein Zimmer auswählen', groups: ['strict_required'])]
|
||||||
public ?int $assignedRoomId = null;
|
public ?int $assignedRoomId = null;
|
||||||
|
|
||||||
|
#[Assert\Length(
|
||||||
|
max: 200,
|
||||||
|
maxMessage: 'Der Zimmerwunsch darf maximal {{ limit }} Zeichen lang sein'
|
||||||
|
)]
|
||||||
public ?string $remarksRoom = null;
|
public ?string $remarksRoom = null;
|
||||||
|
|
||||||
public array $courses = [];
|
public array $courses = [];
|
||||||
|
|||||||
@@ -487,6 +487,7 @@ class ParticipantFieldOptionsProvider extends AbstractFieldOptionsProvider
|
|||||||
'sanitize_html' => true,
|
'sanitize_html' => true,
|
||||||
'attr' => [
|
'attr' => [
|
||||||
'rows' => 2,
|
'rows' => 2,
|
||||||
|
'maxlength' => 200,
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user