10 lines
533 B
Plaintext
10 lines
533 B
Plaintext
<% if card.due_on.present? %>
|
|
<%= form_with model: card, url: collection_card_path(card.collection, card), data: { controller: "form" } do |form| %>
|
|
<label class="card__detail card__date">
|
|
<span class="for-screen-reader">Change the due date</span>
|
|
<span class="card__date-text"><%= html_escape card.due_on.strftime("%b <br> %d").html_safe %></span>
|
|
<%= form.date_field :due_on, class: "input input--hidden", data: { action: "change->form#submit click->form#showPicker" } %>
|
|
</label>
|
|
<% end %>
|
|
<% end %>
|