diff --git a/src/stubs/resources/views/full/index-formfield.stub b/src/stubs/resources/views/full/index-formfield.stub index 14e1738..06cee82 100644 --- a/src/stubs/resources/views/full/index-formfield.stub +++ b/src/stubs/resources/views/full/index-formfield.stub @@ -3,21 +3,21 @@ @section('title', __('master.list')) @section('content') -

+
@can('create', new fullMstr) {{ link_to_route('masters.create', __('master.create'), [], ['class' => 'btn btn-success']) }} @endcan
- {{ __('master.list') }} - {{ __('app.total') }} : {{ $mstrCollections->total() }} {{ __('master.master') }} -

+

{{ __('master.list') }} {{ __('app.total') }} : {{ $mstrCollections->total() }} {{ __('master.master') }}

+ +
{{ Form::open(['method' => 'get', 'class' => 'form-inline']) }} - {!! FormField::text('q', ['label' => __('master.search'), 'placeholder' => __('master.search_text'), 'class' => 'mr-sm-2']) !!} + {!! FormField::text('q', ['label' => __('master.search'), 'placeholder' => __('master.search_text'), 'class' => 'mx-sm-2']) !!} {{ Form::submit(__('master.search'), ['class' => 'btn btn-secondary']) }} {{ link_to_route('masters.index', __('app.reset'), [], ['class' => 'btn btn-link']) }} {{ Form::close() }} diff --git a/src/stubs/resources/views/full/index.stub b/src/stubs/resources/views/full/index.stub index 7881ae3..d8401ac 100644 --- a/src/stubs/resources/views/full/index.stub +++ b/src/stubs/resources/views/full/index.stub @@ -3,23 +3,23 @@ @section('title', __('master.list')) @section('content') -

+
@can('create', new fullMstr) {{ __('master.create') }} @endcan
- {{ __('master.list') }} - {{ __('app.total') }} : {{ $mstrCollections->total() }} {{ __('master.master') }} -

+

{{ __('master.list') }} {{ __('app.total') }} : {{ $mstrCollections->total() }} {{ __('master.master') }}

+
+
- - + +
{{ __('app.reset') }} diff --git a/src/stubs/resources/views/simple/index-formfield.stub b/src/stubs/resources/views/simple/index-formfield.stub index 6c739d9..7fc6a98 100644 --- a/src/stubs/resources/views/simple/index-formfield.stub +++ b/src/stubs/resources/views/simple/index-formfield.stub @@ -3,21 +3,21 @@ @section('title', __('master.list')) @section('content') -

+
@can('create', new fullMstr) {{ link_to_route('masters.index', __('master.create'), ['action' => 'create'], ['class' => 'btn btn-success']) }} @endcan
- {{ __('master.list') }} - {{ __('app.total') }} : {{ $mstrCollections->total() }} {{ __('master.master') }} -

+

{{ __('master.list') }} {{ __('app.total') }} : {{ $mstrCollections->total() }} {{ __('master.master') }}

+
+
{{ Form::open(['method' => 'get', 'class' => 'form-inline']) }} - {!! FormField::text('q', ['label' => __('master.search'), 'placeholder' => __('master.search_text'), 'class' => 'mr-sm-2']) !!} + {!! FormField::text('q', ['label' => __('master.search'), 'placeholder' => __('master.search_text'), 'class' => 'mx-sm-2']) !!} {{ Form::submit(__('master.search'), ['class' => 'btn btn-secondary']) }} {{ link_to_route('masters.index', __('app.reset'), [], ['class' => 'btn btn-link']) }} {{ Form::close() }} diff --git a/src/stubs/resources/views/simple/index.stub b/src/stubs/resources/views/simple/index.stub index 4a0edea..78ba849 100644 --- a/src/stubs/resources/views/simple/index.stub +++ b/src/stubs/resources/views/simple/index.stub @@ -3,23 +3,23 @@ @section('title', __('master.list')) @section('content') -

+
@can('create', new fullMstr) - {{ __('master.create') }} + {{ __('master.create') }} @endcan
- {{ __('master.list') }} - {{ __('app.total') }} : {{ $mstrCollections->total() }} {{ __('master.master') }} -

+

{{ __('master.list') }} {{ __('app.total') }} : {{ $mstrCollections->total() }} {{ __('master.master') }}

+
+
- - + +
{{ __('app.reset') }} diff --git a/tests/CommandOptions/FullCrudFormfieldOptionsTest.php b/tests/CommandOptions/FullCrudFormfieldOptionsTest.php index 7360d9d..f980a1d 100644 --- a/tests/CommandOptions/FullCrudFormfieldOptionsTest.php +++ b/tests/CommandOptions/FullCrudFormfieldOptionsTest.php @@ -47,21 +47,21 @@ class FullCrudFormfieldOptionsTest extends TestCase @section('title', __('{$this->lang_name}.list')) @section('content') -

+
@can('create', new {$this->full_model_name}) {{ link_to_route('{$this->table_name}.create', __('{$this->lang_name}.create'), [], ['class' => 'btn btn-success']) }} @endcan
- {{ __('{$this->lang_name}.list') }} - {{ __('app.total') }} : {{ \${$this->collection_model_var_name}->total() }} {{ __('{$this->lang_name}.{$this->lang_name}') }} -

+

{{ __('{$this->lang_name}.list') }} {{ __('app.total') }} : {{ \${$this->collection_model_var_name}->total() }} {{ __('{$this->lang_name}.{$this->lang_name}') }}

