<%= form.label :name %>
<%= form.text_field :name, class: 'input input-bordered w-full' %>
<%= form.label :started_at %>
<%= form.datetime_field :started_at,
include_seconds: false,
class: 'input input-bordered w-full',
value: trip.started_at,
data: {
datetime_target: "startedAt",
action: "change->datetime#updateCoordinates"
} %>
<%= form.label :ended_at %>
<%= form.datetime_field :ended_at,
include_seconds: false,
class: 'input input-bordered w-full',
value: trip.ended_at,
data: {
datetime_target: "endedAt",
action: "change->datetime#updateCoordinates"
} %>
<%= form.label :notes %>
<%= form.rich_text_area :notes, class: 'trix-content-editor' %>
<%= form.submit class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %>