|
|
|
<% content_for :title, "Case logs – #{t('service_name')} - GOV.UK" %>
|
|
|
|
<div class="govuk-grid-row">
|
|
|
|
<div class="govuk-grid-column-full">
|
|
|
|
<h1 class="govuk-heading-l">Your logs</h1>
|
|
|
|
</div>
|
|
|
|
<div class="govuk-grid-column-two-thirds-from-desktop">
|
|
|
|
|
|
|
|
<%= govuk_button_link_to "Create new log", case_logs_path, method: :post %>
|
|
|
|
|
|
|
|
<% if @in_progress_case_logs.present? %>
|
|
|
|
<%= render partial: "log_list", locals: { case_logs: @in_progress_case_logs, title: "Logs you need to complete", date_title: "Last Changed" } %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if @completed_case_logs.present? %>
|
|
|
|
<%= render partial: "log_list", locals: { case_logs: @completed_case_logs, title: "Logs you’ve submitted", date_title: "Date Submitted" } %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<p><a href="#" class="govuk-link">See all completed logs (<%= @completed_case_logs.count %>)</a></p>
|
|
|
|
</div>
|
|
|
|
</div>
|