use today's date when adding new shot groups

This commit is contained in:
2022-02-23 20:51:42 -05:00
parent 46387e8d7a
commit d79d0fa179
4 changed files with 8 additions and 3 deletions

View File

@ -36,7 +36,11 @@
<%= error_tag(f, :notes, "col-span-3") %>
<%= label(f, :date, gettext("Date (UTC)"), class: "title text-lg text-primary-600") %>
<%= date_input(f, :date, class: "input input-primary col-span-2") %>
<%= date_input(f, :date,
class: "input input-primary col-span-2",
phx_update: "ignore",
value: Date.utc_today()
) %>
<%= error_tag(f, :notes, "col-span-3") %>
<%= submit(dgettext("actions", "Save"),