kopia lustrzana https://github.com/magicbug/Cloudlog
[Station Locations] Added Argentina States
rodzic
3483df4390
commit
43ecde4986
|
@ -360,6 +360,38 @@
|
|||
<small id="StateHelp" class="form-text text-muted"><?php echo lang("station_location_state_hint"); ?></small>
|
||||
</div>
|
||||
|
||||
<div class="mb-3" id="argentina_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="C" <?php if($my_station_profile->state == "C") { echo "selected"; } ?>>Capital federal (Buenos Aires City)</option>
|
||||
<option value="B" <?php if($my_station_profile->state == "B") { echo "selected"; } ?>>Buenos Aires Province</option>
|
||||
<option value="S" <?php if($my_station_profile->state == "S") { echo "selected"; } ?>>Santa Fe</option>
|
||||
<option value="H" <?php if($my_station_profile->state == "H") { echo "selected"; } ?>>Chaco</option>
|
||||
<option value="P" <?php if($my_station_profile->state == "P") { echo "selected"; } ?>>Formosa</option>
|
||||
<option value="X" <?php if($my_station_profile->state == "X") { echo "selected"; } ?>>Cordoba</option>
|
||||
<option value="N" <?php if($my_station_profile->state == "N") { echo "selected"; } ?>>Misiones</option>
|
||||
<option value="E" <?php if($my_station_profile->state == "E") { echo "selected"; } ?>>Entre Rios</option>
|
||||
<option value="T" <?php if($my_station_profile->state == "T") { echo "selected"; } ?>>Tucumán</option>
|
||||
<option value="W" <?php if($my_station_profile->state == "W") { echo "selected"; } ?>>Corrientes</option>
|
||||
<option value="M" <?php if($my_station_profile->state == "M") { echo "selected"; } ?>>Mendoza</option>
|
||||
<option value="G" <?php if($my_station_profile->state == "G") { echo "selected"; } ?>>Santiago del Estero</option>
|
||||
<option value="A" <?php if($my_station_profile->state == "A") { echo "selected"; } ?>>Salta</option>
|
||||
<option value="J" <?php if($my_station_profile->state == "J") { echo "selected"; } ?>>San Juan</option>
|
||||
<option value="D" <?php if($my_station_profile->state == "D") { echo "selected"; } ?>>San Luis</option>
|
||||
<option value="K" <?php if($my_station_profile->state == "K") { echo "selected"; } ?>>Catamarca</option>
|
||||
<option value="F" <?php if($my_station_profile->state == "F") { echo "selected"; } ?>>La Rioja</option>
|
||||
<option value="Y" <?php if($my_station_profile->state == "Y") { echo "selected"; } ?>>Jujuy</option>
|
||||
<option value="L" <?php if($my_station_profile->state == "L") { echo "selected"; } ?>>La Pampa</option>
|
||||
<option value="R" <?php if($my_station_profile->state == "R") { echo "selected"; } ?>>Rió Negro</option>
|
||||
<option value="U" <?php if($my_station_profile->state == "U") { echo "selected"; } ?>>Chubut</option>
|
||||
<option value="Z" <?php if($my_station_profile->state == "Z") { echo "selected"; } ?>>Santa Cruz</option>
|
||||
<option value="V" <?php if($my_station_profile->state == "V") { echo "selected"; } ?>>Tierra del Fuego</option>
|
||||
<option value="Q" <?php if($my_station_profile->state == "Q") { echo "selected"; } ?>>Neuquén</option>
|
||||
</select>
|
||||
<small id="StateHelp" class="form-text text-muted"><?php echo lang("station_location_state_hint"); ?></small>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- US County -->
|
||||
<div class="mb-3">
|
||||
|
|
|
@ -15,6 +15,7 @@ $(document).ready( function () {
|
|||
$("#belarus_state").hide();
|
||||
$("#mexico_state").hide();
|
||||
$("#eu_russia_state").hide();
|
||||
$("#argentina_state").hide();
|
||||
|
||||
var selectedDXCCID = $('#dxcc_select').find(":selected").val();
|
||||
|
||||
|
@ -26,6 +27,7 @@ $(document).ready( function () {
|
|||
$("#belarus_state").hide();
|
||||
$("#aland_state").hide();
|
||||
$("#mexico_state").hide();
|
||||
$("#argentina_state").hide();
|
||||
}
|
||||
|
||||
// Show Aland States if Aland is selected
|
||||
|
@ -37,6 +39,7 @@ $(document).ready( function () {
|
|||
$("#eu_russia_state").hide();
|
||||
$("#belarus_state").hide();
|
||||
$("#mexico_state").hide();
|
||||
$("#argentina_state").hide();
|
||||
}
|
||||
|
||||
// Show Asiatic Russia States if Asiatic Russia is selected
|
||||
|
@ -48,6 +51,7 @@ $(document).ready( function () {
|
|||
$("#eu_russia_state").hide();
|
||||
$("#belarus_state").hide();
|
||||
$("#mexico_state").hide();
|
||||
$("#argentina_state").hide();
|
||||
}
|
||||
|
||||
// Show Belarus States if Belarus is selected
|
||||
|
@ -59,6 +63,7 @@ $(document).ready( function () {
|
|||
$("#us_state").hide();
|
||||
$("#eu_russia_state").hide();
|
||||
$("#mexico_state").hide();
|
||||
$("#argentina_state").hide();
|
||||
}
|
||||
|
||||
// Show Mexico States if Mexico is selected
|
||||
|
@ -70,6 +75,7 @@ $(document).ready( function () {
|
|||
$("#canada_state").hide();
|
||||
$("#us_state").hide();
|
||||
$("#eu_russia_state").hide();
|
||||
$("#argentina_state").hide();
|
||||
}
|
||||
|
||||
// Show EU Russia States if EU Russia is selected
|
||||
|
@ -81,6 +87,19 @@ $(document).ready( function () {
|
|||
$("#canada_state").hide();
|
||||
$("#us_state").hide();
|
||||
$("#eu_russia_state").show();
|
||||
$("#argentina_state").hide();
|
||||
}
|
||||
|
||||
// Show Argentina States if Argentina is selected
|
||||
if(selectedDXCCID == '100'){
|
||||
$("#mexico_state").hide();
|
||||
$("#belarus_state").hide();
|
||||
$("#asiatic_russia_state").hide();
|
||||
$("#aland_state").hide();
|
||||
$("#canada_state").hide();
|
||||
$("#us_state").hide();
|
||||
$("#eu_russia_state").hide();
|
||||
$("#argentina_state").show();
|
||||
}
|
||||
|
||||
$('#dxcc_select').change(function(){
|
||||
|
@ -92,6 +111,7 @@ $(document).ready( function () {
|
|||
$("#canada_state").show();
|
||||
$("#us_state").hide();
|
||||
$("#eu_russia_state").hide();
|
||||
$("#argentina_state").hide();
|
||||
} else if($(this).val() == '5') {
|
||||
$("#mexico_state").hide();
|
||||
$("#belarus_state").hide();
|
||||
|
@ -100,6 +120,7 @@ $(document).ready( function () {
|
|||
$("#canada_state").hide();
|
||||
$("#us_state").hide();
|
||||
$("#eu_russia_state").hide();
|
||||
$("#argentina_state").hide();
|
||||
} else if($(this).val() == '15') {
|
||||
$("#mexico_state").hide();
|
||||
$("#belarus_state").hide();
|
||||
|
@ -108,6 +129,7 @@ $(document).ready( function () {
|
|||
$("#canada_state").hide();
|
||||
$("#us_state").hide();
|
||||
$("#eu_russia_state").hide();
|
||||
$("#argentina_state").hide();
|
||||
} else if($(this).val() == '27') {
|
||||
$("#mexico_state").hide();
|
||||
$("#belarus_state").show();
|
||||
|
@ -116,6 +138,7 @@ $(document).ready( function () {
|
|||
$("#canada_state").hide();
|
||||
$("#us_state").hide();
|
||||
$("#eu_russia_state").hide();
|
||||
$("#argentina_state").hide();
|
||||
} else if($(this).val() == '50') {
|
||||
$("#mexico_state").show();
|
||||
$("#belarus_state").hide();
|
||||
|
@ -124,6 +147,7 @@ $(document).ready( function () {
|
|||
$("#canada_state").hide();
|
||||
$("#us_state").hide();
|
||||
$("#eu_russia_state").hide();
|
||||
$("#argentina_state").hide();
|
||||
} else if($(this).val() == '54') {
|
||||
$("#mexico_state").hide();
|
||||
$("#belarus_state").hide();
|
||||
|
@ -132,6 +156,16 @@ $(document).ready( function () {
|
|||
$("#canada_state").hide();
|
||||
$("#us_state").hide();
|
||||
$("#eu_russia_state").show();
|
||||
$("#argentina_state").hide();
|
||||
} else if($(this).val() == '100') {
|
||||
$("#mexico_state").hide();
|
||||
$("#belarus_state").hide();
|
||||
$("#asiatic_russia_state").hide();
|
||||
$("#aland_state").hide();
|
||||
$("#canada_state").hide();
|
||||
$("#us_state").hide();
|
||||
$("#eu_russia_state").hide();
|
||||
$("#argentina_state").show();
|
||||
} else {
|
||||
$("#canada_state").hide();
|
||||
$("#us_state").show();
|
||||
|
|
Ładowanie…
Reference in New Issue