From 83a1f5c54b2cad44816845ab60d6b08b61072bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 4 Oct 2021 12:48:41 +0200 Subject: [PATCH] Only show required fields --- .../portal/ninja2020/auth/register.blade.php | 132 +++++++++--------- 1 file changed, 67 insertions(+), 65 deletions(-) diff --git a/resources/views/portal/ninja2020/auth/register.blade.php b/resources/views/portal/ninja2020/auth/register.blade.php index 806dec49996e..7512c555a8fa 100644 --- a/resources/views/portal/ninja2020/auth/register.blade.php +++ b/resources/views/portal/ninja2020/auth/register.blade.php @@ -15,69 +15,13 @@
@foreach($company->client_registration_fields as $field) -
-
- - - @if($field['required']) -
*
- @endif -
- - @if($field['key'] === 'email') - - @elseif($field['key'] === 'password') - - @elseif($field['key'] === 'country_id') - - @else - - @endif - - @error($field['key']) -
- {{ $message }} -
- @enderror -
- - @if($field['key'] === 'password') + @if($field['required'])
@if($field['required']) @@ -85,13 +29,71 @@ @endif
- + @if($field['key'] === 'email') + + @elseif($field['key'] === 'password') + + @elseif($field['key'] === 'country_id') + + @else + + @endif + + @error($field['key']) +
+ {{ $message }} +
+ @enderror
+ + @if($field['key'] === 'password') +
+
+ + + @if($field['required']) +
*
+ @endif +
+ + +
+ @endif @endif @endforeach