mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
* feat[clubstations]: New DB structure
* feat[clubstations]: Add clubstationstable in user managment
* feat[clubstations]: Show last operator
* feat[clubstations]: Better solution for last operator. tnx for the hint @int2001
* feat[clubstations]: New Club Model and Controller
* feat[clubstations]: Add "Add User" and "Edit User" functionality
* docs[clubstations]: move comment
* feat[clubstations]: Add "Delete Member" functionality
* feat[clubstations]: some enhancements and javascript
* fix[clubstations]: Wrong message class for flashmessages
* feat[clubstations]: Added Switch in the Header menu (not functional yet)
* feat[clubstations]: clubswitch modal
* fix[clubstations]: Load encryption library if not already loaded
* fix[clubstations]: Prevent direct login attempts to clubstations and enhance impersonation authorization
* fix[clubstations]: Typo
* feat[clubstations]: Only show the operator dialog if there is something fishy
* fix[user]: little UI bug
* feat[impersonate]: Add source uid to session data
* fix[impersonate]: logic adjustment
* feat[clubstations]: Add manage button in header menu for club officers
* fix[clubstations]: typo in permission level check
* fix[clubstations]: Full rights for the admin
* feat[impersonate]: Custom sessiondata
* feat[impersonate]: Implement stop impersonation feature with modal confirmation; "the way back"
* fix(modal): Fix bug where modal was hidden when mouse leaved the browser content
* docs(config): Adjust config description for special callsigns and clubstations
* feat(club): Add club access check helper
* typo
* fix[impersonation]: Better text
* feat(club): Selectize for a efficient user search
* feat(clubstations): Restrict clubstations based on users permission level part 1/x
* adjustments for dev merge
* Adjusted club right for the advanced logbook
* feat[user]: Refactoring of the Action Buttons in the user table
* fix[club_permissions]: normal button instead small one for club permissions
* remove unnecessary line break in modal body
* feat[clubstations]: Add Club Mode badge to the header
* fix[clubstations]: fix maintenance mode
* allow switch back on http
* feat(simplefle): display operator input based on club_access
* small UI adjustments
* small UI adjustments
* moved api page to a index.php file and added support for clubstations
* removed unused stuff
* typo
* radios and api keys
* missed one binding
* fix qso view, even officers do just see their own radios in QSO logging
* omit the need for a relogin to see the changes as an admin
* Omit the need for relogin after club changes in general. It's a question of UX. It's better to accept a little higher DB load (if clubstations are enabled) then the need of an user to relogin. There is some room for improvement by changing user_model->get_by_id() and adding a join there. This can be done later if we see that the load is too high
* If the user is not the creator of the API key, it's likely a clubstation. In this case the callsign of the clubstation can not be the same as the callsign of the user (operator call provided by the user). If this is the case, we need to use the callsign of the creator of the API key
* remove debug messages
* better UI in header
* found a typo
* full access in clubstations for admins (if accessed via admin usertable)
* adjusted text
* adjusted text
* adjust text
* reduce required chars
* bugfix: missing the correct authentication in case the admin was not member of the club. he wasn't able to switch back
* reduce debug messages
* fixed UI bug related to tooltips
* load js in controller
* upps..
* some UI adjustments
* corrected permissions
* if user gets delete we need to remove data in club_permissions and also api keys which were created by this user
* Notify members about new memberships or changes in permission level
* add spinner to save button
* make login/logout process more bulletproof
* remove the relogin cookie after the attempt
* better strategy
* bug where switch back failed if user is no admin
* make api keys more secure
* mask not owned api keys
* removed annoying link
* if a user gets removed from a club we also should delete the corresponding api keys and cat radios
* adjusted wiki link
* Auto creation of logbook and location when new user is created
* store and display locator in uppercase
* same for callsign
* fixed a bug in user/club creation
* Revert "Auto creation of logbook and location when new user is created"
We found another solution to which will be addressed in a second PR
This reverts commit f05f4b7bf0.
* Optimized SQL for stats at userlist
* Source query for lastop "out", because mysql<9.0 can't handle Windowed functions
* adjust migration
* add new columns to users table to get created_at and modified_at
* added a partial down function
* add operator dropdown for clubstations
* fix mig version
* Add some backend restrictions in case a user wants to try something funny with the club
---------
Co-authored-by: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com>
Co-authored-by: int2001 <joerg@dj7nt.de>
190 lines
9.2 KiB
PHP
190 lines
9.2 KiB
PHP
<script type="text/javascript">
|
|
var Bands = <?php echo json_encode($bands); ?>;
|
|
var Modes = <?php echo json_encode($modes); ?>;
|
|
var user_id = <?php echo $this->session->userdata('user_id'); ?>;
|
|
</script>
|
|
|
|
<div class="container">
|
|
|
|
<br>
|
|
<div class="row">
|
|
<div class="col" id="simpleFleInfo">
|
|
<script>
|
|
var lang_qso_simplefle_info_ln1 = "<?= __("Simple Fast Log Entry (FLE)"); ?>";
|
|
var lang_qso_simplefle_info_ln2 = "<?= __("'Fast Log Entry', or simply 'FLE' is a system to log QSOs very quickly and efficiently. Due to its syntax, only a minimum of input is required to log many QSOs with as little effort as possible."); ?>";
|
|
var lang_qso_simplefle_info_ln3 = "<?= __("FLE was originally written by DF3CB. He offers a program for Windows on his website. Simple FLE was written by OK2CQR based on DF3CB's FLE and provides a web interface to log QSOs."); ?>";
|
|
var lang_qso_simplefle_info_ln4 = "<?= sprintf(__("A common use-case is if you have to import your paperlogs from an outdoor session and now SimpleFLE is also available in Wavelog. Information about the syntax and how FLE works can be found %s."), "<a href='https://df3cb.com/fle/documentation/' target='_blank'>" . __("here") . "</a>"); ?>";
|
|
var lang_qso_simplefle_syntax_help = "<?= __("Syntax Help"); ?>";
|
|
var lang_qso_simplefle_syntax_help_title = "<?= __("Syntax for FLE"); ?>";
|
|
var lang_qso_simplefle_syntax_help_close_w_sample = "<?= __("Close and Load Sample Data"); ?>";
|
|
var lang_qso_simplefle_options = "<?= __("Options"); ?>";
|
|
var lang_admin_close = "<?= __("Close"); ?>";
|
|
var lang_admin_save = "<?= __("Save"); ?>";
|
|
var lang_qso_simplefle_error_band = "<?= __("Band is missing!"); ?>";
|
|
var lang_qso_simplefle_error_mode = "<?= __("Mode is missing!"); ?>";
|
|
var lang_qso_simplefle_error_time = "<?= __("Time is not set!"); ?>";
|
|
var lang_qso_simplefle_error_date = "<?= __("Invalid date"); ?>";
|
|
var lang_qso_simplefle_qso_list_total = "<?= __("Total"); ?>";
|
|
var lang_gen_hamradio_qso = "<?= __("QSO"); ?>";
|
|
var lang_qso_simplefle_error_stationcall = "<?= __("Station Call is not selected"); ?>";
|
|
var lang_qso_simplefle_error_operator = "<?= __("'Operator' Field is empty"); ?>";
|
|
var lang_qso_simplefle_warning_reset = "<?= __("Warning! Do you really want to reset everything?"); ?>";
|
|
var lang_qso_simplefle_warning_missing_band_mode = "<?= __("Warning! You can't log the QSO List, because some QSO don't have band and/or mode defined!"); ?>";
|
|
var lang_qso_simplefle_warning_missing_time = "<?= __("Warning! You can't log the QSO List, because some QSO don't have a time defined!"); ?>";
|
|
var lang_qso_simplefle_warning_example_data = "<?= __("Attention! The Data Field containes example data. First Clear Logging Session!"); ?>";
|
|
var lang_qso_simplefle_confirm_save_to_log = "<?= __("Are you sure that you want to add these QSO to the Log and clear the session?"); ?>";
|
|
var lang_qso_simplefle_success_save_to_log_header = "<?= __("QSO Logged!"); ?>";
|
|
var lang_qso_simplefle_success_save_to_log = "<?= __("The QSO were successfully logged in the logbook! Dupes were skipped."); ?>";
|
|
var lang_qso_simplefle_error_save_to_log_header = "<?= __("Error"); ?>";
|
|
var lang_qso_simplefle_error_save_to_log = "<?= __("An error occurred while saving the QSO to the logbook! Error: "); ?>";
|
|
var lang_duplicate_for = "<?= __("Duplicate for"); ?>";
|
|
</script>
|
|
<h2><?php echo $page_title; ?></h2>
|
|
<button type="button" class="btn btn-sm btn-primary me-1" id="simpleFleInfoButton"><?= __("What is that?"); ?></button>
|
|
</div>
|
|
<div class="col-xs-12 col-lg-12 col-xl-6 text-end">
|
|
<p><?= __("Current UTC Time"); ?></p>
|
|
<h4 class="fw-bold" id="utc-time"></h4>
|
|
</div>
|
|
</div>
|
|
<?php if ($this->session->flashdata('message')) { ?>
|
|
<!-- Display Message -->
|
|
<div class="alert alert-danger">
|
|
<p><?php echo $this->session->flashdata('message'); ?></p>
|
|
</div>
|
|
<?php } ?>
|
|
</div>
|
|
<div class="container-fluid">
|
|
<header class="d-flex flex-wrap align-items-center justify-content-center justify-content-md-between py-3 mb-4 border-bottom">
|
|
<div class="col-md-3 mb-2 mb-md-0">
|
|
|
|
</div>
|
|
|
|
<div class="col-md-3 justify-content-end d-flex">
|
|
</div>
|
|
</header>
|
|
<div class="row mt-4">
|
|
<!-- START BASIC QSO DATA -->
|
|
<div class="card col-xs-12 col-md-4 simplefle" style="border: none">
|
|
|
|
<div class="card-header">
|
|
<?= __("QSO Data"); ?>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-lg-12 col-xl-6">
|
|
<div class="mb-3">
|
|
<label for="qsodate"><?= __("QSO Date"); ?></label>
|
|
<input type="date" class="form-control" id="qsodate">
|
|
<small class="form-text text-muted"><?= __("If you don't choose a date, today's date will be used."); ?></small>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-12 col-lg-12 col-xl-6">
|
|
<label for="contest"><?= __("Contest") ?></label>
|
|
<select name="contest" id="contest" class="form-select">
|
|
<option value="" selected><?= __("No Contest"); ?></option>
|
|
<?php
|
|
foreach ($contests as $contest) {
|
|
echo '<option value="' . $contest['adifname'] . '">' . $contest['name'] . '</option>';
|
|
} ?>
|
|
</select>
|
|
<small class="form-text text-muted"><?= __("You can add the entered QSOs to a contest."); ?></small>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-xs-12 col-lg-6">
|
|
<div class="mb-3">
|
|
<label for="stationProfile">
|
|
<?= __("Station Call/Location"); ?>
|
|
</label>
|
|
<select name="station_profile" class="station_id form-select" id="stationProfile">
|
|
<?php foreach ($station_profile->result() as $station) { ?>
|
|
<option value="<?php echo $station->station_id; ?>" <?php if ($station->station_id == $this->stations->find_active()) {
|
|
echo 'selected';
|
|
} ?>>
|
|
<?php echo $station->station_callsign . " (" . $station->station_profile_name . ")"; ?>
|
|
</option>
|
|
<?php } ?>
|
|
</select>
|
|
<div class="alert alert-danger" role="alert" id="warningStationCall" style="display: none"> </div>
|
|
<small class="form-text text-muted"><?= sprintf(__("If you did operate from a new location, first create a new %sStation Location%s"), '<a href="'.site_url('station').'">', '</a>'); ?></small>
|
|
</div>
|
|
</div>
|
|
<?php if (clubaccess_check(9)) { ?>
|
|
<div class="col-xs-12 col-lg-6">
|
|
<div class="mb-3">
|
|
<label for="operator"><?= __("Operator"); ?> <span class="text-muted input-example"><?= __("e.g. OK2CQR"); ?></span></label>
|
|
<input type="text" class="form-control text-uppercase" id="operator" value="<?php echo $this->session->userdata('operator_callsign'); ?>">
|
|
<div class="alert alert-danger" role="alert" id="warningOperatorField" style="display: none"> </div>
|
|
<small class="form-text text-muted"><?= __("This is callsign of the operator. Without any pre- or suffixes."); ?></small>
|
|
</div>
|
|
</div>
|
|
<?php } else { ?>
|
|
<input type="hidden" id="operator" value="<?php echo $this->session->userdata('operator_callsign'); ?>">
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- END BASIC QSO DATA -->
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col">
|
|
<p><?= __("Enter the Data"); ?></p>
|
|
<textarea name="qso" class="form-control qso-area" cols="auto" rows="11" id="sfle_textarea" style="font-family: 'Courier New', sans-serif;"></textarea>
|
|
</div>
|
|
</div>
|
|
<!-- Container for errors -->
|
|
<div class="row" id="errorMessages">
|
|
<div class="col">
|
|
<div class="js-status mt-3"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card col-xs-12 col-md-8 simplefle" style="border: none">
|
|
<div class="card-header">
|
|
<?= __("QSO List"); ?>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="qsoList">
|
|
<table class="table table-striped table-hover sfletable" id="qsoTable">
|
|
<thead>
|
|
<tr>
|
|
<th><?= __("Date"); ?></th>
|
|
<th><?= __("Time"); ?></th>
|
|
<th><?= __("Callsign"); ?></th>
|
|
<th><?= __("Band"); ?></th>
|
|
<th><?= __("Mode"); ?></th>
|
|
<th><?= __("RST (S)"); ?></th>
|
|
<th><?= __("RST (R)"); ?></th>
|
|
<th><?= __("Gridsquare"); ?></th>
|
|
<th><?= __("Refs"); ?>*</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="qsoTableBody">
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="row mt-2">
|
|
<div class="col-6 col-sm-6">
|
|
<span class="js-qso-count"></span>
|
|
</div>
|
|
<div class="col-6 col-sm-6 text-end" id="refs_hint">
|
|
<?= sprintf(__("The Refs can be either %sS%sOTA, %sI%sOTA, %sP%sOTA, or %sW%sWFF"), '<u>', '</u>', '<u>', '</u>', '<u>', '</u>', '<u>', '</u>'); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row mt-2">
|
|
<div class="btn-group" role="group" aria-label="sfle button group">
|
|
|
|
<button class="btn btn-primary js-reload-qso"><?= __("Reload QSO List"); ?></button>
|
|
<button class="btn btn-warning js-save-to-log"><?= __("Save in Wavelog"); ?></button>
|
|
<button class="btn btn-danger js-empty-qso"><?= __("Clear Logging Session"); ?></button>
|
|
<button class="btn btn-success" id="js-syntax"><?= __("Syntax Help"); ?></button>
|
|
<button class="btn btn-secondary" id="js-options"><?= __("Options"); ?></button>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|