From 1ccc617cd487e0cf6f9a326228b84325ff9ae2ff Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Mon, 10 Sep 2018 16:50:04 +0800 Subject: [PATCH] Update FormField::delete() usage on edit view stubs --- src/stubs/resources/views/full/edit-formfield-bs3.stub | 2 +- src/stubs/resources/views/full/edit-formfield.stub | 2 +- src/stubs/resources/views/simple/forms-formfield-bs3.stub | 2 +- src/stubs/resources/views/simple/forms-formfield.stub | 2 +- tests/CommandOptions/FullCrudFormfieldBs3OptionsTest.php | 2 +- tests/CommandOptions/FullCrudFormfieldOptionsTest.php | 2 +- tests/CommandOptions/SimpleCrudFormfieldBs3OptionsTest.php | 2 +- tests/CommandOptions/SimpleCrudFormfieldOptionsTest.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/stubs/resources/views/full/edit-formfield-bs3.stub b/src/stubs/resources/views/full/edit-formfield-bs3.stub index 9cff57e..695d516 100644 --- a/src/stubs/resources/views/full/edit-formfield-bs3.stub +++ b/src/stubs/resources/views/full/edit-formfield-bs3.stub @@ -22,7 +22,7 @@ {!! FormField::delete( ['route' => ['masters.destroy', $singleMstr]], __('app.delete_confirm_button'), - ['class'=>'btn btn-danger'], + ['class' => 'btn btn-danger'], [ 'master_id' => $singleMstr->id, 'page' => request('page'), diff --git a/src/stubs/resources/views/full/edit-formfield.stub b/src/stubs/resources/views/full/edit-formfield.stub index 9b010ee..959284c 100644 --- a/src/stubs/resources/views/full/edit-formfield.stub +++ b/src/stubs/resources/views/full/edit-formfield.stub @@ -22,7 +22,7 @@ {!! FormField::delete( ['route' => ['masters.destroy', $singleMstr]], __('app.delete_confirm_button'), - ['class'=>'btn btn-danger'], + ['class' => 'btn btn-danger'], [ 'master_id' => $singleMstr->id, 'page' => request('page'), diff --git a/src/stubs/resources/views/simple/forms-formfield-bs3.stub b/src/stubs/resources/views/simple/forms-formfield-bs3.stub index aa3ef0b..0c194b3 100644 --- a/src/stubs/resources/views/simple/forms-formfield-bs3.stub +++ b/src/stubs/resources/views/simple/forms-formfield-bs3.stub @@ -49,7 +49,7 @@ {!! FormField::delete( ['route' => ['masters.destroy', $editableMaster]], __('app.delete_confirm_button'), - ['class'=>'btn btn-danger'], + ['class' => 'btn btn-danger'], [ 'master_id' => $editableMaster->id, 'page' => request('page'), diff --git a/src/stubs/resources/views/simple/forms-formfield.stub b/src/stubs/resources/views/simple/forms-formfield.stub index 74964a0..eaa6b17 100644 --- a/src/stubs/resources/views/simple/forms-formfield.stub +++ b/src/stubs/resources/views/simple/forms-formfield.stub @@ -49,7 +49,7 @@ {!! FormField::delete( ['route' => ['masters.destroy', $editableMaster]], __('app.delete_confirm_button'), - ['class'=>'btn btn-danger'], + ['class' => 'btn btn-danger'], [ 'master_id' => $editableMaster->id, 'page' => request('page'), diff --git a/tests/CommandOptions/FullCrudFormfieldBs3OptionsTest.php b/tests/CommandOptions/FullCrudFormfieldBs3OptionsTest.php index 69651c3..fb568f5 100644 --- a/tests/CommandOptions/FullCrudFormfieldBs3OptionsTest.php +++ b/tests/CommandOptions/FullCrudFormfieldBs3OptionsTest.php @@ -206,7 +206,7 @@ class FullCrudFormfieldBs3OptionsTest extends TestCase {!! FormField::delete( ['route' => ['{$this->table_name}.destroy', \${$this->single_model_var_name}]], __('app.delete_confirm_button'), - ['class'=>'btn btn-danger'], + ['class' => 'btn btn-danger'], [ '{$this->lang_name}_id' => \${$this->single_model_var_name}->id, 'page' => request('page'), diff --git a/tests/CommandOptions/FullCrudFormfieldOptionsTest.php b/tests/CommandOptions/FullCrudFormfieldOptionsTest.php index 9c39690..1fc5c54 100644 --- a/tests/CommandOptions/FullCrudFormfieldOptionsTest.php +++ b/tests/CommandOptions/FullCrudFormfieldOptionsTest.php @@ -206,7 +206,7 @@ class FullCrudFormfieldOptionsTest extends TestCase {!! FormField::delete( ['route' => ['{$this->table_name}.destroy', \${$this->single_model_var_name}]], __('app.delete_confirm_button'), - ['class'=>'btn btn-danger'], + ['class' => 'btn btn-danger'], [ '{$this->lang_name}_id' => \${$this->single_model_var_name}->id, 'page' => request('page'), diff --git a/tests/CommandOptions/SimpleCrudFormfieldBs3OptionsTest.php b/tests/CommandOptions/SimpleCrudFormfieldBs3OptionsTest.php index 65b70a3..1b4f93d 100644 --- a/tests/CommandOptions/SimpleCrudFormfieldBs3OptionsTest.php +++ b/tests/CommandOptions/SimpleCrudFormfieldBs3OptionsTest.php @@ -165,7 +165,7 @@ class SimpleCrudFormfieldBs3OptionsTest extends TestCase {!! FormField::delete( ['route' => ['{$this->table_name}.destroy', \$editable{$this->model_name}]], __('app.delete_confirm_button'), - ['class'=>'btn btn-danger'], + ['class' => 'btn btn-danger'], [ '{$this->lang_name}_id' => \$editable{$this->model_name}->id, 'page' => request('page'), diff --git a/tests/CommandOptions/SimpleCrudFormfieldOptionsTest.php b/tests/CommandOptions/SimpleCrudFormfieldOptionsTest.php index d0de196..98717c4 100644 --- a/tests/CommandOptions/SimpleCrudFormfieldOptionsTest.php +++ b/tests/CommandOptions/SimpleCrudFormfieldOptionsTest.php @@ -165,7 +165,7 @@ class SimpleCrudFormfieldOptionsTest extends TestCase {!! FormField::delete( ['route' => ['{$this->table_name}.destroy', \$editable{$this->model_name}]], __('app.delete_confirm_button'), - ['class'=>'btn btn-danger'], + ['class' => 'btn btn-danger'], [ '{$this->lang_name}_id' => \$editable{$this->model_name}->id, 'page' => request('page'),