[Station Locations] Added Paraguay States
这个提交包含在:
父节点
cefabec877
当前提交
ae1f031048
共有 2 个文件被更改,包括 30 次插入 和 3 次删除
|
|
@ -450,6 +450,32 @@
|
||||||
<small id="StateHelp" class="form-text text-muted"><?php echo lang("station_location_state_hint"); ?></small>
|
<small id="StateHelp" class="form-text text-muted"><?php echo lang("station_location_state_hint"); ?></small>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="mb-3" id="paraguay_state">
|
||||||
|
<label for="stateInput"><?php echo lang("station_location_state"); ?></label>
|
||||||
|
<select class="form-select" name="station_state" id="StateHelp" aria-describedby="stationCntyInputHelp">
|
||||||
|
<option value=""></option>
|
||||||
|
<option value="16" <?php if($my_station_profile->state == "16") { echo "selected"; } ?>>Alto Paraguay</option>
|
||||||
|
<option value="19" <?php if($my_station_profile->state == "19") { echo "selected"; } ?>>Boquerón</option>
|
||||||
|
<option value="15" <?php if($my_station_profile->state == "15") { echo "selected"; } ?>>Presidente Hayes</option>
|
||||||
|
<option value="13" <?php if($my_station_profile->state == "13") { echo "selected"; } ?>>Amambay</option>
|
||||||
|
<option value="01" <?php if($my_station_profile->state == "01") { echo "selected"; } ?>>Concepción</option>
|
||||||
|
<option value="14" <?php if($my_station_profile->state == "14") { echo "selected"; } ?>>Canindeyú</option>
|
||||||
|
<option value="02" <?php if($my_station_profile->state == "02") { echo "selected"; } ?>>San Pedro</option>
|
||||||
|
<option value="ASU" <?php if($my_station_profile->state == "ASU") { echo "selected"; } ?>>Asunción</option>
|
||||||
|
<option value="11" <?php if($my_station_profile->state == "11") { echo "selected"; } ?>>Central</option>
|
||||||
|
<option value="03" <?php if($my_station_profile->state == "03") { echo "selected"; } ?>>Cordillera</option>
|
||||||
|
<option value="09" <?php if($my_station_profile->state == "09") { echo "selected"; } ?>>Paraguarí</option>
|
||||||
|
<option value="06" <?php if($my_station_profile->state == "06") { echo "selected"; } ?>>Caazapá</option>
|
||||||
|
<option value="05" <?php if($my_station_profile->state == "05") { echo "selected"; } ?>>Caaguazú</option>
|
||||||
|
<option value="04" <?php if($my_station_profile->state == "04") { echo "selected"; } ?>>Guairá</option>
|
||||||
|
<option value="08" <?php if($my_station_profile->state == "08") { echo "selected"; } ?>>Misiones</option>
|
||||||
|
<option value="12" <?php if($my_station_profile->state == "12") { echo "selected"; } ?>>Ñeembucú</option>
|
||||||
|
<option value="10" <?php if($my_station_profile->state == "10") { echo "selected"; } ?>>Alto Paraná</option>
|
||||||
|
<option value="07" <?php if($my_station_profile->state == "07") { echo "selected"; } ?>>Itapúa</option>
|
||||||
|
</select>
|
||||||
|
<small id="StateHelp" class="form-text text-muted"><?php echo lang("station_location_state_hint"); ?></small>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- US County -->
|
<!-- US County -->
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
|
|
|
||||||
|
|
@ -18,11 +18,12 @@ $(document).ready( function () {
|
||||||
'54': 'eu_russia_state',
|
'54': 'eu_russia_state',
|
||||||
'100': 'argentina_state',
|
'100': 'argentina_state',
|
||||||
'108': 'brazil_state',
|
'108': 'brazil_state',
|
||||||
'112': 'chile_state'
|
'112': 'chile_state',
|
||||||
|
'132': 'paraguay_state'
|
||||||
};
|
};
|
||||||
|
|
||||||
// Hide all states initially
|
// Hide all states initially
|
||||||
$("#canada_state, #aland_state, #asiatic_russia_state, #belarus_state, #mexico_state, #eu_russia_state, #argentina_state, #brazil_state, #chile_state, #us_state").hide();
|
$("#canada_state, #aland_state, #asiatic_russia_state, #belarus_state, #mexico_state, #eu_russia_state, #argentina_state, #brazil_state, #chile_state, #us_state, #paraguay_state").hide();
|
||||||
|
|
||||||
var selectedDXCCID = $('#dxcc_select').find(":selected").val();
|
var selectedDXCCID = $('#dxcc_select').find(":selected").val();
|
||||||
var stateToShow = stateMap[selectedDXCCID];
|
var stateToShow = stateMap[selectedDXCCID];
|
||||||
|
|
@ -40,7 +41,7 @@ $(document).ready( function () {
|
||||||
var stateToShow = stateMap[selectedValue] || stateMap['default'];
|
var stateToShow = stateMap[selectedValue] || stateMap['default'];
|
||||||
|
|
||||||
// Hide all states
|
// Hide all states
|
||||||
$("#mexico_state, #belarus_state, #asiatic_russia_state, #aland_state, #canada_state, #us_state, #eu_russia_state, #argentina_state, #brazil_state, #chile_state").hide();
|
$("#mexico_state, #belarus_state, #asiatic_russia_state, #aland_state, #canada_state, #us_state, #eu_russia_state, #argentina_state, #brazil_state, #chile_state, #paraguay_state").hide();
|
||||||
|
|
||||||
// Show the selected state
|
// Show the selected state
|
||||||
$("#" + stateToShow).show();
|
$("#" + stateToShow).show();
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用