From 732e1c4ed23f9441343fdb1e54ac7e18ca910727 Mon Sep 17 00:00:00 2001 From: Mitul Golakiya Date: Thu, 23 Jun 2022 18:36:59 +0530 Subject: [PATCH] fix: user view/edit fixes --- templates/scaffold/users/edit.stub | 46 +++++++++++++++-------- templates/scaffold/users/fields.stub | 6 --- templates/scaffold/users/show.stub | 26 +++++++++---- templates/scaffold/users/show_fields.stub | 4 +- 4 files changed, 50 insertions(+), 32 deletions(-) diff --git a/templates/scaffold/users/edit.stub b/templates/scaffold/users/edit.stub index c4d3abf..d04ee71 100644 --- a/templates/scaffold/users/edit.stub +++ b/templates/scaffold/users/edit.stub @@ -2,22 +2,36 @@ @section('content')
-

- User -

+
+
+
+

User

+
+
+
-
- @include('adminlte-templates::common.errors') -
-
-
- {!! Form::model($user, ['route' => ['users.update', $user->id], 'method' => 'patch']) !!} - - @include('users.fields') - - {!! Form::close() !!} -
-
+ +
+ + @include('adminlte-templates::common.errors') + +
+ + {!! Form::model($user, ['route' => ['users.update', $user->id], 'method' => 'patch']) !!} + +
+
+ @include('users.fields') +
+
+ + + + {!! Form::close() !!} +
-
+
@endsection \ No newline at end of file diff --git a/templates/scaffold/users/fields.stub b/templates/scaffold/users/fields.stub index 31012ed..5f3c805 100644 --- a/templates/scaffold/users/fields.stub +++ b/templates/scaffold/users/fields.stub @@ -21,9 +21,3 @@ {!! Form::label('password', 'Password Confirmation') !!} {!! Form::password('password_confirmation', ['class' => 'form-control']) !!}
- - -
- {!! Form::submit('Save', ['class' => 'btn btn-primary']) !!} - Cancel -
diff --git a/templates/scaffold/users/show.stub b/templates/scaffold/users/show.stub index 242e0c7..b51a7fb 100644 --- a/templates/scaffold/users/show.stub +++ b/templates/scaffold/users/show.stub @@ -2,16 +2,26 @@ @section('content')
-

- User -

+
+
+
+

Users

+
+ +
+
-
-
-
-
+ +
+
+
+
@include('users.show_fields') - Back
diff --git a/templates/scaffold/users/show_fields.stub b/templates/scaffold/users/show_fields.stub index 4e5946a..df1049e 100644 --- a/templates/scaffold/users/show_fields.stub +++ b/templates/scaffold/users/show_fields.stub @@ -1,11 +1,11 @@ -
+
{!! Form::label('name', 'Name:') !!}

{!! $user->name !!}

-
+
{!! Form::label('email', 'Email:') !!}

{!! $user->email !!}