Skip to content

Commit

Permalink
fix: user create fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mitulgolakiya committed Jun 23, 2022
1 parent 732e1c4 commit deed005
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
33 changes: 23 additions & 10 deletions templates/scaffold/users/create.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,36 @@

@section('content')
<section class="content-header">
<h1>
User
</h1>
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-12">
<h1>Create User</h1>
</div>
</div>
</div>
</section>
<div class="content">

<div class="content px-3">

@include('adminlte-templates::common.errors')
<div class="box box-primary">

<div class="box-body">
<div class="row">
{!! Form::open(['route' => 'users.store']) !!}
<div class="card">

@include('users.fields')
{!! Form::open(['route' => 'users.store']) !!}

{!! Form::close() !!}
<div class="card-body">
<div class="row">
@include('users.fields')
</div>
</div>

<div class="card-footer">
{!! Form::submit('Save', ['class' => 'btn btn-primary']) !!}
<a href="{{ route('users.index') }}" class="btn btn-default">Cancel</a>
</div>

{!! Form::close() !!}

</div>
</div>
@endsection
2 changes: 1 addition & 1 deletion templates/scaffold/users/fields.stub
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@

<!-- Confirmation Password Field -->
<div class="form-group col-sm-6">
{!! Form::label('password', 'Password Confirmation') !!}
{!! Form::label('password', 'Password Confirmation') !!}
{!! Form::password('password_confirmation', ['class' => 'form-control']) !!}
</div>

0 comments on commit deed005

Please sign in to comment.