diff --git a/src/stubs/resources/views/full/create-bs3.stub b/src/stubs/resources/views/full/create-bs3.stub index f03a749..609e49d 100644 --- a/src/stubs/resources/views/full/create-bs3.stub +++ b/src/stubs/resources/views/full/create-bs3.stub @@ -22,7 +22,7 @@
diff --git a/src/stubs/resources/views/full/create-formfield-bs3.stub b/src/stubs/resources/views/full/create-formfield-bs3.stub index e6f27f0..30147b1 100644 --- a/src/stubs/resources/views/full/create-formfield-bs3.stub +++ b/src/stubs/resources/views/full/create-formfield-bs3.stub @@ -13,7 +13,7 @@ {!! FormField::textarea('description', ['label' => __('master.description')]) !!} {{ Form::close() }} diff --git a/src/stubs/resources/views/full/create-formfield.stub b/src/stubs/resources/views/full/create-formfield.stub index 8d5be90..2fb140e 100644 --- a/src/stubs/resources/views/full/create-formfield.stub +++ b/src/stubs/resources/views/full/create-formfield.stub @@ -13,7 +13,7 @@ {!! FormField::textarea('description', ['label' => __('master.description')]) !!} {{ Form::close() }} diff --git a/src/stubs/resources/views/full/create.stub b/src/stubs/resources/views/full/create.stub index 1fd39b2..fe6cef0 100644 --- a/src/stubs/resources/views/full/create.stub +++ b/src/stubs/resources/views/full/create.stub @@ -22,7 +22,7 @@ diff --git a/src/stubs/resources/views/simple/forms-bs3.stub b/src/stubs/resources/views/simple/forms-bs3.stub index 61d8328..c6eb66f 100644 --- a/src/stubs/resources/views/simple/forms-bs3.stub +++ b/src/stubs/resources/views/simple/forms-bs3.stub @@ -12,7 +12,7 @@ {!! $errors->first('description', ':message') !!} - + {{ __('app.cancel') }} @endcan diff --git a/src/stubs/resources/views/simple/forms-formfield-bs3.stub b/src/stubs/resources/views/simple/forms-formfield-bs3.stub index 4e7cb20..b7155c0 100644 --- a/src/stubs/resources/views/simple/forms-formfield-bs3.stub +++ b/src/stubs/resources/views/simple/forms-formfield-bs3.stub @@ -3,7 +3,7 @@ {{ Form::open(['route' => 'masters.store']) }} {!! FormField::text('title', ['required' => true, 'label' => __('master.title')]) !!} {!! FormField::textarea('description', ['label' => __('master.description')]) !!} - {{ Form::submit(__('master.create'), ['class' => 'btn btn-success']) }} + {{ Form::submit(__('app.create'), ['class' => 'btn btn-success']) }} {{ link_to_route('masters.index', __('app.cancel'), [], ['class' => 'btn btn-default']) }} {{ Form::close() }} @endcan diff --git a/src/stubs/resources/views/simple/forms-formfield.stub b/src/stubs/resources/views/simple/forms-formfield.stub index 7b3b4d7..52c2042 100644 --- a/src/stubs/resources/views/simple/forms-formfield.stub +++ b/src/stubs/resources/views/simple/forms-formfield.stub @@ -3,7 +3,7 @@ {{ Form::open(['route' => 'masters.store']) }} {!! FormField::text('title', ['required' => true, 'label' => __('master.title')]) !!} {!! FormField::textarea('description', ['label' => __('master.description')]) !!} - {{ Form::submit(__('master.create'), ['class' => 'btn btn-success']) }} + {{ Form::submit(__('app.create'), ['class' => 'btn btn-success']) }} {{ link_to_route('masters.index', __('app.cancel'), [], ['class' => 'btn btn-link']) }} {{ Form::close() }} @endcan diff --git a/src/stubs/resources/views/simple/forms.stub b/src/stubs/resources/views/simple/forms.stub index 6169fa2..0386f65 100644 --- a/src/stubs/resources/views/simple/forms.stub +++ b/src/stubs/resources/views/simple/forms.stub @@ -12,7 +12,7 @@ {!! $errors->first('description', ':message') !!} - + {{ __('app.cancel') }} @endcan diff --git a/tests/CommandOptions/FullCrudBs3OptionsTest.php b/tests/CommandOptions/FullCrudBs3OptionsTest.php index 8b2cd98..0afb7bd 100644 --- a/tests/CommandOptions/FullCrudBs3OptionsTest.php +++ b/tests/CommandOptions/FullCrudBs3OptionsTest.php @@ -170,7 +170,7 @@ class FullCrudBs3OptionsTest extends TestCase diff --git a/tests/CommandOptions/FullCrudFormfieldBs3OptionsTest.php b/tests/CommandOptions/FullCrudFormfieldBs3OptionsTest.php index 94517e1..de84bbc 100644 --- a/tests/CommandOptions/FullCrudFormfieldBs3OptionsTest.php +++ b/tests/CommandOptions/FullCrudFormfieldBs3OptionsTest.php @@ -163,7 +163,7 @@ class FullCrudFormfieldBs3OptionsTest extends TestCase {!! FormField::textarea('description', ['label' => __('{$this->lang_name}.description')]) !!} {{ Form::close() }} diff --git a/tests/CommandOptions/FullCrudFormfieldOptionsTest.php b/tests/CommandOptions/FullCrudFormfieldOptionsTest.php index e9257bf..d09f5cc 100644 --- a/tests/CommandOptions/FullCrudFormfieldOptionsTest.php +++ b/tests/CommandOptions/FullCrudFormfieldOptionsTest.php @@ -165,7 +165,7 @@ class FullCrudFormfieldOptionsTest extends TestCase {!! FormField::textarea('description', ['label' => __('{$this->lang_name}.description')]) !!} {{ Form::close() }} diff --git a/tests/CommandOptions/SimpleCrudBs3OptionsTest.php b/tests/CommandOptions/SimpleCrudBs3OptionsTest.php index 6745c86..48a8da7 100644 --- a/tests/CommandOptions/SimpleCrudBs3OptionsTest.php +++ b/tests/CommandOptions/SimpleCrudBs3OptionsTest.php @@ -126,7 +126,7 @@ class SimpleCrudBs3OptionsTest extends TestCase {!! \$errors->first('description', ':message') !!} - lang_name}.create') }}\" class=\"btn btn-success\"> + table_name}.index') }}\" class=\"btn btn-default\">{{ __('app.cancel') }} @endcan diff --git a/tests/CommandOptions/SimpleCrudFormfieldBs3OptionsTest.php b/tests/CommandOptions/SimpleCrudFormfieldBs3OptionsTest.php index de5550c..69eecba 100644 --- a/tests/CommandOptions/SimpleCrudFormfieldBs3OptionsTest.php +++ b/tests/CommandOptions/SimpleCrudFormfieldBs3OptionsTest.php @@ -119,7 +119,7 @@ class SimpleCrudFormfieldBs3OptionsTest extends TestCase {{ Form::open(['route' => '{$this->table_name}.store']) }} {!! FormField::text('title', ['required' => true, 'label' => __('{$this->lang_name}.title')]) !!} {!! FormField::textarea('description', ['label' => __('{$this->lang_name}.description')]) !!} - {{ Form::submit(__('{$this->lang_name}.create'), ['class' => 'btn btn-success']) }} + {{ Form::submit(__('app.create'), ['class' => 'btn btn-success']) }} {{ link_to_route('{$this->table_name}.index', __('app.cancel'), [], ['class' => 'btn btn-default']) }} {{ Form::close() }} @endcan diff --git a/tests/CommandOptions/SimpleCrudFormfieldOptionsTest.php b/tests/CommandOptions/SimpleCrudFormfieldOptionsTest.php index d3fa17d..c67c42d 100644 --- a/tests/CommandOptions/SimpleCrudFormfieldOptionsTest.php +++ b/tests/CommandOptions/SimpleCrudFormfieldOptionsTest.php @@ -119,7 +119,7 @@ class SimpleCrudFormfieldOptionsTest extends TestCase {{ Form::open(['route' => '{$this->table_name}.store']) }} {!! FormField::text('title', ['required' => true, 'label' => __('{$this->lang_name}.title')]) !!} {!! FormField::textarea('description', ['label' => __('{$this->lang_name}.description')]) !!} - {{ Form::submit(__('{$this->lang_name}.create'), ['class' => 'btn btn-success']) }} + {{ Form::submit(__('app.create'), ['class' => 'btn btn-success']) }} {{ link_to_route('{$this->table_name}.index', __('app.cancel'), [], ['class' => 'btn btn-link']) }} {{ Form::close() }} @endcan diff --git a/tests/Generators/Simple/ViewsGeneratorTest.php b/tests/Generators/Simple/ViewsGeneratorTest.php index ac5451f..36f0739 100644 --- a/tests/Generators/Simple/ViewsGeneratorTest.php +++ b/tests/Generators/Simple/ViewsGeneratorTest.php @@ -100,7 +100,7 @@ class ViewsGeneratorTest extends TestCase {!! \$errors->first('description', ':message') !!} - lang_name}.create') }}\" class=\"btn btn-success\"> + table_name}.index') }}\" class=\"btn btn-link\">{{ __('app.cancel') }} @endcan diff --git a/tests/Generators/ViewsGeneratorTest.php b/tests/Generators/ViewsGeneratorTest.php index 5ce6094..e47894c 100644 --- a/tests/Generators/ViewsGeneratorTest.php +++ b/tests/Generators/ViewsGeneratorTest.php @@ -143,7 +143,7 @@ class ViewsGeneratorTest extends TestCase