mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-01 12:48:08 +09:00
Make tables sortable in the admin panel (#1406)
This commit is contained in:
1 parent
b06d6b08f4
commit
5d862a7f18
19 files changed
+35
-26
No files matched your search
Generated
+6
@@ -12866,6 +12866,11 @@
|
||||
"websocket-driver": "^0.7.4"
|
||||
}
|
||||
},
|
||||
"node_modules/sortable-tablesort": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/sortable-tablesort/-/sortable-tablesort-2.2.0.tgz",
|
||||
"integrity": "sha512-ScmWIQnYWCSUOPl8Kv/oQMf/h5RL68YWFKm9p86YWrVvv8v+o644b6ixFxagrobkh18M8JKYFS9uHh8a5MLJnQ=="
|
||||
},
|
||||
"node_modules/source-list-map": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz",
|
||||
@@ -15177,6 +15182,7 @@
|
||||
"jquery": "^3.7.0",
|
||||
"litepicker": "^2.0.12",
|
||||
"select2": "^4.0.13",
|
||||
"sortable-tablesort": "^2.2.0",
|
||||
"tom-select": "^2.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,13 +13,13 @@
|
||||
</div>
|
||||
|
||||
{% include 'partial_search.html.twig' %}
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-1">
|
||||
<th class="w-1 no-sort">
|
||||
<input class="form-check-input m-0 align-middle batch-delete-master-checkbox" type="checkbox">
|
||||
</th>
|
||||
<th class="w-1"></th>
|
||||
<th class="w-1 no-sort"></th>
|
||||
<th>{{ 'User'|trans }}</th>
|
||||
<th>{{ 'Message'|trans }}</th>
|
||||
<th>{{ 'IP'|trans }}</th>
|
||||
|
||||
@@ -200,10 +200,10 @@
|
||||
<div class="tab-pane fade show active" id="tab-index" role="tabpanel">
|
||||
{% include 'partial_search.html.twig' %}
|
||||
<div class="table-responsive">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-1">
|
||||
<th class="w-1 no-sort">
|
||||
<input class="form-check-input m-0 align-middle batch-delete-master-checkbox" type="checkbox">
|
||||
</th>
|
||||
<th>{{ 'Name'|trans }}</th>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade show active" id="tab-index" role="tabpanel">
|
||||
{% include 'partial_search.html.twig' %}
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ 'Title'|trans }}</th>
|
||||
|
||||
@@ -199,10 +199,10 @@
|
||||
<div class="tab-pane show active" id="tab-index" role="tabpanel">
|
||||
{% include 'partial_search.html.twig' %}
|
||||
<div class="table-responsive">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-1">
|
||||
<th class="w-1 no-sort">
|
||||
<input type="checkbox" class="form-check-input m-0 align-middle batch-delete-master-checkbox">
|
||||
</th>
|
||||
<th class="w-1">#</th>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<div class="card">
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade show active" id="tab-index" role="tabpanel">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-1">
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade show active" id="tab-index" role="tabpanel">
|
||||
{% include 'partial_search.html.twig' %}
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ 'Title'|trans }}</th>
|
||||
|
||||
@@ -25,10 +25,10 @@
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade show active" id="tab-index" role="tabpanel">
|
||||
{% include 'partial_search.html.twig' %}
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-1">
|
||||
<th class="w-1 no-sort">
|
||||
<input type="checkbox" class="form-check-input m-0 align-middle batch-delete-master-checkbox">
|
||||
</th>
|
||||
<th class="w-1">#</th>
|
||||
|
||||
@@ -173,10 +173,10 @@
|
||||
<div class="tab-pane fade show active" id="tab-index" role="tabpanel" aria-labelledby="index-tab">
|
||||
{% include 'partial_search.html.twig' %}
|
||||
<div class="table-responsive">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-1">
|
||||
<th class="w-1 no-sort">
|
||||
<input class="form-check-input m-0 align-middle batch-delete-master-checkbox" type="checkbox">
|
||||
</th>
|
||||
<th class="w-1">#</th>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<div class="table-responsive">
|
||||
<form method="post" action="{{ 'api/admin/product/update_priority'|link }}" class="api-form" data-api-reload="1">
|
||||
<input type="hidden" name="CSRFToken" value="{{ CSRFToken }}"/>
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ 'Type'|trans }}</th>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<p class="text-muted">{{ 'Setup domain pricing and allowed operations. Assign specific domain registrars for each Top Level Domain (TLD)'|trans }}</p>
|
||||
</div>
|
||||
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ 'TLD'|trans }}</th>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<div class="card-body">
|
||||
<h5>{{ 'Servers'|trans }}</h5>
|
||||
</div>
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ 'Title'|trans }}</th>
|
||||
@@ -90,7 +90,7 @@
|
||||
<div class="card-body">
|
||||
<h5>{{ 'Hosting plans'|trans }}</h5>
|
||||
</div>
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>{{ 'Title'|trans }}</td>
|
||||
|
||||
@@ -51,12 +51,12 @@
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade show active" id="tab-index" role="tabpanel">
|
||||
{% include 'partial_search.html.twig' %}
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ 'Title'|trans }}</th>
|
||||
<th class="text-center">{{ 'Category'|trans }}</th>
|
||||
<th class="w-1"></th>
|
||||
<th class="w-1 no-sort"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -73,10 +73,10 @@
|
||||
</div>
|
||||
|
||||
{% include 'partial_search.html.twig' %}
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-1">
|
||||
<th class="w-1 no-sort">
|
||||
<input type="checkbox" class="form-check-input m-0 align-middle batch-delete-master-checkbox">
|
||||
</th>
|
||||
<th>{{ 'Subject'|trans }}</th>
|
||||
|
||||
@@ -182,10 +182,10 @@
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade show active" id="tab-index" role="tabpanel" aria-labelledby="index-tab">
|
||||
{% include 'partial_search.html.twig' %}
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-1">
|
||||
<th class="w-1 no-sort">
|
||||
<input class="form-check-input m-0 align-middle batch-delete-master-checkbox" type="checkbox">
|
||||
</th>
|
||||
<th>{{ 'Client'|trans }}</th>
|
||||
|
||||
@@ -12,6 +12,7 @@ import './js/datepicker'
|
||||
import ApexCharts from 'apexcharts';
|
||||
import './js/ui/theme_settings';
|
||||
import './js/fossbilling';
|
||||
import 'sortable-tablesort/sortable.min.js';
|
||||
|
||||
globalThis.ApexCharts = ApexCharts;
|
||||
globalThis.$ = globalThis.jQuery = $;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
@import "flags";
|
||||
@import "~tom-select/dist/css/tom-select.bootstrap5.css";
|
||||
@import "theme_settings";
|
||||
@import 'sortable-tablesort/sortable-base.css';
|
||||
|
||||
.page {
|
||||
min-height: calc(100vh - 2px);
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
{% endif %}
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap">
|
||||
<table class="table card-table table-vcenter table-striped text-nowrap sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th class="no-sort"></th>
|
||||
<th>{{ 'Extension'|trans }}</th>
|
||||
<th>{{ 'Description'|trans }}</th>
|
||||
<th class="w-1"></th>
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
"jquery": "^3.7.0",
|
||||
"litepicker": "^2.0.12",
|
||||
"select2": "^4.0.13",
|
||||
"sortable-tablesort": "^2.2.0",
|
||||
"tom-select": "^2.2.2"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user