[Contesting] Started working on adding more possibilities for contest exchange

这个提交包含在:
Andreas 2021-08-07 10:13:38 +02:00
父节点 bad229dd09
当前提交 1adae9fd88
共有 2 个文件被更改,包括 56 次插入19 次删除

查看文件

@ -11,15 +11,13 @@
<label class="col-auto control-label" for="radio"><?php echo $this->lang->line('contesting_exchange_type'); ?></label>
<div class="col-auto">
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="exchangeradio" id="serial" value="serial" checked>
<label class="form-check-label" for="serial"><?php echo $this->lang->line('contesting_exchange_type_serial'); ?></label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="exchangeradio" id="other" value="other">
<label class="form-check-label" for="other"><?php echo $this->lang->line('contesting_exchange_type_other'); ?></label>
</div>
<select class="form-control-sm" id="exchangetype" name="exchangetype">
<option value='None'>None</option>
<option value='Serial'>Serial</option>
<option value='Serialexchange'>Serial + Exchange</option>
<option value='Serialgridsquare'>Serial + Gridsquare</option>
<option value='Gridsquare'>Gridsquare</option>
</select>
</div>
<label class="col-auto control-label" for="contestname"><?php echo $this->lang->line('contesting_contest_name'); ?></label>
@ -121,21 +119,41 @@
<input type="text" class="form-control form-control-sm" name="rst_sent" id="rst_sent" value="59">
</div>
<div class="form-group col-md-1">
<label for="exch_serial_r">Serial (R)</label>
<input type="text" class="form-control form-control-sm" name="exch_serial_r" id="exch_serial_r" value="">
</div>
<div class="form-group col-md-1">
<label for="exch_sent"><?php echo $this->lang->line('gen_hamradio_exchange_sent_short'); ?></label>
<input type="text" class="form-control form-control-sm" name="exch_sent" id="exch_sent" value="">
</div>
<div class="form-group col-md-1">
<label for="exch_gridsquare_r">Gridsquare (S)</label>
<input type="text" class="form-control form-control-sm" name="exch_gridsquare_r" id="exch_gridsquare_r" value="">
</div>
<div class="form-group col-md-1">
<label for="rst_recv"><?php echo $this->lang->line('gen_hamradio_rstr'); ?></label>
<input type="text" class="form-control form-control-sm" name="rst_recv" id="rst_recv" value="59">
</div>
<div class="form-group col-md-1">
<label for="exch_serial_s">Serial (S)</label>
<input type="text" class="form-control form-control-sm" name="exch_serial_s" id="exch_serial_s" value="">
</div>
<div class="form-group col-md-1">
<label for="exch_recv"><?php echo $this->lang->line('gen_hamradio_exchange_recv_short'); ?></label>
<input type="text" class="form-control form-control-sm" name="exch_recv" id="exch_recv" value="">
</div>
<div class="form-group col-md-1">
<label for="exch_gridsquare_s">Gridsquare (S)</label>
<input type="text" class="form-control form-control-sm" name="exch_gridsquare_s" id="exch_gridsquare_s" value="">
</div>
</div>
<div class="form-row">

查看文件

@ -193,6 +193,25 @@ $('#other').change(function() {
}
});
$('#exchangetype').change(function(){
var exchangetype = $("#exchangetype option:selected").text();
if (exchangetype == 'None') {
}
if (exchangetype == 'Serial') {
}
if (exchangetype == 'Serialexchange') {
}
if (exchangetype == 'Serialgridsquare') {
}
if (exchangetype == 'Gridsquare') {
}
});
/*
Function: set_serial_number_input_validation
Job: This sets the field input to number for validation