-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Override people/_fields_youth to remove AHV number field (#1355)
* Override people/_fields_youth to remove AHV number field * Override people/_details_youth to remove AHV number
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' }) |