fix bugs
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<x-guest-layout>
|
||||
<div class="mb-4 text-sm text-gray-600 dark:text-gray-400">
|
||||
<div class="mb-4 text-sm text-gray-600 dark:text-gray-400 p-4">
|
||||
{{ __('Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.') }}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -60,14 +60,14 @@
|
||||
</span>
|
||||
</label>
|
||||
|
||||
@if (Route::has('password.request'))
|
||||
<!-- @if (Route::has('password.request'))
|
||||
<a
|
||||
href="{{ route('password.request') }}"
|
||||
class="text-sm text-green-600 hover:text-green-700"
|
||||
>
|
||||
Forgot password?
|
||||
</a>
|
||||
@endif
|
||||
@endif -->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
|
||||
|
||||
<script src="/js/dashboard/filter.js"></script>
|
||||
<script src="/js/dashboard/charts.js"></script>
|
||||
<script src="/js/dashboard/export.js"></script>
|
||||
<script src="/js/dashboard/globals.js" type="module"></script>
|
||||
<script src="/js/dashboard/export.js" type="module"></script>
|
||||
|
||||
|
||||
<style>
|
||||
@@ -278,8 +278,8 @@
|
||||
</button>
|
||||
|
||||
<div id="exportItems" class="align-items-center gap-2">
|
||||
<button class="btn btn-sm btn-light" onclick="openChartSelector()">Charts</button>
|
||||
<button class="btn btn-sm btn-light" onclick="exportFullDashboard()">Screen</button>
|
||||
<button class="btn btn-sm btn-light" id="btnCharts">Charts</button>
|
||||
<button class="btn btn-sm btn-light" id="btnExport">Screen</button>
|
||||
<button class="btn btn-sm btn-light" onclick="window.print()">Print</button>
|
||||
<button class="btn btn-sm btn-outline-secondary" id="exportClose">✕</button>
|
||||
</div>
|
||||
@@ -290,8 +290,8 @@
|
||||
<div id="chartList"></div>
|
||||
|
||||
<div class="mt-3 d-flex justify-content-end gap-2">
|
||||
<button onclick="closeChartSelector()">Cancel</button>
|
||||
<button onclick="exportSelectedCharts()">Download PDF</button>
|
||||
<button id="chartCancel" class="btn btn-sm btn-secondary">Cancel</button>
|
||||
<button id="chartDownload" class="btn btn-sm btn-primary">Download PDF</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -328,7 +328,14 @@
|
||||
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
updateLastUpdated();
|
||||
|
||||
const lastUpdated = localStorage.getItem('dashboardLastUpdated');
|
||||
|
||||
if (lastUpdated) {
|
||||
document.getElementById('lastUpdated').innerHTML =
|
||||
`Last update: ${lastUpdated}`;
|
||||
}
|
||||
|
||||
});
|
||||
window.addEventListener("click", (e) => {
|
||||
const modal = document.getElementById("chartModal");
|
||||
@@ -360,7 +367,21 @@
|
||||
.then(res => res.json())
|
||||
.then(() => {
|
||||
|
||||
updateLastUpdated();
|
||||
const now = new Date();
|
||||
|
||||
const time = now.toLocaleTimeString([], {
|
||||
hour: '2-digit',
|
||||
minute: '2-digit'
|
||||
});
|
||||
|
||||
const date = now.toISOString().split('T')[0];
|
||||
|
||||
const timestamp = `${time} | ${date}`;
|
||||
|
||||
localStorage.setItem(
|
||||
'dashboardLastUpdated',
|
||||
timestamp
|
||||
);
|
||||
|
||||
location.reload();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user