diff --git a/README.md b/README.md index f126606b4..d8562ceb8 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ The JSON should follow the structure: snake case question name string: { header: string, hint_text: string, - type: [text / numeric / radio / select ], + type: [text / numeric / radio / select / date ], min: integer, (numeric only), max: integer, (numeric only), step: integer (numeric only), diff --git a/app/views/form/_date_question.html.erb b/app/views/form/_date_question.html.erb new file mode 100644 index 000000000..245565eca --- /dev/null +++ b/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 %>