|
|
@ -1,6 +1,6 @@ |
|
|
|
<%= render partial: "form/guidance/#{question.top_guidance_partial}" if question.top_guidance? %> |
|
|
|
<%= render partial: "form/guidance/#{question.top_guidance_partial}" if question.top_guidance? %> |
|
|
|
|
|
|
|
|
|
|
|
<%= f.govuk_number_field( |
|
|
|
<%= f.govuk_text_field( |
|
|
|
question.id.to_sym, |
|
|
|
question.id.to_sym, |
|
|
|
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), |
|
|
@ -13,6 +13,8 @@ |
|
|
|
prefix_text: question.prefix.to_s, |
|
|
|
prefix_text: question.prefix.to_s, |
|
|
|
suffix_text: question.suffix_label(@log), |
|
|
|
suffix_text: question.suffix_label(@log), |
|
|
|
value: format_money_input(log: @log, question:), |
|
|
|
value: format_money_input(log: @log, question:), |
|
|
|
|
|
|
|
inputmode: "numeric", |
|
|
|
|
|
|
|
pattern: "\d*\.?\d*", |
|
|
|
**stimulus_html_attributes(question), |
|
|
|
**stimulus_html_attributes(question), |
|
|
|
) %> |
|
|
|
) %> |
|
|
|
|
|
|
|
|
|
|
|