mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Don't allow whitespaces in forms for station_calls
This commit is contained in:
@@ -71,7 +71,7 @@ if ($dxcc_list->result() > 0) {
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="stationCallsignInput"><?= __("Station Callsign"); ?></label>
|
||||
<input type="text" class="form-control uppercase" name="station_callsign" id="stationCallsignInput" aria-describedby="stationCallsignInputHelp" value="<?php if(set_value('station_callsign') != "") { echo set_value('station_callsign'); } else { echo $my_station_profile->station_callsign; } ?>" required>
|
||||
<input type="text" class="form-control uppercase" pattern="^\S+$" name="station_callsign" id="stationCallsignInput" aria-describedby="stationCallsignInputHelp" value="<?php if(set_value('station_callsign') != "") { echo set_value('station_callsign'); } else { echo $my_station_profile->station_callsign; } ?>" required>
|
||||
<small id="stationCallsignInputHelp" class="form-text text-muted"><?= __("Station callsign. For example: 4W7EST/P"); ?></small>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
<div class="card-body">
|
||||
<div class="mb-3">
|
||||
<label><?php if ($clubstation) { echo __("Special/Club Callsign"); } else { echo __("Callsign"); } ?></label>
|
||||
<input class="form-control uppercase" type="text" name="user_callsign" value="<?php if(isset($user_callsign)) { echo $user_callsign; } ?>" />
|
||||
<input class="form-control uppercase" type="text" name="user_callsign" pattern="^\S+$" value="<?php if(isset($user_callsign)) { echo $user_callsign; } ?>" />
|
||||
<?php if(isset($callsign_error)) { echo "<small class=\"badge bg-danger\">".$callsign_error."</small>"; } else { ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<label for="station_callsign" class="form-label mb-0"><?= __("Station Callsign"); ?></label>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input type="text" class="form-control uppercase" id="station_callsign" name="station_callsign" placeholder="4W7EST" required>
|
||||
<input type="text" class="form-control uppercase" id="station_callsign" pattern="^\S+$" name="station_callsign" placeholder="4W7EST" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3 align-items-center">
|
||||
|
||||
Reference in New Issue
Block a user