diff --git a/dns/templates/dns/addDeleteDNSRecordsCloudFlare.html b/dns/templates/dns/addDeleteDNSRecordsCloudFlare.html index 3531d204f..0f89162ff 100644 --- a/dns/templates/dns/addDeleteDNSRecordsCloudFlare.html +++ b/dns/templates/dns/addDeleteDNSRecordsCloudFlare.html @@ -565,6 +565,14 @@ } .inline-select { min-width: 90px; cursor: pointer; } .inline-number { width: 70px; max-width: 80px; } + .sortable-th { cursor: pointer; user-select: none; white-space: nowrap; } + .sortable-th:hover { background: var(--bg-hover, #f0f1ff); } + .sort-icon { margin-left: 4px; opacity: 0.7; font-size: 0.75rem; } + .dns-search-wrap { position: relative; max-width: 400px; } + .dns-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; } + .dns-search-input { padding-left: 36px; padding-right: 36px; border-radius: 8px; border: 1px solid var(--border-primary, #e2e8f0); } + .dns-search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #94a3b8; padding: 4px; } + .dns-search-clear:hover { color: #64748b; }
@@ -898,6 +906,12 @@ {% trans "DNS Records" %} +
+ + + +
+
Loading DNS records...
@@ -906,20 +920,36 @@ No DNS records found.
+
+ {% trans "No records match your search." %} +
+ - - - - - - + + + + + + - +
{% trans "Name" %}{% trans "Type" %}{% trans "TTL" %}{% trans "Value" %}{% trans "Priority" %}{% trans "Proxy" %} + {% trans "Name" %} + + {% trans "Type" %} + + {% trans "TTL" %} + + {% trans "Value" %} + + {% trans "Priority" %} + + {% trans "Proxy" %} + {% trans "Actions" %}
diff --git a/public/static/dns/dns.js b/public/static/dns/dns.js index ccd15fdde..2a9790505 100644 --- a/public/static/dns/dns.js +++ b/public/static/dns/dns.js @@ -1158,6 +1158,17 @@ app.controller('addModifyDNSRecordsCloudFlare', function ($scope, $http, $window } return list; }; + $scope.dnsSearchFilter = ''; + $scope.sortColumn = 'name'; + $scope.sortReverse = false; + $scope.setSort = function (col) { + if ($scope.sortColumn === col) { + $scope.sortReverse = !$scope.sortReverse; + } else { + $scope.sortColumn = col; + $scope.sortReverse = false; + } + }; $scope.editingRecordId = null; $scope.editingField = null; $scope.isEditing = function (record, field) { diff --git a/static/dns/dns.js b/static/dns/dns.js index b122605ff..6fec9b07b 100644 --- a/static/dns/dns.js +++ b/static/dns/dns.js @@ -1162,6 +1162,17 @@ app.controller('addModifyDNSRecordsCloudFlare', function ($scope, $http, $window } return list; }; + $scope.dnsSearchFilter = ''; + $scope.sortColumn = 'name'; + $scope.sortReverse = false; + $scope.setSort = function (col) { + if ($scope.sortColumn === col) { + $scope.sortReverse = !$scope.sortReverse; + } else { + $scope.sortColumn = col; + $scope.sortReverse = false; + } + }; $scope.editingRecordId = null; $scope.editingField = null; $scope.isEditing = function (record, field) {