mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-06-24 05:35:10 +00:00
Move some of the "add spot" checks from client-side to server-side to avoid duplication and enforce them in the proper place. #95
This commit is contained in:
@@ -24,14 +24,14 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form class="row g-3">
|
||||
<form class="row g-3" onsubmit="return addSpot();">
|
||||
<div class="col-auto">
|
||||
<label for="dx-call" class="form-label">DX Call *</label>
|
||||
<input type="text" class="form-control input-narrow" id="dx-call" placeholder="N0CALL">
|
||||
<input type="text" class="form-control input-narrow" id="dx-call" placeholder="N0CALL" required>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<label for="freq" class="form-label">Frequency (kHz) *</label>
|
||||
<input type="text" class="form-control input-narrow" id="freq" placeholder="e.g. 14100">
|
||||
<input type="text" class="form-control input-narrow" id="freq" placeholder="e.g. 14100" required>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<label for="mode" class="form-label">Mode</label>
|
||||
@@ -60,10 +60,10 @@
|
||||
<div class="col-auto">
|
||||
<label for="de-call" class="form-label">Your Call *</label>
|
||||
<input type="text" class="form-control storeable-text input-narrow" id="de-call"
|
||||
placeholder="N0CALL">
|
||||
placeholder="N0CALL" required>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<button type="button" class="btn btn-primary mt-2em" onclick="addSpot();">Spot</button>
|
||||
<button type="submit" class="btn btn-primary mt-2em">Spot</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user