Prepoulate active Station Location
这个提交包含在:
父节点
a33a5ead0a
当前提交
50551441a1
共有 3 个文件被更改,包括 32 次插入 和 8 次删除
|
|
@ -14,6 +14,7 @@ class SimpleFLE extends CI_Controller {
|
|||
|
||||
$data['station_profile'] = $this->stations->all_of_user(); // Used in the view for station location select
|
||||
$data['bands'] = $this->bands->get_all_bands_for_user(); // Fetching Bands for FLE
|
||||
$data['active_station_profile'] = $this->stations->find_active(); // Prepopulate active Station in Station Location Selector
|
||||
|
||||
|
||||
$data['page_title'] = "Simple Fast Log Entry";
|
||||
|
|
|
|||
|
|
@ -9,10 +9,7 @@
|
|||
var lang_simplefle_info_ln3 = "<?php echo lang('simplefle_info_ln3'); ?>";
|
||||
var lang_simplefle_info_ln4 = "<?php echo lang('simplefle_info_ln4'); ?>";
|
||||
var lang_simplefle_syntax_help = "<?php echo lang('simplefle_syntax_help_button'); ?>";
|
||||
var lang_simplefle_syntax_help_ln1 = "<?php echo lang('simplefle_syntax_help_ln1'); ?>";
|
||||
var lang_simplefle_syntax_help_ln2 = "<?php echo lang('simplefle_syntax_help_ln2'); ?>";
|
||||
var lang_simplefle_syntax_help_ln3 = "<?php echo lang('simplefle_syntax_help_ln3'); ?>";
|
||||
var lang_simplefle_syntax_help_ln4 = "<?php echo lang('simplefle_syntax_help_ln4'); ?>";
|
||||
var lang_simplefle_syntax_help_title = "<?php echo lang('simplefle_syntax_help_title'); ?>";
|
||||
</script>
|
||||
<h2><?php echo $page_title; ?></h2>
|
||||
<button type="button" class="btn btn-sm btn-primary mr-1" id="simpleFleInfoButton"><?php echo lang('simplefle_info'); ?></button>
|
||||
|
|
@ -63,13 +60,16 @@
|
|||
<div class="form-group">
|
||||
<!-- <label for="my-call">My Station Callsign </label>
|
||||
<input type="text" class="form-control text-uppercase" id="my-call"> -->
|
||||
<label for="station_profile">Station Call</label>
|
||||
<label for="station-call">Station Call</label>
|
||||
<select name="station_profile" class="station_id custom-select" id="station-call">
|
||||
<option value="-">-</option>
|
||||
<?php foreach ($station_profile->result() as $station) { ?>
|
||||
<option value="<?php echo $station->station_id; ?>"><?php echo lang('gen_hamradio_callsign') . ": "; ?><?php echo $station->station_callsign; ?> (<?php echo $station->station_profile_name; ?>)</option>
|
||||
<option value="<?php echo $station->station_id; ?>" <?php if ($station->station_id == $this->stations->find_active()) { echo 'selected'; } ?>>
|
||||
<?php echo lang('gen_hamradio_callsign') . ": " . $station->station_callsign . " (" . $station->station_profile_name . ")"; ?>
|
||||
</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-lg-6">
|
||||
|
|
@ -121,7 +121,7 @@
|
|||
<button class="btn btn-danger js-empty-qso">Clear logging session</button>
|
||||
</div>
|
||||
<div class="col-3 col-sm-3">
|
||||
<button class="btn btn-success" id="js-syntax">Syntax Help</button>
|
||||
<button class="btn btn-success" id="js-syntax"><?php echo lang('simplefle_syntax_help_button'); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ $('#js-syntax').click(function (event) {
|
|||
type: 'post',
|
||||
success: function (html) {
|
||||
BootstrapDialog.alert({
|
||||
title: "<h4>"+lang_simplefle_syntax_help_ln1+"</h4>",
|
||||
title: "<h4>"+lang_simplefle_syntax_help_title+"</h4>",
|
||||
size: BootstrapDialog.SIZE_WIDE,
|
||||
nl2br: false,
|
||||
message: html,
|
||||
|
|
@ -441,6 +441,18 @@ for (const [key, value] of Object.entries(Bands)) {
|
|||
}
|
||||
$(".js-band-settings").html(htmlSettings);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$(".js-download-adif").click(function () {
|
||||
var operator = $("#operator").val();
|
||||
operator = operator.toUpperCase();
|
||||
|
|
@ -534,6 +546,17 @@ $(".js-download-adif").click(function () {
|
|||
download(filename, adif);
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function isBandModeEntered() {
|
||||
let isBandModeOK = true;
|
||||
qsoList.forEach((item) => {
|
||||
|
|
|
|||
正在加载…
在新工单中引用