Layout tweak for search field

This commit is contained in:
Götz 2019-05-07 14:04:16 +02:00
parent a153054981
commit 4df509e338
3 changed files with 16 additions and 5 deletions

View File

@ -127,7 +127,11 @@
/*.dataTables_length, .dataTables_info, .dataTables_paginate {*/ /*.dataTables_length, .dataTables_info, .dataTables_paginate {*/
/*!*visibility: hidden*!*/ /*!*visibility: hidden*!*/
/*}*/ /*}*/
@media (max-width: 480px) {
.table-search-field {
width: 100% !important;
}
}
/* ------------------------------------------------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------------------------------------------------ */
/* -- Multiple User deletion Custom checkbox -- */ /* -- Multiple User deletion Custom checkbox -- */

View File

@ -5,9 +5,16 @@ $(document).ready(function () {
// if ($(TABLE_CLASS)) { // if ($(TABLE_CLASS)) {
const data_table = $(TABLE_CLASS).DataTable({ const data_table = $(TABLE_CLASS).DataTable({
"lengthMenu": [[-1], ["All"]], "lengthMenu": [[-1], ["All"]],
"dom": 'it', "bPaginate": true,
"pageLength": 10,
// "sPaginationType": "custom",
"dom": 'itlp',
// "paginate": {
// next: '<i class="fas fa-arrow-alt-circle-right"></i>',
// previous: '<i class="fas fa-arrow-alt-circle-left"></i>'
// },
rowReorder: { rowReorder: {
selector: 'td:nth-child(2)' selector: true,
}, },
responsive: true, responsive: true,
}); });

View File

@ -21,7 +21,7 @@
{% endmacro %} {% endmacro %}
{% macro get_user_table(realm, users) -%} {% macro get_user_table(realm, users) -%}
<div class="form-group w-25 float-right"> <div class="table-search-field form-group w-25 float-right">
<input type="text" <input type="text"
class="form-control" class="form-control"
id="data-table-search-input"> id="data-table-search-input">