mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 07:16:06 -06:00
#3460 Make "show all" 1000 record
This commit is contained in:
parent
33aec0f5d4
commit
745ceb28a5
@ -0,0 +1,62 @@
|
|||||||
|
<tfoot>
|
||||||
|
{% if table.actions|length or table.data.pagination.links|length %}
|
||||||
|
<tr>
|
||||||
|
<th colspan="100%" style="padding: 10px;">
|
||||||
|
|
||||||
|
<div class="pull-left actions table__actions">
|
||||||
|
{{ buttons(table.actions)|raw }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% if table.data.pagination.links|length %}
|
||||||
|
<div class="pull-right">
|
||||||
|
|
||||||
|
<select onchange="window.location=this.value;"
|
||||||
|
class="custom-select table-limit">
|
||||||
|
<option {{ table.options.limit == 5 ? 'selected' }}
|
||||||
|
value="{{ url_current() }}?{{ http_build_query({(table.options.prefix ~ 'limit'): 5} + request_query()) }}">
|
||||||
|
5 {{ trans('streams::message.results') }}</option>
|
||||||
|
<option {{ table.options.limit == 10 ? 'selected' }}
|
||||||
|
value="{{ url_current() }}?{{ http_build_query({(table.options.prefix ~ 'limit'): 10} + request_query()) }}">
|
||||||
|
10 {{ trans('streams::message.results') }}</option>
|
||||||
|
<option {{ table.options.limit == 15 ? 'selected' }}
|
||||||
|
value="{{ url_current() }}?{{ http_build_query({(table.options.prefix ~ 'limit'): 15} + request_query()) }}">
|
||||||
|
15 {{ trans('streams::message.results') }}</option>
|
||||||
|
<option {{ table.options.limit == 25 ? 'selected' }}
|
||||||
|
value="{{ url_current() }}?{{ http_build_query({(table.options.prefix ~ 'limit'): 25} + request_query()) }}">
|
||||||
|
25 {{ trans('streams::message.results') }}</option>
|
||||||
|
<option {{ table.options.limit == 50 ? 'selected' }}
|
||||||
|
value="{{ url_current() }}?{{ http_build_query({(table.options.prefix ~ 'limit'): 50} + request_query()) }}">
|
||||||
|
50 {{ trans('streams::message.results') }}</option>
|
||||||
|
<option {{ table.options.limit == 75 ? 'selected' }}
|
||||||
|
value="{{ url_current() }}?{{ http_build_query({(table.options.prefix ~ 'limit'): 75} + request_query()) }}">
|
||||||
|
75 {{ trans('streams::message.results') }}</option>
|
||||||
|
<option {{ table.options.limit == 100 ? 'selected' }}
|
||||||
|
value="{{ url_current() }}?{{ http_build_query({(table.options.prefix ~ 'limit'): 100} + request_query()) }}">
|
||||||
|
100 {{ trans('streams::message.results') }}</option>
|
||||||
|
<option {{ table.options.limit == 150 ? 'selected' }}
|
||||||
|
value="{{ url_current() }}?{{ http_build_query({(table.options.prefix ~ 'limit'): 150} + request_query()) }}">
|
||||||
|
150 {{ trans('streams::message.results') }}</option>
|
||||||
|
<option {{ table.options.limit == 1000 ? 'selected' }}
|
||||||
|
value="{{ url_current() }}?{{ http_build_query({(table.options.prefix ~ 'limit'): 1000} + request_query()) }}">
|
||||||
|
{{ trans('streams::message.show_all') }}</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
{{ table.data.pagination.links|raw }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<div style="clear: both;"></div>
|
||||||
|
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
{% endif %}
|
||||||
|
{% if table.options.total_results %}
|
||||||
|
<tr>
|
||||||
|
<td colspan="100%">
|
||||||
|
<small class="text-muted pull-right">
|
||||||
|
{{ table.options.total_results }} {{ trans('streams::message.results') }}
|
||||||
|
</small>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endif %}
|
||||||
|
</tfoot>
|
||||||
@ -27,6 +27,10 @@ class DefaultadminThemeServiceProvider extends AddonServiceProvider
|
|||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
protected $overrides = [
|
||||||
|
'streams::table/partials/footer' => 'visiosoft.theme.defaultadmin::table/partials/footer'
|
||||||
|
];
|
||||||
|
|
||||||
public function register()
|
public function register()
|
||||||
{
|
{
|
||||||
AbstractPaginator::$defaultView = 'visiosoft.theme.defaultadmin::pagination/bootstrap-4';
|
AbstractPaginator::$defaultView = 'visiosoft.theme.defaultadmin::pagination/bootstrap-4';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user