From 50fa4bfb0f54d81ed680a3344cbf39e9b19f4f73 Mon Sep 17 00:00:00 2001 From: Niklas <68543592+njaeggi@users.noreply.github.com> Date: Thu, 28 Nov 2024 08:39:58 +0100 Subject: [PATCH] Extract part of register view into fields partial (#95) --- 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)