Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="modal fade" id="addNew" tabindex="-1" role="dialog">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title">New User</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="modal-body">
- {!! Form::open(['method' =>'POST', 'action'=> 'UsersController@store', 'files'=>true, 'enctype'=>'multipart/form-data']) !!}
- <div class="form-group {{$errors->has('firstName') ? 'has-error' : ''}}">
- {!! Form::label('firstName', 'First Name:') !!}
- {!! Form::text('firstName', null, ['class'=>'form-control', 'rows' => 3])!!}
- @if($errors->has('firstName'))
- {{$errors->first('firstName')}}
- @endif
- </div>
- {{--most form data removed for simplicity--}}
- <div class="form-group">
- {!! Form::submit('Add user', ['class'=>'btn btn-primary']) !!}
- </div>
- {!! Form::close() !!}
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement