-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathedit.html.erb
31 lines (26 loc) · 1 KB
/
edit.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<% title t('.page_title') %>
<% step_header %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= govuk_error_summary %>
<%= step_form @form_object do |f| %>
<%= f.govuk_date_field :conditional_end_date, maxlength_enabled: true, form_group: { class: 'app-util--compact-form-group' } do
tag.p t('.lead_text'), class: 'govuk-body-m'
end %>
<%= render partial: 'steps/shared/approx_date_checkbox', locals: {
form: f, attribute: :approximate_conditional_end_date
} %>
<details class="govuk-details" data-module="govuk-details">
<summary class="govuk-details__summary">
<span class="govuk-details__summary-text" data-ga-category="explanations" data-ga-label="conditions not ended">
<%=t '.details.title' %>
</span>
</summary>
<div class="govuk-details__text">
<%=t '.details.body_html' %>
</div>
</details>
<%= f.continue_button %>
<% end %>
</div>
</div>