Skip to content

Commit

Permalink
Add visual improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWalkingLeek committed Jan 16, 2024
1 parent 786696b commit dd030cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
= fields.inline_radio_button(:gender, key, entry.gender_label(key))

= fields.labeled_input_field(:birthday,
help_inline: t('people.fields.format_birthday'),
help_inline: t('.birthday_hint'),
class: 'col-2 form-control form-control-sm d-inline')
9 changes: 4 additions & 5 deletions app/views/people/manageds/_fields.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
- if cannot?(:lookup_manageds, Person) && FeatureGate.enabled?('people.people_managers.self_service_managed_creation')
= render('people/manageds/create_new_managed_person', f: f)
- else
= f.person_field(:managed, { disabled: cannot?(:create_households, Person), data: { url: query_people_path(limit_by_permission: :change_managers) } })

%span.help-block= t('.manageds_help')
%span
= f.person_field(:managed, { disabled: cannot?(:create_households, Person), data: { url: query_people_path(limit_by_permission: :change_managers) } })
%span.help-block= t('.manageds_help')
- else
.col-4
= f.object.managed.full_name
= f.object.managed.full_name
2 changes: 2 additions & 0 deletions config/locales/views.youth.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ de:
manageds:
fields:
manageds_help: Du kannst nur Personen als Kinder hinzufügen, auf welche du Schreibzugriff hast.
create_new_managed_person:
birthday_hint: (dd.mm.yyyy)
fields_youth:
no_permission_to_change_managers: Du bist nicht berechtigt, die Verwalter*innen dieser Person zu ändern.
nationality:
Expand Down

0 comments on commit dd030cc

Please sign in to comment.