landed IP address ban editing
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@
|
||||
<div class="bg-gray-50 p-6 rounded-lg">
|
||||
<div class="space-y-4">
|
||||
{{ range __dialog.Fields }}
|
||||
{{ if .Type == "text" || .Type == "ams_id" || .Type == "email" }}
|
||||
{{ if .Type == "text" || .Type == "ams_id" || .Type == "email" || .Type == "ipaddress" }}
|
||||
<div class="flex items-center">
|
||||
<label for="{{ .Name }}"
|
||||
class="w-64 text-right pr-4 {{ if .Disabled }}text-gray-400{{ else }}text-black{{ end }} text-sm">
|
||||
|
||||
@@ -21,6 +21,20 @@
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{{ if isset(errorMessage) }}
|
||||
<!-- Error Message Banner -->
|
||||
<div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded mb-6" id="error-banner">
|
||||
<div class="flex items-center">
|
||||
<div class="flex-shrink-0">
|
||||
<span class="text-red-500 text-xl">⚠️</span>
|
||||
</div>
|
||||
<div class="ml-3">
|
||||
<p class="text-sm font-medium" id="error-message">{{ CapitalizeString(errorMessage) }}.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<!-- Warning Box -->
|
||||
<div class="bg-red-50 border-l-4 border-red-400 p-4 mb-6 rounded max-w-6xl">
|
||||
<div class="flex items-start">
|
||||
@@ -72,10 +86,10 @@
|
||||
{{ end }}
|
||||
</td>
|
||||
<td class="px-4 py-3 text-sm font-mono {{ if ipb.Enable }}text-gray-800{{ else }}text-gray-500{{ end }}">
|
||||
{{ IPtoString(ipb.AddressLow, ipb.AddressHigh) }}
|
||||
{{ IPtoString(ipb.AddressLow, ipb.AddressHigh, ipv4[i]) }}
|
||||
</td>
|
||||
<td class="px-4 py-3 text-sm font-mono {{ if ipb.Enable }}text-gray-600{{ else }}text-gray-400{{ end }}">
|
||||
{{ IPtoString(ipb.MaskLow, ipb.MaskHigh) }}
|
||||
{{ IPtoString(ipb.MaskLow, ipb.MaskHigh, ipv4[i]) }}
|
||||
</td>
|
||||
<td class="px-4 py-3 text-sm {{ if ipb.Enable }}text-gray-700{{ else }}text-gray-500{{ end }} whitespace-nowrap">
|
||||
{{ if isset(ipb.Expires) }}
|
||||
|
||||
Reference in New Issue
Block a user