Skip to content

Commit

Permalink
set minimum date for calendar field on cancel plan (#4386)
Browse files Browse the repository at this point in the history
set minimum on cancel plan date field
  • Loading branch information
kristinmerbach authored and charlienparker committed Sep 13, 2024
1 parent 4964e8b commit 6842b02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/insured/group_selection/_cancel_plan_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<%= hidden_field_tag :bs4, true %>
<p><%= l10n("choose_last_day") %></p>
<label class="required" for="term_date"><%= l10n("coverage_end_date") %></label>
<%= date_field_tag :term_date, class: "date-field mt-2", :'data-date-max' => "+0", required: true %>
<%= date_field_tag :term_date, nil,{class: "date-field mt-2", min: TimeKeeper.date_of_record.strftime("%Y-%m-%d"), required: true} %>
<% if show_cancellation_reason %>
<p class="mt-4"><%= l10n("why_are_you_canceling") %><p>
<label class="required" for="cancellation_reason"><%= l10n("cancelation_reason") %></label>
Expand Down Expand Up @@ -130,4 +130,4 @@
<% end %>
</div>
</div>
<% end %>
<% end %>

0 comments on commit 6842b02

Please sign in to comment.