-
-
Notifications
You must be signed in to change notification settings - Fork 572
Expand file tree
/
Copy pathindex.html.erb
More file actions
52 lines (52 loc) · 1.7 KB
/
index.html.erb
File metadata and controls
52 lines (52 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<% content_for :title, "Reports - #{current_organization.name}" %>
<h1>
Reports
<small>for <%= current_organization.name %></small>
</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><%= link_to(dashboard_path) do %>
<i class="fa fa-dashboard"></i> Home
<% end %>
</li>
<li class="breadcrumb-item"><a href="#">Reports</a></li>
</ol>
</div>
</div>
</div>
</section>
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12 mb-2">
<h5 class="mb-1">Reports are available at the end of every year.</h5>
<span class="text-muted"> <%= "#{@actual_year} (available in #{pluralize(@month_remaining_to_report, 'month')})" %> </span>
</div>
<div class="col-md-12 mb-2">
<%=
download_button_to(
reports_annual_reports_path(format: :csv),
text: "Export Yearly Reports"
)
%>
</div>
<div class="col-md-12">
<div class="card card-primary">
<div class="card-header">
<h3 class="card-title">NDBN Annual Reports</h3>
</div>
<ul class="list-group list-unstyled">
<% @years.map do |year| %>
<li class="list-group-item-action"> <%= link_to "#{year}", reports_annual_report_path(year), class: "list-group-item" %> </li>
<% end %>
</ul>
</div>
</div>
</div>
</div>
</section>