From 7c71cbc77d8ce23f9164c02638d5c1256afba331 Mon Sep 17 00:00:00 2001 From: wanguiwaweru <74382189+wanguiwaweru@users.noreply.github.com> Date: Fri, 19 Jul 2024 16:40:13 +0000 Subject: [PATCH] Improve report generation modal --- app/views/case_court_reports/index.html.erb | 3 +++ public/assets/css/main.css | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/views/case_court_reports/index.html.erb b/app/views/case_court_reports/index.html.erb index 6b6ecbd2e8..6df19b1983 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..83d0cd14f4 100644 --- a/public/assets/css/main.css +++ b/public/assets/css/main.css @@ -56,7 +56,7 @@ a { span { display: block; } -} + audio, canvas, iframe, @@ -1079,6 +1079,12 @@ h6, .input-style-1 { position: relative; margin-bottom: 30px; } + .input-style-1 select{ + width: 465px; + height: 40px; + border-radius: 5px; + border: 1px solid #4a6cf7; + } .input-style-1 label { font-size: 14px; font-weight: 500;