|
11 | 11 | <%= page_title %> |
12 | 12 | <% end %> |
13 | 13 |
|
14 | | - <%= f.fields_for :parent do |parent_f| %> |
15 | | - <%= parent_f.govuk_text_field :full_name, label: { text: "Name" } %> |
16 | | - <% end %> |
17 | | - |
18 | | - <%= f.govuk_radio_buttons_fieldset :type, legend: { text: "Relationship to child", size: "s" } do %> |
19 | | - <%= f.govuk_radio_button :type, :mother, label: { text: "Mum" }, link_errors: true %> |
20 | | - <%= f.govuk_radio_button :type, :father, label: { text: "Dad" } %> |
21 | | - <%= f.govuk_radio_button :type, :guardian, label: { text: "Guardian" } %> |
22 | | - <%= f.govuk_radio_button :type, :other, label: { text: "Other" } do %> |
23 | | - <%= f.govuk_text_field :other_name, label: { text: "Relationship to the child" }, hint: { text: "For example, carer" } %> |
24 | | - <% end %> |
25 | | - <% end %> |
26 | | - |
27 | | - <%= f.fields_for :parent do |parent_f| %> |
28 | | - <%= parent_f.govuk_text_field :email, label: { text: "Email address" } %> |
29 | | - <%= parent_f.govuk_text_field :phone, label: { text: "Phone number" } %> |
30 | | - |
31 | | - <%= parent_f.govuk_check_boxes_fieldset :phone_receive_updates, multiple: false, legend: nil do %> |
32 | | - <%= parent_f.govuk_check_box :phone_receive_updates, 1, 0, multiple: false, link_errors: true, label: { text: "Get updates by text message" } %> |
33 | | - <% end %> |
34 | | - |
35 | | - <%= parent_f.govuk_radio_buttons_fieldset :contact_method_type, |
36 | | - legend: { text: "Does the parent have any specific needs?", size: "s" } do %> |
37 | | - <%= parent_f.govuk_radio_button :contact_method_type, "text", |
38 | | - label: { text: "They can only receive text messages" }, |
39 | | - link_errors: true %> |
40 | | - <%= parent_f.govuk_radio_button :contact_method_type, "voice", |
41 | | - label: { text: "They can only receive voice calls" } %> |
42 | | - <%= parent_f.govuk_radio_button :contact_method_type, "other", |
43 | | - label: { text: "Other" } do %> |
44 | | - <%= parent_f.govuk_text_area :contact_method_other_details, |
45 | | - label: { text: "Give details" } %> |
46 | | - <% end %> |
47 | | - <%= parent_f.govuk_radio_divider %> |
48 | | - <%= parent_f.govuk_radio_button :contact_method_type, "any", |
49 | | - label: { text: "They do not have specific needs" } %> |
50 | | - <% end %> |
51 | | - <% end %> |
| 14 | + <%= render "fields", f: %> |
52 | 15 |
|
53 | 16 | <%= f.govuk_submit "Continue" %> |
54 | 17 | <% end %> |
0 commit comments