From 7ec153b8329c3bc99f42554ed19cd03f7c79c332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 22 Jun 2020 15:33:56 +0200 Subject: [PATCH] Support for modals & terms --- .../auth/includes/register/popup.blade.php | 30 +++++++++++++++++++ .../portal/ninja2020/auth/register.blade.php | 24 ++++++++------- 2 files changed, 44 insertions(+), 10 deletions(-) create mode 100644 resources/views/portal/ninja2020/auth/includes/register/popup.blade.php diff --git a/resources/views/portal/ninja2020/auth/includes/register/popup.blade.php b/resources/views/portal/ninja2020/auth/includes/register/popup.blade.php new file mode 100644 index 000000000000..9585bfd0125e --- /dev/null +++ b/resources/views/portal/ninja2020/auth/includes/register/popup.blade.php @@ -0,0 +1,30 @@ +{{ ctrans("texts.$property") }} +/ + +
+
+
+
+ + +
\ No newline at end of file diff --git a/resources/views/portal/ninja2020/auth/register.blade.php b/resources/views/portal/ninja2020/auth/register.blade.php index a5045a93d8db..ca01fccdf310 100644 --- a/resources/views/portal/ninja2020/auth/register.blade.php +++ b/resources/views/portal/ninja2020/auth/register.blade.php @@ -2,7 +2,7 @@ @section('meta_title', ctrans('texts.register')) @section('body') -
+
{{ ctrans('texts.logo') }} @@ -10,7 +10,7 @@

{{ ctrans('texts.register') }}

{{ ctrans('texts.register_label') }}

-
+ @csrf @include('portal.ninja2020.auth.includes.register.personal_information') @@ -21,18 +21,22 @@ @include('portal.ninja2020.auth.includes.register.personal_address') @include('portal.ninja2020.auth.includes.register.shipping_address')
- +
- - - - {{ ctrans('texts.i_agree') }} {{ ctrans('texts.terms_of_service') }} and {{ ctrans('texts.privacy_policy') }} + + @if(!empty($company->settings->client_signup_terms) || !empty($company->settings->client_signup_privacy_policy)) + + + + {{ ctrans('texts.i_agree') }} + @endif + + @includeWhen(!empty($company->settings->client_signup_terms), 'portal.ninja2020.auth.includes.register.popup', ['property' => 'terms_of_service', 'title' => ctrans('texts.terms_of_service'), 'content' => $company->settings->client_signup_terms]) + @includeWhen(!empty($company->settings->client_signup_privacy_policy), 'portal.ninja2020.auth.includes.register.popup', ['property' => 'privacy_policy', 'title' => ctrans('texts.privacy_policy'), 'content' => $company->settings->client_signup_privacy_policy]) - +