mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Added status information dialog
This commit is contained in:
@@ -331,4 +331,8 @@ class Oqrs extends CI_Controller {
|
||||
print json_encode($qsos);
|
||||
}
|
||||
|
||||
public function status_info() {
|
||||
$this->load->view('oqrs/status_info');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
let lang_oqrs_warning_reject = '<?= __("Warning! Are you sure you want to reject the marked OQRS request(s)?"); ?>';
|
||||
let lang_oqrs_warning_mark = '<?= __("Warning! Are you sure you want to mark the marked OQRS request(s)?"); ?>';
|
||||
let lang_oqrs_warning_add_to_queue = '<?= __("Warning! Are you sure you want to add the marked OQRS request(s) to the queue?"); ?>';
|
||||
let lang_oqrs_status_message = '<?= __("OQRS Status Information"); ?>';
|
||||
</script>
|
||||
|
||||
<div class="container-fluid oqrs pt-3 ps-4 pe-4">
|
||||
@@ -25,7 +26,7 @@
|
||||
<div class="row">
|
||||
<form id="searchForm" name="searchForm" action="<?php echo base_url()."index.php/oqrs/search";?>" method="post">
|
||||
<div class="row">
|
||||
<div class="forn-group w-auto col-lg-2 col-md-2 col-sm-3 col-xl">
|
||||
<div class="form-group w-auto col-lg-2 col-md-2 col-sm-3 col-xl">
|
||||
<label class="form-label" for="de"><?= __("Location"); ?></label>
|
||||
<select id="de" name="de" class="form-select form-select-sm">
|
||||
<option value=""><?= __("All"); ?></option>
|
||||
@@ -36,13 +37,13 @@
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="forn-group w-auto col-lg-2 col-md-2 col-sm-3 col-xl">
|
||||
<div class="form-group w-auto col-lg-2 col-md-2 col-sm-3 col-xl">
|
||||
<label class="form-label" for="dx"><?= __("Request callsign"); ?></label>
|
||||
<input type="text" name="dx" id="dx" class="form-control form-control-sm" value="">
|
||||
</div>
|
||||
|
||||
<div class="forn-group w-auto col-lg-2 col-md-2 col-sm-3 col-xl">
|
||||
<label for="status"><?= __("OQRS Status"); ?></label>
|
||||
<div class="form-group w-auto col-lg-2 col-md-2 col-sm-3 col-xl">
|
||||
<label for="status"><?= __("OQRS Status"); ?> <i class="statusinfo far fa-question-circle" aria-hidden="true"></i></label>
|
||||
<select id="status" name="status" class="form-select form-select-sm">
|
||||
<option value=""><?= __("All"); ?></option>
|
||||
<option value="0"><?= __("Open request"); ?></option>
|
||||
@@ -52,7 +53,7 @@
|
||||
<option value="4"><?= __("Rejected"); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="forn-group w-auto col-lg-2 col-md-2 col-sm-3 col-xl">
|
||||
<div class="form-group w-auto col-lg-2 col-md-2 col-sm-3 col-xl">
|
||||
<label for="oqrsResults"><?= __("# Results"); ?></label>
|
||||
<select id="oqrsResults" name="oqrsResults" class="form-select form-select-sm">
|
||||
<option value="50">50</option>
|
||||
|
||||
30
application/views/oqrs/status_info.php
Normal file
30
application/views/oqrs/status_info.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<table style="width:100%" class="table-sm table table-striped table-bordered table-hover table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php echo __("Status"); ?></th>
|
||||
<th><?php echo __("Message"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><?= __("Open request"); ?></td>
|
||||
<td><?= __("The request is currently open, and needs to be reviewed by you."); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?= __("Not in log request"); ?></td>
|
||||
<td><?= __("The request is not in the log, so you need to check your log and process the request."); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?= __("Done / sent"); ?></td>
|
||||
<td><?= __("The request has been processed and the QSL has been sent."); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?= __("Pending"); ?></td>
|
||||
<td><?= __("The request is still being processed."); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?= __("Rejected"); ?></td>
|
||||
<td><?= __("The request has been rejected and will not be processed."); ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -558,6 +558,28 @@ $(document).ready(function () {
|
||||
});
|
||||
});
|
||||
|
||||
$('.statusinfo').click(function (event) {
|
||||
$.ajax({
|
||||
url: base_url + 'index.php/oqrs/status_info',
|
||||
type: 'post',
|
||||
success: function(html) {
|
||||
BootstrapDialog.show({
|
||||
title: lang_oqrs_status_message,
|
||||
size: BootstrapDialog.SIZE_NORMAL,
|
||||
cssClass: 'qso-dialog',
|
||||
nl2br: false,
|
||||
message: html,
|
||||
buttons: [{
|
||||
label: lang_admin_close,
|
||||
action: function (dialogItself) {
|
||||
dialogItself.close();
|
||||
}
|
||||
}]
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#rejectOqrs').click(function (event) {
|
||||
var elements = $('.oqrstable tbody input:checked');
|
||||
var nElements = elements.length;
|
||||
|
||||
Reference in New Issue
Block a user