Skip to content

Commit

Permalink
Fix: Adds missing labels for admin/form_answer#show
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Kirkham <[email protected]>
  • Loading branch information
TheDancingClown committed Nov 15, 2024
1 parent 15be1b1 commit 2049015
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/views/admin/audit_certificate/_form.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
span[aria-hidden="true"] &times;

.attachment-link.if-js-hide
= form.label :attachment, "Attach document", class: "visuallyhidden", for: "audit_certificate_attachment"
= form.file_field :attachment

.form-group
label.form-label Document title
= form.label :attachment, "Document title", class: "form-label", for: "audit_certificate_attachment_input"
= form.text_field :attachment, class: "form-control attachment-title", id: "audit_certificate_attachment_input"

.form-actions.text-right
Expand Down
1 change: 1 addition & 0 deletions app/views/admin/figures_and_vat_returns/_form.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
span[aria-hidden="true"] &times;

.attachment-link.if-js-hide
= form.label :attachment, "Attach document", class: "visuallyhidden"
= form.file_field :attachment

.form-actions.text-right
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
.form-container
= f.input section.rate,
as: :select,
label: false,
label: section.label,
collection: form.options,
input_html: { class: "if-js-hide", "data-updated-section" => section.rate, id: "#{f.object.position}_#{section.desc}_select" }
input_html: { class: "if-js-hide", "data-updated-section" => section.rate, id: "#{f.object.position}_#{section.desc}_select" },
label_html: { class: "visuallyhidden" }

label.form-label.form-label-rag for="#{f.object.position}_#{section.desc}_comment"
span.rag_section_label
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
.form-container
= f.input section.rate,
as: :select,
label: false,
label: section.label,
collection: form.options,
input_html: { class: "if-js-hide", "data-updated-section" => section.desc, id: "#{f.object.position}_#{section.desc}_select"}
input_html: { class: "if-js-hide", "data-updated-section" => section.desc, id: "#{f.object.position}_#{section.desc}_select"},
label_html: { class: "visuallyhidden" }

label.form-label.form-label-rag for="#{f.object.position}_verdict"
= section.label
Expand Down

0 comments on commit 2049015

Please sign in to comment.