You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.5 KiB
38 lines
1.5 KiB
2 years ago
|
<% content_for :title, "Log #{@log.id}" %>
|
||
3 years ago
|
<% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: {
|
||
2 years ago
|
"Logs" => @log.lettings? ? lettings_logs_path : sales_logs_path,
|
||
3 years ago
|
content_for(:title) => "",
|
||
3 years ago
|
}) %>
|
||
3 years ago
|
|
||
3 years ago
|
<div class="govuk-grid-row">
|
||
|
<div class="govuk-grid-column-two-thirds-from-desktop">
|
||
|
<h1 class="govuk-heading-xl">
|
||
|
<%= content_for(:title) %>
|
||
|
</h1>
|
||
3 years ago
|
|
||
2 years ago
|
<% if @log.status == "in_progress" %>
|
||
|
<p class="govuk-body govuk-!-margin-bottom-7"><%= get_subsections_count(@log, :completed) %> of <%= get_subsections_count(@log, :all) %> sections completed.</p>
|
||
3 years ago
|
<p class="govuk-body govuk-!-margin-bottom-2">
|
||
2 years ago
|
<% next_incomplete_section = get_next_incomplete_section(@log) %>
|
||
3 years ago
|
</p>
|
||
|
<p>
|
||
|
<% if next_incomplete_section.present? %>
|
||
|
<a class="app-section-skip-link" href="#<%= next_incomplete_section.id.dasherize %>">
|
||
|
Skip to next incomplete section: <%= next_incomplete_section.label %>
|
||
|
</a>
|
||
|
<% end %>
|
||
|
</p>
|
||
2 years ago
|
<% elsif @log.status == "not_started" %>
|
||
3 years ago
|
<p class="govuk-body">This log has not been started.</p>
|
||
2 years ago
|
<% elsif @log.status == "completed" %>
|
||
3 years ago
|
<p class="govuk-body">
|
||
2 years ago
|
<%= status_tag(@log.status) %>
|
||
3 years ago
|
</p>
|
||
3 years ago
|
<p class="govuk-body">
|
||
2 years ago
|
You can <%= govuk_link_to "review and make changes to this log", "/lettings-logs/#{@log.id}/review" %> until 2nd June <%= @log.collection_start_year.present? ? @log.collection_start_year + 1 : "" %>.
|
||
3 years ago
|
</p>
|
||
3 years ago
|
<% end %>
|
||
|
<%= render "tasklist" %>
|
||
3 years ago
|
</div>
|
||
3 years ago
|
</div>
|