Skip to content

Commit e1e5f43

Browse files
committed
fix button
1 parent 60febef commit e1e5f43

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

app/views/casa_cases/_court_dates.html.erb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
<% court_dates = casa_case.court_dates.includes(:hearing_type).ordered_ascending.load %>
2-
<label>Court dates:</label>
2+
<label>Court dates: </label>
33
<% if court_dates.empty? %>
44
No Court Dates
55
<% else %>
66
<ul>
77
<% court_dates.each do |pcd| %>
88
<p>
9+
910
<%= 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" %>
1019
<% if report = pcd.latest_associated_report %>
1120
<%= link_to(rails_blob_path(report, disposition: 'attachment')) do %>
1221
(Attached Report)

0 commit comments

Comments
 (0)