Browse Source
Remove FormField on full CRUD create form
Remove FormField on full CRUD create form
Move FormFieldversion of create form to new stub filetags/1.2.0
3 changed files with 61 additions and 20 deletions
-
23src/stubs/resources/views/full/create-formfield.stub
-
29src/stubs/resources/views/full/create.stub
-
29tests/Generators/ViewsGeneratorTest.php
@ -0,0 +1,23 @@ |
|||||
|
@extends('layouts.app') |
||||
|
|
||||
|
@section('title', __('master.create')) |
||||
|
|
||||
|
@section('content') |
||||
|
<div class="row"> |
||||
|
<div class="col-md-6 col-md-offset-3"> |
||||
|
<div class="panel panel-default"> |
||||
|
<div class="panel-heading"><h3 class="panel-title">{{ __('master.create') }}</h3></div> |
||||
|
{!! Form::open(['route' => 'masters.store']) !!} |
||||
|
<div class="panel-body"> |
||||
|
{!! FormField::text('name', ['required' => true, 'label' => __('master.name')]) !!} |
||||
|
{!! FormField::textarea('description', ['label' => __('master.description')]) !!} |
||||
|
</div> |
||||
|
<div class="panel-footer"> |
||||
|
{!! Form::submit(__('master.create'), ['class' => 'btn btn-success']) !!} |
||||
|
{{ link_to_route('masters.index', __('app.cancel'), [], ['class' => 'btn btn-default']) }} |
||||
|
</div> |
||||
|
{!! Form::close() !!} |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
@endsection |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue