Skip to content

Commit

Permalink
Override people/_fields_youth to remove AHV number field (#1355)
Browse files Browse the repository at this point in the history
* Override people/_fields_youth to remove AHV number field

* Override people/_details_youth to remove AHV number
  • Loading branch information
rnestler authored Dec 10, 2024
1 parent 6f39463 commit 9e92417
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/views/people/_details_youth.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- # Copyright (c) 2024, Schweizer Alpen-Club. This file is part of
- # hitobito_sac_cas and licensed under the Affero General Public License version 3
- # or later. See the COPYING file at the top-level directory or at
- # https://github.com/hitobito/hitobito.

- # Override the youth view to hide the AHV number.
- # See https://github.com/hitobito/hitobito_sac_cas/issues/1346

- if show_full
= render_attrs(entry, :j_s_number, :translated_nationality_j_s)
15 changes: 15 additions & 0 deletions app/views/people/_fields_youth.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- # Copyright (c) 2024, Schweizer Alpen-Club. This file is part of
- # hitobito_sac_cas and licensed under the Affero General Public License version 3
- # or later. See the COPYING file at the top-level directory or at
- # https://github.com/hitobito/hitobito.

- # Override the youth view to hide the AHV number.
- # See https://github.com/hitobito/hitobito_sac_cas/issues/1346

= field_set_tag do
= f.labeled_input_fields(:j_s_number)
= f.labeled_collection_select(:nationality_j_s,
Person::NATIONALITIES_J_S,
:to_s, Proc.new { |n| t("activerecord.attributes.person.nationalities_j_s.#{n}") },
{ include_blank: "" },
{ class: 'form-select form-select-sm' })

0 comments on commit 9e92417

Please sign in to comment.