[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.
这个提交包含在:
Peter Goodhall 2023-05-27 22:09:44 +01:00
父节点 f1ff22b4bc
当前提交 c5c7e79955
共有 2 个文件被更改,包括 9 次插入1 次删除

查看文件

@ -122,7 +122,11 @@
</div> </div>
<div class="card-body"> <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>
</div> </div>

查看文件

@ -436,4 +436,8 @@ div#station_logbooks_linked_table_paginate {
.w-qsl{ .w-qsl{
max-height: calc(100vh - 270px); max-height: calc(100vh - 270px);
overflow-y: auto; overflow-y: auto;
}
#lotw_manual_results {
padding-top: 10px;
} }