From 18ddffe8f96deeecd84b1098f3f83d034c923e5d Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Wed, 25 Sep 2024 11:42:16 -0700 Subject: [PATCH] fix partial variable intialization, fix width of input fields --- resources/views/modals/user.blade.php | 24 ++++++++++++------- .../views/partials/forms/edit/email.blade.php | 2 +- .../partials/forms/edit/name-first.blade.php | 6 ++++- .../partials/forms/edit/name-last.blade.php | 6 ++++- 4 files changed, 27 insertions(+), 11 deletions(-) diff --git a/resources/views/modals/user.blade.php b/resources/views/modals/user.blade.php index af2863282b..fe73ae0d8a 100644 --- a/resources/views/modals/user.blade.php +++ b/resources/views/modals/user.blade.php @@ -29,7 +29,6 @@
- @if ($user->company) @@ -43,10 +42,10 @@ @include ('partials.forms.edit.location-profile-select', ['translated_name' => trans('general.location'), 'fieldname' => 'location_id'])
- @include('partials.forms.edit.name-first', ['class' => 'col-md-8 col-xs-12', 'style' => 'width:65.5%;']) + @include('partials.forms.edit.name-first', ['class' => 'col-md-8 col-xs-12-pull', 'style' => 'width:67%;'])
- @include('partials.forms.edit.name-last', ['class' => 'col-md-8 col-xs-12', 'style' => 'width:65.5%;']) + @include('partials.forms.edit.name-last', ['class' => 'col-md-8 col-xs-12-pull', 'style' => 'width:67%;'])
@include('partials.forms.edit.email') @@ -56,18 +55,27 @@
-
-
- Generate +
+
+ +
+
+ Generate +
-
-
+
+
+ +
+
+
+
diff --git a/resources/views/partials/forms/edit/email.blade.php b/resources/views/partials/forms/edit/email.blade.php index 652b7155c7..dc8a4d8d2c 100644 --- a/resources/views/partials/forms/edit/email.blade.php +++ b/resources/views/partials/forms/edit/email.blade.php @@ -1,7 +1,7 @@
- + {!! $errors->first('email', '') !!}
\ No newline at end of file diff --git a/resources/views/partials/forms/edit/name-first.blade.php b/resources/views/partials/forms/edit/name-first.blade.php index 6911709c53..d7c07947ae 100644 --- a/resources/views/partials/forms/edit/name-first.blade.php +++ b/resources/views/partials/forms/edit/name-first.blade.php @@ -1,7 +1,11 @@ +@php + $class = $class ?? 'col-md-6'; + $style = $style ?? ''; +@endphp
-
+
{!! $errors->first('first_name', '') !!}
diff --git a/resources/views/partials/forms/edit/name-last.blade.php b/resources/views/partials/forms/edit/name-last.blade.php index f5e3d834fa..61ef221dc0 100644 --- a/resources/views/partials/forms/edit/name-last.blade.php +++ b/resources/views/partials/forms/edit/name-last.blade.php @@ -1,7 +1,11 @@ +@php + $class = $class ?? 'col-md-6'; + $style = $style ?? ''; +@endphp
-
+
{!! $errors->first('last_name', '') !!}