diff --git a/src/stubs/resources/views/full/edit.stub b/src/stubs/resources/views/full/edit.stub index 79f9a82..d23de5b 100644 --- a/src/stubs/resources/views/full/edit.stub +++ b/src/stubs/resources/views/full/edit.stub @@ -17,7 +17,7 @@ {!! $errors->first('master_id', ':message') !!}
-
{{ __('app.delete_confirm') }}
+
{{ __('master.delete_confirm') }}

-
{{ __('app.delete_confirm') }}
+
{{ __('master.delete_confirm') }}

-
{{ __('app.delete_confirm') }}
+
{{ __('{$this->lang_name}.delete_confirm') }}
{!! FormField::delete( ['route' => ['{$this->table_name}.destroy', \$editable{$this->model_name}]], diff --git a/tests/Generators/ViewsGeneratorTest.php b/tests/Generators/ViewsGeneratorTest.php index b41bae3..66f28ba 100644 --- a/tests/Generators/ViewsGeneratorTest.php +++ b/tests/Generators/ViewsGeneratorTest.php @@ -54,14 +54,14 @@ class ViewsGeneratorTest extends TestCase {{ \${$this->single_model_var_name}->name_link }} {{ \${$this->single_model_var_name}->description }} - @can('view', \${$this->single_model_var_name}) - {!! link_to_route( - '{$this->table_name}.show', - __('app.show'), - [\${$this->single_model_var_name}], - ['class' => 'btn btn-default btn-xs', 'id' => 'show-{$this->lang_name}-' . \${$this->single_model_var_name}->id] - ) !!} - @endcan + @can('view', \${$this->single_model_var_name}) + {!! link_to_route( + '{$this->table_name}.show', + __('app.show'), + [\${$this->single_model_var_name}], + ['class' => 'btn btn-default btn-xs', 'id' => 'show-{$this->lang_name}-' . \${$this->single_model_var_name}->id] + ) !!} + @endcan @endforeach @@ -172,7 +172,7 @@ class ViewsGeneratorTest extends TestCase {!! \$errors->first('{$this->lang_name}_id', ':message') !!}

-
{{ __('app.delete_confirm') }}
+
{{ __('{$this->lang_name}.delete_confirm') }}
{!! FormField::delete( ['route' => ['{$this->table_name}.destroy', \${$this->single_model_var_name}]],