mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Merge pull request #1304 from phl0/satRequirements
LoTW SAT name should not be required
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
</div>
|
||||
<div class="mb-3 col-md-6">
|
||||
<label for="nameInput"><?= __("LoTW Name"); ?></label>
|
||||
<input type="text" class="form-control" name="nameInput" id="nameInput" aria-describedby="nameInputHelp" required>
|
||||
<input type="text" class="form-control" name="nameInput" id="nameInput" aria-describedby="nameInputHelp">
|
||||
<small id="nameInputHelp" class="form-text text-muted"><?= __("Satellite name as accepted by LoTW. Not necessarily the same as the display name. Can be set/changed later when added to LoTW."); ?></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
</div>
|
||||
<div class="mb-3 col-md-6">
|
||||
<label for="nameInput"><?= __("LoTW Name"); ?></label>
|
||||
<input type="text" class="form-control" name="nameInput" id="nameInput" aria-describedby="nameInputHelp" value="<?php if(set_value('band') != "") { echo set_value('band'); } else { echo $satellite->name; } ?>" required>
|
||||
<input type="text" class="form-control" name="nameInput" id="nameInput" aria-describedby="nameInputHelp" value="<?php if(set_value('band') != "") { echo set_value('band'); } else { echo $satellite->name; } ?>">
|
||||
<small id="nameInputHelp" class="form-text text-muted"><?= __("Satellite name as accepted by LoTW. Not necessarily the same as the display name. Can be set/changed later when added to LoTW."); ?></small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -55,8 +55,8 @@ function createSatelliteDialog() {
|
||||
|
||||
function createSatellite(form) {
|
||||
$(".alert").remove();
|
||||
if (form.nameInput.value == "") {
|
||||
$('#create_satellite').prepend('<div class="alert alert-danger" role="alert"><a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>Please enter a name!</div>');
|
||||
if (form.displayNameInput.value == "") {
|
||||
$('#create_satellite').prepend('<div class="alert alert-danger" role="alert"><a href="#" class="close" data-dismiss="alert" aria-label="close">×</a> Please enter a name!</div>');
|
||||
}
|
||||
else {
|
||||
$.ajax({
|
||||
@@ -108,8 +108,8 @@ function editSatelliteDialog(id) {
|
||||
|
||||
function saveUpdatedSatellite(form) {
|
||||
$(".alert").remove();
|
||||
if (form.nameInput.value == "") {
|
||||
$('#edit_satellite_dialog').prepend('<div class="alert alert-danger" role="alert"><a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>Please enter a name!</div>');
|
||||
if (form.displayNameInput.value == "") {
|
||||
$('#edit_satellite_dialog').prepend('<div class="alert alert-danger" role="alert"><a href="#" class="close" data-dismiss="alert" aria-label="close">×</a> Please enter a name!</div>');
|
||||
}
|
||||
else {
|
||||
$.ajax({
|
||||
|
||||
Reference in New Issue
Block a user