gnunet-gns-registrar

GNU Name System registrar
Log | Files | Refs | README

commit e2784df7e794b68a3b14a68bc3b3660addd53e2b
parent 92910c7f03a60e9863bae960c14549aa96c263e8
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Wed,  1 May 2024 14:54:11 +0200

Fix HAN a11y issue 6: readonly instead of disabled

Diffstat:
Mweb/templates/edit.html | 5+++--
Mweb/templates/name.html | 4++--
2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/web/templates/edit.html b/web/templates/edit.html @@ -23,6 +23,7 @@ <h4 class="alert-heading">Registration inactive!</h4> <hr> <p class="mb-0">Your registration is not yet active. Have you completed the payment yet?</p> + <a class="btn btn-primary" href="/name/{{.label}}/buy">Complete registration for {{.extensionDaysCount}} days until <b>{{.extendedExpiration}}</b> for <b>{{.cost}}</b></a> </div> </div> {{end}} @@ -41,7 +42,7 @@ <input class="btn btn-primary" type="submit" value="Update zone key"> {{else}} <div class="form-floating mb-3"> - <input name="zkey" id="zkeyInput" class="form-control" value="{{.zkey}}" disabled="true" maxlength="63" type="text" placeholder="Enter your zone key here!" required autofocus> + <input name="zkey" id="zkeyInput" class="form-control" value="{{.zkey}}" readonly maxlength="63" type="text" placeholder="Enter your zone key here!" required autofocus> <label for="zkeyInput">Enter your PKEY or EDKEY here</label> </div> {{end}} @@ -53,7 +54,7 @@ <div class="col-md-12 alert alert-light"> <h4>Extension</h4> <div class="form-floating mb-3"> - <input disabled="true" id="expInput" class="form-control" value="{{.registeredUntil}}" type="text" required autofocus> + <input readonly id="expInput" class="form-control" value="{{.registeredUntil}}" type="text" required autofocus> <label for="expInput">Registration expires in {{.remainingDays}} days:</label> </div> <a class="btn btn-primary" href="/name/{{.label}}/buy">Extend registration for {{.extensionDaysCount}} days until <b>{{.extendedExpiration}}</b> for <b>{{.cost}}</b></a> diff --git a/web/templates/name.html b/web/templates/name.html @@ -66,7 +66,7 @@ <div class="col-md-12 alert alert-light"> <h4>Zone information</h4> <div class="form-floating mb-3"> - <input name="zkey" id="zkeyInput" class="form-control" maxlength="63" type="text" value="{{.currentValue}}" disabled="true" required autofocus> + <input name="zkey" id="zkeyInput" class="form-control" maxlength="63" type="text" value="{{.currentValue}}" readonly required autofocus> <label for="zkeyInput">Zone key</label> </div> </div> @@ -76,7 +76,7 @@ <div class="col-md-12 alert alert-light"> <h4>Registration info</h4> <div class="form-floating mb-3"> - <input name="reg" id="regInput" class="form-control" type="text" value="{{.registeredUntil}}" disabled="true" required autofocus> + <input name="reg" id="regInput" class="form-control" type="text" value="{{.registeredUntil}}" readonly required autofocus> <label for="regInput">Registration expires in {{.remainingDays}} days:</label> </div> </div>