Skip to content

Commit 4b88c4c

Browse files
committed
oneline
1 parent e1e5f43 commit 4b88c4c

File tree

2 files changed

+36
-10
lines changed

2 files changed

+36
-10
lines changed

app/assets/stylesheets/pages/casa_cases.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,31 @@ body.casa_cases {
3030
display: inline-block;
3131
}
3232

33+
.court-date-row {
34+
display: flex;
35+
align-items: center;
36+
gap: 10px;
37+
38+
.court-date-link {
39+
flex: 1;
40+
}
41+
42+
.cal-btn {
43+
flex-shrink: 0;
44+
45+
.a2cldr {
46+
width: 120px !important;
47+
48+
.a2cldr-btn {
49+
width: 120px !important;
50+
font-size: 12px;
51+
padding: 4px 8px;
52+
text-align: center;
53+
}
54+
}
55+
}
56+
}
57+
3358
#cc-check {
3459
p {
3560
display: flex;

app/views/casa_cases/_court_dates.html.erb

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@
66
<ul>
77
<% court_dates.each do |pcd| %>
88
<p>
9-
10-
<%= link_to(pcd.decorate.court_date_info, casa_case_court_date_path(casa_case, pcd)) %>
11-
<%= render 'calendar_button',
12-
id: "court-date-#{pcd.id}",
13-
title: "Court Date #{pcd.casa_case.case_number}",
14-
date: {
15-
start: pcd.date.strftime("%Y-%m-%d"),
16-
end: pcd.date.strftime("%Y-%m-%d")
17-
},
18-
tooltip: "Add court date to calendar" %>
9+
<div class="court-date-row">
10+
<%= link_to(pcd.decorate.court_date_info, casa_case_court_date_path(casa_case, pcd), class: "court-date-link") %>
11+
<%= render 'calendar_button',
12+
id: "court-date-#{pcd.id}",
13+
title: "Court Date #{pcd.casa_case.case_number}",
14+
date: {
15+
start: pcd.date.strftime("%Y-%m-%d"),
16+
end: pcd.date.strftime("%Y-%m-%d")
17+
},
18+
tooltip: "Add court date to calendar" %>
19+
</div>
1920
<% if report = pcd.latest_associated_report %>
2021
<%= link_to(rails_blob_path(report, disposition: 'attachment')) do %>
2122
(Attached Report)

0 commit comments

Comments
 (0)