Skip to content

Commit

Permalink
add siblings in layer to person details view
Browse files Browse the repository at this point in the history
  • Loading branch information
diegosteiner committed Sep 12, 2023
1 parent 6da8a18 commit 1f7e588
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 9 additions & 1 deletion app/views/people/_details_pbs.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
-# https://github.com/hitobito/hitobito_pbs.
= render_attrs(entry, :pbs_number, :salutation, :correspondence_language,
:grade_of_school, :brother_and_sisters)
:grade_of_school)

%dl.dl-horizontal
= labeled(t('people.fields_pbs.siblings_in_layer', layer: parent.layer_group)) do
- if entry.has_siblings_in_layer(parent.layer_group)
= simple_list entry.siblings_in_layer(parent.layer_group) do |sibling_role|
- assoc_link(sibling_role.person)
- else
= t('global.associations.no_entry')

= render_attrs(entry, :entry_date, :leaving_date)
3 changes: 0 additions & 3 deletions app/views/people/_fields_pbs.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,3 @@

= field_set_tag do
= f.labeled_input_fields(:entry_date, :leaving_date)

= field_set_tag do
= f.labeled_input_field(:brother_and_sisters, caption: t('.in_abteilung'))
1 change: 1 addition & 0 deletions config/locales/views.pbs.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ de:
fields_pbs:
non_automatic_field: Dies ist kein automatisches Feld und muss manuell angepasst werden.
in_abteilung: (in der Abteilung)
siblings_in_layer: Geschwister in %{layer}
qualification_buttons_pbs:
print_course_confirmation: Kursbestätigung drucken
household_attrs_pbs:
Expand Down

0 comments on commit 1f7e588

Please sign in to comment.