Skip to content

Commit

Permalink
placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
alexPopaCode4 committed Nov 4, 2024
1 parent f2a1154 commit 0aa2850
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),

Expand All @@ -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(),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
4 changes: 4 additions & 0 deletions lang/ro/institution.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand Down
22 changes: 22 additions & 0 deletions lang/ro/organization.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand All @@ -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',
],
];

0 comments on commit 0aa2850

Please sign in to comment.