Skip to content

Commit

Permalink
Extract part of register view into fields partial (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
njaeggi authored Nov 28, 2024
1 parent b0772ba commit 50fa4bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions app/views/event/register/_fields.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-# Copyright (c) 2023, CEVI Schweiz, Pfadibewegung Schweiz,
-# Jungwacht Blauring Schweiz, Pro Natura, Stiftung für junge Auslandschweizer.
-# This file is part of hitobito_youth 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_youth.
= render 'event/participation_contact_datas/fields', f: f
2 changes: 1 addition & 1 deletion app/views/event/register/register.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
- if manager
= render 'manager_fields', f: f
- else
= render 'event/participation_contact_datas/fields', f: f
= render 'fields', f: f

= f.honeypot(:verification)

0 comments on commit 50fa4bf

Please sign in to comment.