Merge pull request #997 from openclassify/muammertop

Currencies make it tag and Table footer overrides
This commit is contained in:
Fatih Alp 2021-03-19 15:33:27 +03:00 committed by GitHub
commit 6bf4949b20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 67 additions and 0 deletions

View File

@ -173,6 +173,7 @@ return [
'type' => 'anomaly.field_type.checkboxes',
'required' => true,
'config' => [
'mode' => 'tags',
'default_value' => function () {
return [config('streams::currencies.default')];
},

View File

@ -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>

View File

@ -27,6 +27,10 @@ class DefaultadminThemeServiceProvider extends AddonServiceProvider
],
];
protected $overrides = [
'streams::table/partials/footer' => 'visiosoft.theme.defaultadmin::table/partials/footer'
];
public function register()
{
AbstractPaginator::$defaultView = 'visiosoft.theme.defaultadmin::pagination/bootstrap-4';