Files
fizzy/app/views/bubbles/_date.html.erb
T
2024-11-14 12:33:34 -06:00

10 lines
517 B
Plaintext

<% if bubble.due_on.present? %>
<%= form_with model: bubble, url: bucket_bubble_path(bubble.bucket, bubble), data: { controller: "form" } do |form| %>
<label class="bubble__bubble bubble__meta bubble__date">
<%= html_escape bubble.due_on.strftime("%b <br> %d").html_safe %>
<%= form.date_field :due_on, class: "input input--hidden", data: { action: "change->form#submit click->form#showPicker" } %>
<span class="for-screen-reader">Change the due date</span>
</label>
<% end %>
<% end %>