Browse Source
* WIP
* Unpleasant but works
* Alias is maybe better?
* WIP
* remove unneeded partial
* error and success when submitting
* add request specs for review page
* delete unneeded feature spec
* WIP
* Unpleasant but works
* Alias is maybe better?
* WIP
* remove unneeded partial
* error and success when submitting
* add request specs for review page
* delete unneeded feature spec
* 🤏fixes
* display when log is completed
Co-authored-by: baarkerlounger <db@slothlife.xyz>
Co-authored-by: Kat <katrina@madetech.com>
Co-authored-by: kosiakkatrina <54268893+kosiakkatrina@users.noreply.github.com>
pull/488/head
Dushan
3 years ago
committed by
GitHub
15 changed files with 148 additions and 51 deletions
@ -1,8 +1,10 @@
|
||||
import { initAll } from "govuk-frontend"; |
||||
import GOVUKFrontend from "govuk-frontend"; |
||||
import GOVUKPrototypeComponents from "govuk-prototype-components" |
||||
import { Controller } from "@hotwired/stimulus"; |
||||
|
||||
export default class extends Controller { |
||||
connect() { |
||||
initAll() |
||||
GOVUKFrontend.initAll() |
||||
GOVUKPrototypeComponents.initAll() |
||||
} |
||||
} |
||||
|
@ -0,0 +1,34 @@
|
||||
<% content_for :title, "Review lettings log" %> |
||||
<% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: { |
||||
"Logs" => "/logs", |
||||
"Log #{@case_log.id.to_s}" => "/logs/" + @case_log.id.to_s, |
||||
"Review lettings log" => "" |
||||
}) %> |
||||
|
||||
<div class="govuk-grid-row"> |
||||
<div class="govuk-grid-column-two-thirds-from-desktop"> |
||||
<h1 class="govuk-heading-xl"> |
||||
<%= content_for(:title) %> |
||||
</h1> |
||||
<p class="govuk-body"> |
||||
You can review and make changes to this log up to 3 months after the end of the current collection year, which closes on 31 March <%= @case_log.collection_start_year.present? ? @case_log.collection_start_year + 1 : "" %>. |
||||
</p> |
||||
<% @case_log.form.sections.map do |section| %> |
||||
<h2 class="govuk-heading-m"><%= section.label %></h2> |
||||
<% section.subsections.map do |subsection| %> |
||||
<div class="x-govuk-summary-card govuk-!-margin-bottom-6"> |
||||
<div class="x-govuk-summary-card__header"> |
||||
<h3 class="x-govuk-summary-card__title"><%= subsection.label %></h3> |
||||
</div> |
||||
<div class="x-govuk-summary-card__body"> |
||||
<dl class="govuk-summary-list"> |
||||
<% subsection.applicable_questions(@case_log).each do |question| %> |
||||
<%= render partial: 'form/check_answers_table', locals: { question: question, case_log: @case_log } %> |
||||
<% end %> |
||||
</dl> |
||||
</div> |
||||
</div> |
||||
<% end %> |
||||
<% end %> |
||||
</div> |
||||
</div> |
Loading…
Reference in new issue