% if bubble.due_on.present? %> <%= form_with model: bubble, data: { controller: "form" } do |form| %> <%= bubble.due_on.strftime("%b %d").html_safe %> <%= form.date_field :due_on, class: "input input--hidden", data: { action: "change->form#submit click->form#showPicker"} %> Change the due date <% end %> <% else %>