+
+
{{ Form::open(['method' => 'get', 'class' => 'form-inline']) }} - {!! FormField::text('q', ['label' => __('{$this->lang_name}.search'), 'placeholder' => __('{$this->lang_name}.search_text'), 'class' => 'mr-sm-2']) !!} + {!! FormField::text('q', ['label' => __('{$this->lang_name}.search'), 'placeholder' => __('{$this->lang_name}.search_text'), 'class' => 'mx-sm-2']) !!} {{ Form::submit(__('{$this->lang_name}.search'), ['class' => 'btn btn-secondary']) }} {{ link_to_route('{$this->table_name}.index', __('app.reset'), [], ['class' => 'btn btn-link']) }} {{ Form::close() }} diff --git a/tests/CommandOptions/SimpleCrudFormfieldOptionsTest.php b/tests/CommandOptions/SimpleCrudFormfieldOptionsTest.php index 98717c4..20c2931 100644 --- a/tests/CommandOptions/SimpleCrudFormfieldOptionsTest.php +++ b/tests/CommandOptions/SimpleCrudFormfieldOptionsTest.php @@ -45,21 +45,21 @@ class SimpleCrudFormfieldOptionsTest extends TestCase @section('title', __('{$this->lang_name}.list')) @section('content') -

+
@can('create', new {$this->full_model_name}) {{ link_to_route('{$this->table_name}.index', __('{$this->lang_name}.create'), ['action' => 'create'], ['class' => 'btn btn-success']) }} @endcan
- {{ __('{$this->lang_name}.list') }} - {{ __('app.total') }} : {{ \${$this->collection_model_var_name}->total() }} {{ __('{$this->lang_name}.{$this->lang_name}') }} -

+

{{ __('{$this->lang_name}.list') }} {{ __('app.total') }} : {{ \${$this->collection_model_var_name}->total() }} {{ __('{$this->lang_name}.{$this->lang_name}') }}

+
+
{{ Form::open(['method' => 'get', 'class' => 'form-inline']) }} - {!! FormField::text('q', ['label' => __('{$this->lang_name}.search'), 'placeholder' => __('{$this->lang_name}.search_text'), 'class' => 'mr-sm-2']) !!} + {!! FormField::text('q', ['label' => __('{$this->lang_name}.search'), 'placeholder' => __('{$this->lang_name}.search_text'), 'class' => 'mx-sm-2']) !!} {{ Form::submit(__('{$this->lang_name}.search'), ['class' => 'btn btn-secondary']) }} {{ link_to_route('{$this->table_name}.index', __('app.reset'), [], ['class' => 'btn btn-link']) }} {{ Form::close() }} diff --git a/tests/Generators/Simple/ViewsGeneratorTest.php b/tests/Generators/Simple/ViewsGeneratorTest.php index fdeb664..e1a0c3f 100644 --- a/tests/Generators/Simple/ViewsGeneratorTest.php +++ b/tests/Generators/Simple/ViewsGeneratorTest.php @@ -19,23 +19,23 @@ class ViewsGeneratorTest extends TestCase @section('title', __('{$this->lang_name}.list')) @section('content') -

+
- {{ __('{$this->lang_name}.list') }} - {{ __('app.total') }} : {{ \${$this->collection_model_var_name}->total() }} {{ __('{$this->lang_name}.{$this->lang_name}') }} -

+

{{ __('{$this->lang_name}.list') }} {{ __('app.total') }} : {{ \${$this->collection_model_var_name}->total() }} {{ __('{$this->lang_name}.{$this->lang_name}') }}

+
+
- - lang_name}.search_text') }}\" name=\"q\" type=\"text\" id=\"q\" class=\"form-control mr-sm-2\" value=\"{{ request('q') }}\"> + + lang_name}.search_text') }}\" name=\"q\" type=\"text\" id=\"q\" class=\"form-control mx-sm-2\" value=\"{{ request('q') }}\">
lang_name}.search') }}\" class=\"btn btn-secondary\"> table_name}.index') }}\" class=\"btn btn-link\">{{ __('app.reset') }} diff --git a/tests/Generators/ViewsGeneratorTest.php b/tests/Generators/ViewsGeneratorTest.php index c860169..4ce8ebf 100644 --- a/tests/Generators/ViewsGeneratorTest.php +++ b/tests/Generators/ViewsGeneratorTest.php @@ -19,23 +19,23 @@ class ViewsGeneratorTest extends TestCase @section('title', __('{$this->lang_name}.list')) @section('content') -

+
- {{ __('{$this->lang_name}.list') }} - {{ __('app.total') }} : {{ \${$this->collection_model_var_name}->total() }} {{ __('{$this->lang_name}.{$this->lang_name}') }} -

+

{{ __('{$this->lang_name}.list') }} {{ __('app.total') }} : {{ \${$this->collection_model_var_name}->total() }} {{ __('{$this->lang_name}.{$this->lang_name}') }}

+
+
- - lang_name}.search_text') }}\" name=\"q\" type=\"text\" id=\"q\" class=\"form-control mr-sm-2\" value=\"{{ request('q') }}\"> + + lang_name}.search_text') }}\" name=\"q\" type=\"text\" id=\"q\" class=\"form-control mx-sm-2\" value=\"{{ request('q') }}\">
lang_name}.search') }}\" class=\"btn btn-secondary\"> table_name}.index') }}\" class=\"btn btn-link\">{{ __('app.reset') }}