mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
css fixes, docs
This commit is contained in:
@@ -1253,12 +1253,16 @@ input[readonly] {
|
||||
}
|
||||
|
||||
.filter-group {
|
||||
flex: 1 100px;
|
||||
box-sizing: border-box; /* Ensure padding and borders are included in the width */
|
||||
padding: 1em;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.filter-dropdown
|
||||
{
|
||||
width:7em
|
||||
}
|
||||
|
||||
.modal-header .close
|
||||
{
|
||||
display: flex;
|
||||
|
||||
@@ -446,7 +446,7 @@ function initFilters() {
|
||||
// Server side component
|
||||
function renderFilters(customData) {
|
||||
|
||||
console.log(JSON.stringify(customData));
|
||||
// console.log(JSON.stringify(customData));
|
||||
|
||||
// Load filter data from the JSON file
|
||||
$.ajax({
|
||||
@@ -455,7 +455,7 @@ function renderFilters(customData) {
|
||||
type: 'POST',
|
||||
dataType: 'html',
|
||||
success: function(response) {
|
||||
console.log(response);
|
||||
// console.log(response);
|
||||
|
||||
$('#columnFilters').html(response); // Replace container content with fetched HTML
|
||||
$('#columnFilters').removeClass('hidden'); // Show the filters container
|
||||
|
||||
@@ -17,7 +17,7 @@ function renderFilterDropdown($headerKey, $columnName, $values) {
|
||||
|
||||
// Generate the dropdown HTML
|
||||
return '
|
||||
<div class="filter-group">
|
||||
<div class="filter-group input-group">
|
||||
<label for="filter_' . htmlspecialchars($columnName) . '">' . lang($headerKey) . '</label>
|
||||
<select id="filter_' . htmlspecialchars($columnName) . '" class="filter-dropdown" data-column="' . htmlspecialchars($columnName) . '">
|
||||
' . $optionsHtml . '
|
||||
|
||||
@@ -8,6 +8,7 @@ This Plugin is using awesome [asusrouter](https://github.com/Vaskivskyi/asusrout
|
||||
|
||||
- Enable the `ASUSWRT` plugin
|
||||
- Head to **Settings** > **AsusWRT device import** to adjust the default values.
|
||||
- If you have troubles configuring the plugin set the `LOG_LEVEL='debug'` to get a more detailed error message.
|
||||
|
||||
### Notes
|
||||
|
||||
|
||||
@@ -465,7 +465,7 @@
|
||||
"description": [
|
||||
{
|
||||
"language_code": "en_us",
|
||||
"string": "Which column filters should be displayed in the main Devices screen."
|
||||
"string": "Which column filters should be displayed in the main Devices screen. Remove all to hide the Filters section."
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user