From e61e56818f5617eaab2c5fd3201f6dad77993b00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20J=C3=A4ggi?= Date: Tue, 26 Nov 2024 14:57:30 +0100 Subject: [PATCH] Extract part of register view into fields partial --- app/views/event/register/_fields.html.haml | 8 ++++++++ app/views/event/register/register.html.haml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 app/views/event/register/_fields.html.haml diff --git a/app/views/event/register/_fields.html.haml b/app/views/event/register/_fields.html.haml new file mode 100644 index 0000000..e30fce3 --- /dev/null +++ b/app/views/event/register/_fields.html.haml @@ -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 diff --git a/app/views/event/register/register.html.haml b/app/views/event/register/register.html.haml index 8986bcc..5705036 100644 --- a/app/views/event/register/register.html.haml +++ b/app/views/event/register/register.html.haml @@ -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)