Browse Source

Add date template

pull/23/head
baarkerlounger 3 years ago
parent
commit
82f6dab314
  1. 2
      README.md
  2. 7
      app/views/form/_date_question.html.erb

2
README.md

@ -66,7 +66,7 @@ The JSON should follow the structure:
snake case question name string: { snake case question name string: {
header: string, header: string,
hint_text: string, hint_text: string,
type: [text / numeric / radio / select ], type: [text / numeric / radio / select / date ],
min: integer, (numeric only), min: integer, (numeric only),
max: integer, (numeric only), max: integer, (numeric only),
step: integer (numeric only), step: integer (numeric only),

7
app/views/form/_date_question.html.erb

@ -0,0 +1,7 @@
<%= f.govuk_date_field question_key,
hint: { text: question["hint_text"] },
legend: { text: question["header"], size: "l"},
width: 20
%>
<%= f.hidden_field :previous_page, value: page_key %>
<%= f.hidden_field :case_log_id, value: case_log_id %>
Loading…
Cancel
Save