Feat: clickable graphs
This commit is contained in:
@@ -48,9 +48,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Column Selector -->
|
||||
<div class="col-md-12 mt-3 mb-4">
|
||||
<div class="flex justify-between col-md-12 mt-3 mb-4">
|
||||
<!-- Include the reusable download-proofs component -->
|
||||
<x-download-proofs :route="route('activitiesAttended.downloadProofs')" />
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-danger dropdown-toggle" type="button" id="columnSelectorDropdown" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<i class="fas fa-columns me-1"></i> Customize Columns
|
||||
@@ -139,8 +141,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Include the reusable download-proofs component -->
|
||||
<x-download-proofs :route="route('activitiesAttended.downloadProofs')" />
|
||||
</div>
|
||||
|
||||
<!-- Table -->
|
||||
@@ -685,6 +685,15 @@
|
||||
$('.dropdown-menu').on('click', function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
// Set department filter from query string if present
|
||||
$(document).ready(function() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const departmentId = urlParams.get('department_id');
|
||||
if (departmentId) {
|
||||
$('#department-filter').val(departmentId).trigger('change');
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user