|
|
@ -1,9 +1,10 @@ |
|
|
|
<%= render partial: "form/guidance/#{question.top_guidance_partial}" if question.top_guidance? %> |
|
|
|
<%= render partial: "form/guidance/#{question.top_guidance_partial}" if question.top_guidance? %> |
|
|
|
|
|
|
|
<% legend = legend(question, page_header, conditional) %> |
|
|
|
<%= render partial: "components/date_picker", locals: |
|
|
|
<%= render partial: "components/date_picker", locals: |
|
|
|
{ |
|
|
|
{ |
|
|
|
resource: @log, |
|
|
|
resource: @log, |
|
|
|
question_id: question.id, |
|
|
|
question_id: question.id, |
|
|
|
legend: { text: legend(question, page_header, conditional)[:text], size: "l", caption: caption(caption_text, page_header, conditional) }, |
|
|
|
legend: { text: legend[:text], size: legend[:size], caption: caption(caption_text, page_header, conditional) }, |
|
|
|
resource_type: @log.log_type, |
|
|
|
resource_type: @log.log_type, |
|
|
|
hint: (question.hint_text.blank? ? "" : (question.hint_text.html_safe + "</br></br>".html_safe)) + "For example, #{date_mid_collection_year_formatted(@log.startdate).tr(' ', '/')}", |
|
|
|
hint: (question.hint_text.blank? ? "" : (question.hint_text.html_safe + "</br></br>".html_safe)) + "For example, #{date_mid_collection_year_formatted(@log.startdate).tr(' ', '/')}", |
|
|
|
f:, |
|
|
|
f:, |
|
|
|