diff --git a/app/Filament/Admin/Resources/InstitutionResource/Pages/EditInstitutionCenters.php b/app/Filament/Admin/Resources/InstitutionResource/Pages/EditInstitutionCenters.php index 919c143..6202502 100644 --- a/app/Filament/Admin/Resources/InstitutionResource/Pages/EditInstitutionCenters.php +++ b/app/Filament/Admin/Resources/InstitutionResource/Pages/EditInstitutionCenters.php @@ -55,15 +55,18 @@ public static function getSchema(): array ->schema([ TextInput::make('name') ->label(__('institution.labels.center_name')) + ->placeholder(__('organization.placeholder.center_name')) ->maxLength(200) ->required(), TextInput::make('short_name') ->label(__('organization.field.short_name')) + ->placeholder(__('organization.placeholder.center_short_name')) ->maxLength(50), TextInput::make('main_activity') ->label(__('organization.field.main_activity')) + ->placeholder(__('organization.placeholder.main_activity')) ->columnSpanFull() ->maxLength(200) ->required(), diff --git a/app/Filament/Admin/Resources/InstitutionResource/Pages/EditInstitutionDetails.php b/app/Filament/Admin/Resources/InstitutionResource/Pages/EditInstitutionDetails.php index 2fb30b8..491b2d7 100644 --- a/app/Filament/Admin/Resources/InstitutionResource/Pages/EditInstitutionDetails.php +++ b/app/Filament/Admin/Resources/InstitutionResource/Pages/EditInstitutionDetails.php @@ -53,30 +53,37 @@ public static function getSchema(): array ->schema([ TextInput::make('name') ->label(__('organization.field.name')) + ->placeholder(__('organization.placeholders.name')) ->maxLength(200) ->required(), TextInput::make('short_name') ->label(__('organization.field.short_name')) + ->placeholder(__('organization.placeholders.short_name')) ->maxLength(50), Select::make('type') ->label(__('organization.field.type')) + ->placeholder(__('organization.placeholders.type')) ->options(OrganizationType::options()) ->enum(OrganizationType::class) ->required(), TextInput::make('cif') ->label(__('organization.field.cif')) + ->placeholder(__('organization.placeholders.cif')) ->rule(new ValidCIF) ->required(), TextInput::make('main_activity') ->label(__('organization.field.main_activity')) + ->placeholder(__('organization.placeholders.main_activity')) ->maxLength(200) ->required(), + Select::make('area') ->label(__('organization.field.area')) + ->placeholder(__('organization.placeholders.area')) ->options(AreaType::options()) ->required(), @@ -86,30 +93,52 @@ public static function getSchema(): array TextInput::make('address') ->label(__('organization.field.address')) + ->placeholder(__('organization.placeholders.address')) ->columnSpanFull() ->maxLength(200) ->required(), - TextInput::make('representative_name') ->label(__('organization.field.representative_name')) + ->placeholder(__('organization.placeholders.representative_name')) ->maxLength(50) ->required(), TextInput::make('representative_email') ->label(__('organization.field.representative_email')) + ->placeholder(__('organization.placeholders.representative_email')) ->maxLength(50) ->email(), TextInput::make('phone') ->label(__('organization.field.phone')) + ->placeholder(__('organization.placeholders.phone')) ->maxLength(13) ->tel() ->required(), + TextInput::make('contact_person') + ->label(__('organization.field.contact_person')) + ->placeholder(__('organization.placeholders.contact_person')) + ->maxLength(50) + ->required(), + + TextInput::make('contact_person_email') + ->label(__('organization.field.contact_person_email')) + ->placeholder(__('organization.placeholders.contact_person_email')) + ->maxLength(50) + ->email(), + + TextInput::make('contact_person_phone') + ->label(__('organization.field.contact_person_phone')) + ->placeholder(__('organization.placeholders.contact_person_phone')) + ->maxLength(13) + ->tel() + ->required(), TextInput::make('website') ->label(__('organization.field.website')) + ->placeholder(__('organization.placeholders.website')) ->maxLength(200) ->url(), diff --git a/app/Filament/Admin/Resources/UserInstitutionResource/Pages/EditUserInstitution.php b/app/Filament/Admin/Resources/UserInstitutionResource/Pages/EditUserInstitution.php index bcc91c6..a43b894 100644 --- a/app/Filament/Admin/Resources/UserInstitutionResource/Pages/EditUserInstitution.php +++ b/app/Filament/Admin/Resources/UserInstitutionResource/Pages/EditUserInstitution.php @@ -59,22 +59,26 @@ public static function getSchema(): array return [ TextInput::make('first_name') ->label(__('institution.labels.first_name')) + ->placeholder(__('institution.placeholders.first_name')) ->maxLength(50) ->required(), TextInput::make('last_name') ->label(__('institution.labels.last_name')) + ->placeholder(__('institution.placeholders.last_name')) ->maxLength(50) ->required(), TextInput::make('email') ->label(__('institution.labels.email')) + ->placeholder(__('institution.placeholders.email')) ->maxLength(50) ->email() ->required(), TextInput::make('phone') ->label(__('institution.labels.phone')) + ->placeholder(__('institution.placeholders.phone')) ->maxLength(13) ->tel() ->required(), diff --git a/lang/ro/institution.php b/lang/ro/institution.php index 13425a9..c3200ea 100644 --- a/lang/ro/institution.php +++ b/lang/ro/institution.php @@ -53,6 +53,10 @@ 'placeholders' => [ 'center_details' => 'Dacă instituția are multiple centre acreditate pentru servicii diferite și necesită menținearea unor baze de date diferite de beneficiari, se pot crea tenants (profile) diferite pentru fiecare dintre acestea.', 'ngo_admins' => 'Adăugați cel puțin un rol de administrator în sistem. Această persoană are drepturi depline asupra întregii aplicații Sunrise pentru toate centrele instituției (ale organizației). Un email de invitație va fi transmis administratorului odată cu finalizarea adăugării instituției.', + 'first_name' => 'Nume administrator platformă', + 'last_name' => 'Prenume administrator platformă', + 'email' => 'Adresă de email administrator platformă', + 'phone' => 'Număr de telefon administrator platformă', ], 'helper_texts' => [ diff --git a/lang/ro/organization.php b/lang/ro/organization.php index 4ff7905..f9838e0 100644 --- a/lang/ro/organization.php +++ b/lang/ro/organization.php @@ -27,6 +27,9 @@ 'phone' => 'Telefon', 'website' => 'Website', 'logo' => 'Logo organizație', + 'contact_person' => 'Persoană de contact', + 'contact_person_email' => 'Email persoană de contact', + 'contact_person_phone' => 'Număr telefon persoană de contact', ], 'filter' => [ @@ -42,4 +45,23 @@ 'helper_texts' => [ 'view_tenant_info' => 'Pentru a modifica/ actualiza informațiile din această secțiune, vă rugăm contactați echipa de administrare Sunrise via email la admin@stopviolențeidomestice.ro ', ], + + 'placeholders' => [ + 'name' => 'Numele organizației', + 'short_name' => 'Acronimul organizației', + 'type' => 'Alege o variantă', + 'cif' => 'CUI/CIF organizație', + 'main_activity' => 'Domeniul principal de activitate', + 'area' => 'Alege o variantă', + 'address' => 'Adresa completă sediu social', + 'representative_name' => 'Nume complet reprezentant legal', + 'representative_email' => 'Emailul reprezentantului legal', + 'phone' => 'Număr de telefon reprezentant legal', + 'contact_person' => 'Nume complet persoană de contact', + 'contact_person_email' => 'Emailul persoanei de contact', + 'contact_person_phone' => 'Număr de telefon persoană de contact', + 'website' => 'Link website organizație', + 'center_name' => 'Numele complet al centrului', + 'center_short_name' => 'Acronimul centrului', + ], ];