dialog loading, validation, more logic in forms, IP address banning
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
</p>
|
||||
<div class="flex justify-center gap-4 mt-6">
|
||||
<button type="button" class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded font-medium transition-colors"
|
||||
onclick="window.location.assign('/newacct2')">I Accept</button>
|
||||
onclick="window.location.assign('/newacct2?tgt={{ target | url }}')">I Accept</button>
|
||||
<button type="button" class="bg-red-600 hover:bg-red-700 text-white px-6 py-2 rounded font-medium transition-colors"
|
||||
onclick="window.location.assign('/')">I Decline</button>
|
||||
</div>
|
||||
|
||||
+7
-6
@@ -80,6 +80,7 @@
|
||||
</select>
|
||||
</div>
|
||||
{{ else if .Type == "date" }}
|
||||
{{ dv := .DateValues() }}
|
||||
<div class="flex items-center">
|
||||
<label class="w-64 text-right pr-4 text-black text-sm">
|
||||
{{ .Caption }}{{ if .Subcaption != "" }} {{ .Subcaption }}{{ end }}
|
||||
@@ -88,21 +89,21 @@
|
||||
<div class="flex gap-2">
|
||||
<select name="{{ .Name }}_month"
|
||||
class="px-3 py-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
|
||||
<option value="-1" selected>---</option>
|
||||
<option value="-1" {{ if dv[0] == -1 }}selected{{ end }}>---</option>
|
||||
{{ range i := GetMonthList() }}
|
||||
<option value="{{ i + 1 }}">{{ . }}</option>
|
||||
<option value="{{ i + 1 }}" {{ if dv[0] == i + 1 }}selected{{ end }}>{{ . }}</option>
|
||||
{{ end }}
|
||||
</select>
|
||||
<select name="{{ .Name }}_day" class="px-3 py-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
|
||||
<option value="-1" selected>---</option>
|
||||
<option value="-1" {{ if dv[1] == -1 }}selected{{ end }}>---</option>
|
||||
{{ range MakeIntRange(1, 32, 1) }}
|
||||
<option value="{{ . }}">{{ . }}</option>
|
||||
<option value="{{ . }}" {{ if dv[1] == . }}selected{{ end }}>{{ . }}</option>
|
||||
{{ end }}
|
||||
</select>
|
||||
<select name="{{ .Name }}_year" class="px-3 py-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
|
||||
<option value="-1" selected>---</option>
|
||||
<option value="-1" {{ if dv[2] == -1 }}selected{{ end }}>---</option>
|
||||
{{ range MakeYearRange(.Param) }}
|
||||
<option value="{{ . }}">{{ . }}</option>
|
||||
<option value="{{ . }}" {{ if dv[2] == . }}selected{{ end }}>{{ . }}</option>
|
||||
{{ end }}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
{*
|
||||
* Amsterdam Web Communities System
|
||||
* Copyright (c) 2025 Erbosoft Metaverse Design Solutions, All Rights Reserved
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*}
|
||||
<div class="flex">
|
||||
<div class="flex-1 p-4">
|
||||
<div class="mb-8">
|
||||
<h1 class="text-blue-800 text-4xl font-bold mb-2">This IP Address Has Been Banned</h1>
|
||||
<hr class="border-2 border-gray-400 w-4/5 mb-4">
|
||||
<p class="text-black text-sm mb-4"><strong>{{ message }}</strong></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user