Paul Robert Lloyd
3 years ago
9 changed files with 22 additions and 16 deletions
@ -1,6 +1,7 @@
|
||||
<%= f.govuk_date_field question.id.to_sym, |
||||
caption: caption && !page_header.present? ? { text: caption.html_safe, size: "l" } : nil, |
||||
legend: { text: question.header.html_safe, size: !page_header.present? ? "l" : "m", tag: !page_header.present? ? "h1" : "h2" }, |
||||
hint: { text: question.hint_text }, |
||||
legend: { text: question.header.html_safe, size: page_header.nil? ? "l" : "m", tag: page_header.nil? ? "h2" : "h1" }, |
||||
width: 20, |
||||
**stimulus_html_attributes(question) |
||||
%> |
||||
|
@ -1,7 +1,8 @@
|
||||
<%= f.govuk_number_field question.id.to_sym, |
||||
caption: caption && !page_header.present? ? { text: caption.html_safe, size: "l" } : nil, |
||||
label: { text: question.header.html_safe, size: !page_header.present? ? "l" : "m", tag: !page_header.present? ? "h1" : "h2" }, |
||||
hint: { text: question.hint_text }, |
||||
label: { text: question.header.html_safe, size: page_header.nil? ? "l" : "m", tag: page_header.nil? ? "h2" : "h1" }, |
||||
min: question.min, max: question.max, step: question.step, |
||||
width: 20, :readonly => question.read_only?, |
||||
width: question.width, :readonly => question.read_only?, |
||||
**stimulus_html_attributes(question) |
||||
%> |
||||
|
@ -1,6 +1,7 @@
|
||||
<%= f.govuk_text_field question.id.to_sym, |
||||
caption: caption && !page_header.present? ? { text: caption.html_safe, size: "l" } : nil, |
||||
label: { text: question.header.html_safe, size: !page_header.present? ? "l" : "m", tag: !page_header.present? ? "h1" : "h2" }, |
||||
hint: { text: question.hint_text }, |
||||
label: { text: question.header.html_safe, size: page_header.nil? ? "l" : "m", tag: page_header.nil? ? "h2" : "h1" }, |
||||
width: 20, |
||||
width: question.width ? question.width : nil, |
||||
**stimulus_html_attributes(question) |
||||
%> |
||||
|
Loading…
Reference in new issue