forked from shibao/cannery
use today's date when adding new shot groups
This commit is contained in:
parent
46387e8d7a
commit
d79d0fa179
@ -2,6 +2,7 @@
|
|||||||
- Fix ammo type counts not showing when count is 0
|
- Fix ammo type counts not showing when count is 0
|
||||||
- Add prompt to create first container before first ammo group
|
- Add prompt to create first container before first ammo group
|
||||||
- Edit and delete shot groups from ammo group show page
|
- Edit and delete shot groups from ammo group show page
|
||||||
|
- Use today's date when adding new shot groups
|
||||||
|
|
||||||
# v0.2.3
|
# v0.2.3
|
||||||
- Fix modals with overflowing forms
|
- Fix modals with overflowing forms
|
||||||
|
@ -36,7 +36,11 @@
|
|||||||
<%= error_tag(f, :notes, "col-span-3") %>
|
<%= error_tag(f, :notes, "col-span-3") %>
|
||||||
|
|
||||||
<%= label(f, :date, gettext("Date (UTC)"), class: "title text-lg text-primary-600") %>
|
<%= 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") %>
|
<%= error_tag(f, :notes, "col-span-3") %>
|
||||||
|
|
||||||
<%= submit(dgettext("actions", "Save"),
|
<%= submit(dgettext("actions", "Save"),
|
||||||
|
@ -124,7 +124,7 @@ msgid "Reset password"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:42
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:46
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:54
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:54
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:156
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
#: lib/cannery_web/live/container_live/form_component.html.heex:50
|
||||||
|
@ -159,7 +159,7 @@ msgid "Register to setup %{name}"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
#: lib/cannery_web/components/add_shot_group_component.html.heex:44
|
#: lib/cannery_web/components/add_shot_group_component.html.heex:48
|
||||||
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:55
|
#: lib/cannery_web/live/ammo_group_live/form_component.html.heex:55
|
||||||
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
#: lib/cannery_web/live/ammo_type_live/form_component.html.heex:157
|
||||||
#: lib/cannery_web/live/container_live/form_component.html.heex:52
|
#: lib/cannery_web/live/container_live/form_component.html.heex:52
|
||||||
|
Loading…
Reference in New Issue
Block a user