Browse Source

Correct table-responsive class in index stubs

tags/1.2.9
Nafies Luthfi 7 years ago
parent
commit
7ca5e53121
  1. 4
      src/stubs/resources/views/full/index-formfield.stub
  2. 4
      src/stubs/resources/views/full/index.stub
  3. 4
      src/stubs/resources/views/simple/index-formfield.stub
  4. 4
      src/stubs/resources/views/simple/index.stub
  5. 4
      tests/CommandOptions/FullCrudFormfieldOptionsTest.php
  6. 4
      tests/CommandOptions/SimpleCrudFormfieldOptionsTest.php
  7. 4
      tests/Generators/Simple/ViewsGeneratorTest.php
  8. 4
      tests/Generators/ViewsGeneratorTest.php

4
src/stubs/resources/views/full/index-formfield.stub

@ -14,7 +14,7 @@
<div class="row">
<div class="col-md-12">
<div class="card table-responsive">
<div class="card">
<div class="card-header">
{{ Form::open(['method' => 'get', 'class' => 'form-inline']) }}
{!! FormField::text('q', ['label' => __('master.search'), 'placeholder' => __('master.search_text'), 'class' => 'mx-sm-2']) !!}
@ -22,7 +22,7 @@
{{ link_to_route('masters.index', __('app.reset'), [], ['class' => 'btn btn-link']) }}
{{ Form::close() }}
</div>
<table class="table table-sm">
<table class="table table-sm table-responsive-sm">
<thead>
<tr>
<th class="text-center">{{ __('app.table_no') }}</th>

4
src/stubs/resources/views/full/index.stub

@ -14,7 +14,7 @@
<div class="row">
<div class="col-md-12">
<div class="card table-responsive">
<div class="card">
<div class="card-header">
<form method="GET" action="" accept-charset="UTF-8" class="form-inline">
<div class="form-group">
@ -25,7 +25,7 @@
<a href="{{ route('masters.index') }}" class="btn btn-link">{{ __('app.reset') }}</a>
</form>
</div>
<table class="table table-sm">
<table class="table table-sm table-responsive-sm">
<thead>
<tr>
<th class="text-center">{{ __('app.table_no') }}</th>

4
src/stubs/resources/views/simple/index-formfield.stub

@ -14,7 +14,7 @@
<div class="row">
<div class="col-md-8">
<div class="card table-responsive">
<div class="card">
<div class="card-header">
{{ Form::open(['method' => 'get', 'class' => 'form-inline']) }}
{!! FormField::text('q', ['label' => __('master.search'), 'placeholder' => __('master.search_text'), 'class' => 'mx-sm-2']) !!}
@ -22,7 +22,7 @@
{{ link_to_route('masters.index', __('app.reset'), [], ['class' => 'btn btn-link']) }}
{{ Form::close() }}
</div>
<table class="table table-sm">
<table class="table table-sm table-responsive-sm">
<thead>
<tr>
<th class="text-center">{{ __('app.table_no') }}</th>

4
src/stubs/resources/views/simple/index.stub

@ -14,7 +14,7 @@
<div class="row">
<div class="col-md-8">
<div class="card table-responsive">
<div class="card">
<div class="card-header">
<form method="GET" action="" accept-charset="UTF-8" class="form-inline">
<div class="form-group">
@ -25,7 +25,7 @@
<a href="{{ route('masters.index') }}" class="btn btn-link">{{ __('app.reset') }}</a>
</form>
</div>
<table class="table table-sm">
<table class="table table-sm table-responsive-sm">
<thead>
<tr>
<th class="text-center">{{ __('app.table_no') }}</th>

4
tests/CommandOptions/FullCrudFormfieldOptionsTest.php

@ -58,7 +58,7 @@ class FullCrudFormfieldOptionsTest extends TestCase
<div class=\"row\">
<div class=\"col-md-12\">
<div class=\"card table-responsive\">
<div class=\"card\">
<div class=\"card-header\">
{{ Form::open(['method' => 'get', 'class' => 'form-inline']) }}
{!! FormField::text('q', ['label' => __('{$this->lang_name}.search'), 'placeholder' => __('{$this->lang_name}.search_text'), 'class' => 'mx-sm-2']) !!}
@ -66,7 +66,7 @@ class FullCrudFormfieldOptionsTest extends TestCase
{{ link_to_route('{$this->table_name}.index', __('app.reset'), [], ['class' => 'btn btn-link']) }}
{{ Form::close() }}
</div>
<table class=\"table table-sm\">
<table class=\"table table-sm table-responsive-sm\">
<thead>
<tr>
<th class=\"text-center\">{{ __('app.table_no') }}</th>

4
tests/CommandOptions/SimpleCrudFormfieldOptionsTest.php

@ -56,7 +56,7 @@ class SimpleCrudFormfieldOptionsTest extends TestCase
<div class=\"row\">
<div class=\"col-md-8\">
<div class=\"card table-responsive\">
<div class=\"card\">
<div class=\"card-header\">
{{ Form::open(['method' => 'get', 'class' => 'form-inline']) }}
{!! FormField::text('q', ['label' => __('{$this->lang_name}.search'), 'placeholder' => __('{$this->lang_name}.search_text'), 'class' => 'mx-sm-2']) !!}
@ -64,7 +64,7 @@ class SimpleCrudFormfieldOptionsTest extends TestCase
{{ link_to_route('{$this->table_name}.index', __('app.reset'), [], ['class' => 'btn btn-link']) }}
{{ Form::close() }}
</div>
<table class=\"table table-sm\">
<table class=\"table table-sm table-responsive-sm\">
<thead>
<tr>
<th class=\"text-center\">{{ __('app.table_no') }}</th>

4
tests/Generators/Simple/ViewsGeneratorTest.php

@ -30,7 +30,7 @@ class ViewsGeneratorTest extends TestCase
<div class=\"row\">
<div class=\"col-md-8\">
<div class=\"card table-responsive\">
<div class=\"card\">
<div class=\"card-header\">
<form method=\"GET\" action=\"\" accept-charset=\"UTF-8\" class=\"form-inline\">
<div class=\"form-group\">
@ -41,7 +41,7 @@ class ViewsGeneratorTest extends TestCase
<a href=\"{{ route('{$this->table_name}.index') }}\" class=\"btn btn-link\">{{ __('app.reset') }}</a>
</form>
</div>
<table class=\"table table-sm\">
<table class=\"table table-sm table-responsive-sm\">
<thead>
<tr>
<th class=\"text-center\">{{ __('app.table_no') }}</th>

4
tests/Generators/ViewsGeneratorTest.php

@ -30,7 +30,7 @@ class ViewsGeneratorTest extends TestCase
<div class=\"row\">
<div class=\"col-md-12\">
<div class=\"card table-responsive\">
<div class=\"card\">
<div class=\"card-header\">
<form method=\"GET\" action=\"\" accept-charset=\"UTF-8\" class=\"form-inline\">
<div class=\"form-group\">
@ -41,7 +41,7 @@ class ViewsGeneratorTest extends TestCase
<a href=\"{{ route('{$this->table_name}.index') }}\" class=\"btn btn-link\">{{ __('app.reset') }}</a>
</form>
</div>
<table class=\"table table-sm\">
<table class=\"table table-sm table-responsive-sm\">
<thead>
<tr>
<th class=\"text-center\">{{ __('app.table_no') }}</th>

Loading…
Cancel
Save