Browse Source

Fixed reset button to use lang

tags/1.2.2
Nafies Luthfi 7 years ago
parent
commit
b4e6e89956
  1. 2
      src/stubs/resources/views/full/index.stub
  2. 2
      src/stubs/resources/views/simple/index.stub
  3. 2
      tests/Generators/Simple/ViewsGeneratorTest.php
  4. 2
      tests/Generators/ViewsGeneratorTest.php

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

@ -22,7 +22,7 @@
<input placeholder="{{ __('master.search_text') }}" name="q" type="text" id="q" class="form-control input-sm" value="{{ request('q') }}">
</div>
<input type="submit" value="{{ __('master.search') }}" class="btn btn-sm">
<a href="{{ route('masters.index') }}">Reset</a>
<a href="{{ route('masters.index') }}">{{ __('app.reset') }}</a>
</form>
</div>
<table class="table table-condensed">

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

@ -22,7 +22,7 @@
<input placeholder="{{ __('master.search_text') }}" name="q" type="text" id="q" class="form-control input-sm" value="{{ request('q') }}">
</div>
<input type="submit" value="{{ __('master.search') }}" class="btn btn-sm">
<a href="{{ route('masters.index') }}">Reset</a>
<a href="{{ route('masters.index') }}">{{ __('app.reset') }}</a>
</form>
</div>
<table class="table table-condensed">

2
tests/Generators/Simple/ViewsGeneratorTest.php

@ -38,7 +38,7 @@ class ViewsGeneratorTest extends TestCase
<input placeholder=\"{{ __('{$this->lang_name}.search_text') }}\" name=\"q\" type=\"text\" id=\"q\" class=\"form-control input-sm\" value=\"{{ request('q') }}\">
</div>
<input type=\"submit\" value=\"{{ __('{$this->lang_name}.search') }}\" class=\"btn btn-sm\">
<a href=\"{{ route('{$this->table_name}.index') }}\">Reset</a>
<a href=\"{{ route('{$this->table_name}.index') }}\">{{ __('app.reset') }}</a>
</form>
</div>
<table class=\"table table-condensed\">

2
tests/Generators/ViewsGeneratorTest.php

@ -38,7 +38,7 @@ class ViewsGeneratorTest extends TestCase
<input placeholder=\"{{ __('{$this->lang_name}.search_text') }}\" name=\"q\" type=\"text\" id=\"q\" class=\"form-control input-sm\" value=\"{{ request('q') }}\">
</div>
<input type=\"submit\" value=\"{{ __('{$this->lang_name}.search') }}\" class=\"btn btn-sm\">
<a href=\"{{ route('{$this->table_name}.index') }}\">Reset</a>
<a href=\"{{ route('{$this->table_name}.index') }}\">{{ __('app.reset') }}</a>
</form>
</div>
<table class=\"table table-condensed\">

Loading…
Cancel
Save