mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
Merge pull request #997 from openclassify/muammertop
Currencies make it tag and Table footer overrides
This commit is contained in:
commit
6bf4949b20
@ -173,6 +173,7 @@ return [
|
|||||||
'type' => 'anomaly.field_type.checkboxes',
|
'type' => 'anomaly.field_type.checkboxes',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'config' => [
|
'config' => [
|
||||||
|
'mode' => 'tags',
|
||||||
'default_value' => function () {
|
'default_value' => function () {
|
||||||
return [config('streams::currencies.default')];
|
return [config('streams::currencies.default')];
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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