|
18 | 18 | <%= form_with model: @draft_consent, url: wizard_path, method: :put do |f| %>
|
19 | 19 | <% content_for(:before_content) { f.govuk_error_summary } %>
|
20 | 20 |
|
21 |
| - <% if @parent.new_record? %> |
22 |
| - <%= f.govuk_text_field :parent_full_name, label: { text: "Full name" } %> |
23 |
| - |
24 |
| - <%= f.govuk_radio_buttons_fieldset(:parent_relationship_type, |
25 |
| - legend: { size: "s", |
26 |
| - text: "Relationship to the child" }) do %> |
27 |
| - <%= f.govuk_radio_button :parent_relationship_type, "mother", |
28 |
| - label: { text: "Mum" }, link_errors: true %> |
29 |
| - <%= f.govuk_radio_button :parent_relationship_type, "father", |
30 |
| - label: { text: "Dad" } %> |
31 |
| - <%= f.govuk_radio_button :parent_relationship_type, "guardian", |
32 |
| - label: { text: "Guardian" } %> |
33 |
| - <%= f.govuk_radio_button :parent_relationship_type, "other", |
34 |
| - label: { text: "Other" } do %> |
35 |
| - <p>They need parental responsibility to give consent.</p> |
36 |
| - <%= f.govuk_text_field :parent_relationship_other_name, |
37 |
| - label: { text: "Relationship to the child" }, |
38 |
| - hint: { text: "For example, carer" } %> |
39 |
| - <%= f.govuk_radio_buttons_fieldset(:parent_responsibility, |
40 |
| - legend: { size: "s", |
41 |
| - text: "Do they have parental responsibility?" }, |
42 |
| - hint: { text: "They have the legal rights and duties relating to the child" }) do %> |
43 |
| - <%= f.govuk_radio_button :parent_responsibility, "yes", |
44 |
| - label: { text: "Yes" }, link_errors: true %> |
45 |
| - <%= f.govuk_radio_button :parent_responsibility, "no", |
46 |
| - label: { text: "No" } %> |
47 |
| - <% end %> |
| 21 | + <%= f.govuk_text_field :parent_full_name, label: { text: "Full name" } %> |
| 22 | + |
| 23 | + <%= f.govuk_radio_buttons_fieldset(:parent_relationship_type, |
| 24 | + legend: { size: "s", |
| 25 | + text: "Relationship to the child" }) do %> |
| 26 | + <%= f.govuk_radio_button :parent_relationship_type, "mother", |
| 27 | + label: { text: "Mum" }, link_errors: true %> |
| 28 | + <%= f.govuk_radio_button :parent_relationship_type, "father", |
| 29 | + label: { text: "Dad" } %> |
| 30 | + <%= f.govuk_radio_button :parent_relationship_type, "guardian", |
| 31 | + label: { text: "Guardian" } %> |
| 32 | + <%= f.govuk_radio_button :parent_relationship_type, "other", |
| 33 | + label: { text: "Other" } do %> |
| 34 | + <p>They need parental responsibility to give consent.</p> |
| 35 | + <%= f.govuk_text_field :parent_relationship_other_name, |
| 36 | + label: { text: "Relationship to the child" }, |
| 37 | + hint: { text: "For example, carer" } %> |
| 38 | + <%= f.govuk_radio_buttons_fieldset(:parent_responsibility, |
| 39 | + legend: { size: "s", |
| 40 | + text: "Do they have parental responsibility?" }, |
| 41 | + hint: { text: "They have the legal rights and duties relating to the child" }) do %> |
| 42 | + <%= f.govuk_radio_button :parent_responsibility, "yes", |
| 43 | + label: { text: "Yes" }, link_errors: true %> |
| 44 | + <%= f.govuk_radio_button :parent_responsibility, "no", |
| 45 | + label: { text: "No" } %> |
48 | 46 | <% end %>
|
49 | 47 | <% end %>
|
50 | 48 | <% end %>
|
|
0 commit comments