[Station Locations] Added australia states
这个提交包含在:
父节点
d1360ed3aa
当前提交
83ce05642a
共有 2 个文件被更改,包括 18 次插入 和 2 次删除
|
|
@ -561,6 +561,21 @@
|
||||||
<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="australia_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="ACT" <?php if($my_station_profile->state == "ACT") { echo "selected"; } ?>>Australian Capital Territory</option>
|
||||||
|
<option value="NSW" <?php if($my_station_profile->state == "NSW") { echo "selected"; } ?>>New South Wales</option>
|
||||||
|
<option value="VIC" <?php if($my_station_profile->state == "VIC") { echo "selected"; } ?>>Victoria</option>
|
||||||
|
<option value="QLD" <?php if($my_station_profile->state == "QLD") { echo "selected"; } ?>>Queensland</option>
|
||||||
|
<option value="SA" <?php if($my_station_profile->state == "SA") { echo "selected"; } ?>>South Australia</option>
|
||||||
|
<option value="WA" <?php if($my_station_profile->state == "WA") { echo "selected"; } ?>>Western Australia</option>
|
||||||
|
<option value="TAS" <?php if($my_station_profile->state == "TAS") { echo "selected"; } ?>>Tasmania</option>
|
||||||
|
<option value="NT" <?php if($my_station_profile->state == "NT") { echo "selected"; } ?>>Northern Territory</option>
|
||||||
|
</select>
|
||||||
|
<small id="StateHelp" class="form-text text-muted"><?php echo lang("station_location_state_hint"); ?></small>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- US County -->
|
<!-- US County -->
|
||||||
|
|
|
||||||
|
|
@ -35,11 +35,12 @@ $(document).ready( function () {
|
||||||
'144': 'uruguay_state',
|
'144': 'uruguay_state',
|
||||||
'291': 'us_state',
|
'291': 'us_state',
|
||||||
'148': 'venezuela_state',
|
'148': 'venezuela_state',
|
||||||
|
'150': 'australia_state',
|
||||||
'6': 'us_state' // Alaska
|
'6': 'us_state' // Alaska
|
||||||
};
|
};
|
||||||
|
|
||||||
// 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, #paraguay_state, #korea_state, #uruguay_state, #venezuela_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, #korea_state, #uruguay_state, #venezuela_state, #australia_state").hide();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the selected DXCC ID and shows the corresponding state.
|
* Gets the selected DXCC ID and shows the corresponding state.
|
||||||
|
|
@ -64,7 +65,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, #paraguay_state, #korea_state, #uruguay_state, #venezuela_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, #korea_state, #uruguay_state, #venezuela_state, #australia_state").hide();
|
||||||
|
|
||||||
// Show the selected state
|
// Show the selected state
|
||||||
$("#" + stateToShow).show();
|
$("#" + stateToShow).show();
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用