Paul Robert Lloyd
3 years ago
33 changed files with 205 additions and 171 deletions
@ -1,13 +1,13 @@ |
|||||||
<%= render partial: "form/guidance/#{question.guidance_partial}" if question.guidance_partial %> |
<%= render partial: "form/guidance/#{question.guidance_partial}" if question.guidance_partial %> |
||||||
|
|
||||||
<% selected = @case_log.public_send(question.id) || "" %> |
<% selected = @case_log.public_send(question.id) || "" %> |
||||||
<%= answers = question.displayed_answer_options.map { |key, value| OpenStruct.new(id: key, name: value) } |
<%= answers = question.displayed_answer_options.map { |key, value| OpenStruct.new(id: key, name: value) } %> |
||||||
f.govuk_collection_select question.id.to_sym, |
<%= f.govuk_collection_select question.id.to_sym, |
||||||
answers, |
answers, |
||||||
:id, |
:id, |
||||||
:name, |
:name, |
||||||
caption: caption(caption_text, page_header, conditional), |
caption: caption(caption_text, page_header, conditional), |
||||||
label: legend(question, page_header, conditional), |
label: legend(question, page_header, conditional), |
||||||
hint: { text: question.hint_text&.html_safe }, |
hint: { text: question.hint_text&.html_safe }, |
||||||
options: { disabled: [""], selected: selected }, |
options: { disabled: [""], selected: }, |
||||||
"data-controller": "accessible-autocomplete" %> |
"data-controller": "accessible-autocomplete" %> |
||||||
|
@ -1,13 +1,16 @@ |
|||||||
<div class="app-card"> |
<div class="app-card"> |
||||||
<h2 class="govuk-heading-s">Collection resources</h2> |
<h2 class="govuk-heading-s">Collection resources</h2> |
||||||
|
|
||||||
<%= render DocumentListComponent.new(items: [{ |
<%= render DocumentListComponent.new(items: [ |
||||||
name: "Lettings log for tenants (2022/23)", |
{ |
||||||
href: "https://core.communities.gov.uk/public/download/guides-and-manuals/2022-23%20Lettings%20paper%20form.pdf?download-format=pdf", |
name: "Lettings log for tenants (2022/23)", |
||||||
metadata: "PDF, 654 KB, 4 pages" |
href: "https://core.communities.gov.uk/public/download/guides-and-manuals/2022-23%20Lettings%20paper%20form.pdf?download-format=pdf", |
||||||
}, { |
metadata: "PDF, 654 KB, 4 pages", |
||||||
name: "Lettings log for tenants (2021/22)", |
}, |
||||||
href: "https://core.communities.gov.uk/public/download/guides-and-manuals/2021_22%20Lettings%20Log.pdf?download-format=pdf", |
{ |
||||||
metadata: "PDF, 302 KB, 3 pages" |
name: "Lettings log for tenants (2021/22)", |
||||||
}]) %> |
href: "https://core.communities.gov.uk/public/download/guides-and-manuals/2021_22%20Lettings%20Log.pdf?download-format=pdf", |
||||||
|
metadata: "PDF, 302 KB, 3 pages", |
||||||
|
}, |
||||||
|
]) %> |
||||||
</div> |
</div> |
||||||
|
Loading…
Reference in new issue