From cafe7ac223c532fc0cbf9126587a9d12b05c8698 Mon Sep 17 00:00:00 2001 From: wanguiwaweru <74382189+wanguiwaweru@users.noreply.github.com> Date: Sun, 21 Jul 2024 13:44:59 +0000 Subject: [PATCH] Improve report generation modal --- app/views/case_court_reports/index.html.erb | 3 +++ public/assets/css/main.css | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/app/views/case_court_reports/index.html.erb b/app/views/case_court_reports/index.html.erb index 6b6ecbd2e8..b0221ff015 100644 --- a/app/views/case_court_reports/index.html.erb +++ b/app/views/case_court_reports/index.html.erb @@ -47,6 +47,9 @@ } const setTimeZone = () => { + if(!$('#case-selection').val()){ + alert('Select an active case and specify the date range.'); + } const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone document.getElementById("user-time-zone").value = timeZone } diff --git a/public/assets/css/main.css b/public/assets/css/main.css index 2086099eb5..1cbf5ce6f0 100644 --- a/public/assets/css/main.css +++ b/public/assets/css/main.css @@ -1085,6 +1085,12 @@ h6, color: #262d3f; display: block; margin-bottom: 10px; } + .input-style-1 select{ + width: 465px; + height: 40px; + border-radius: 5px; + border: 1px solid #4a6cf7; + } .input-style-1 input, .input-style-1 textarea { width: 100%;