mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[LoTW] use Ajax for manual sync
When you click the LoTW manual sync button it now loads the contents into the page using ajax get request using htmx.
This commit is contained in:
@@ -122,7 +122,11 @@
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<p><a class="btn btn-outline-success" href="<?php echo site_url('lotw/lotw_upload'); ?>"><?php echo lang('lotw_btn_manual_sync'); ?></a></p>
|
||||
<button class="btn btn-outline-success" hx-get="<?php echo site_url('lotw/lotw_upload'); ?>" hx-target="#lotw_manual_results">
|
||||
<?php echo lang('lotw_btn_manual_sync'); ?>
|
||||
</button>
|
||||
|
||||
<div id="lotw_manual_results"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -436,4 +436,8 @@ div#station_logbooks_linked_table_paginate {
|
||||
.w-qsl{
|
||||
max-height: calc(100vh - 270px);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
#lotw_manual_results {
|
||||
padding-top: 10px;
|
||||
}
|
||||
Reference in New Issue
Block a user