Skip to content

Commit

Permalink
Make birthday a text input
Browse files Browse the repository at this point in the history
  • Loading branch information
MICHAELMUNAVU83 committed Dec 4, 2024
1 parent bbc1bf1 commit 51cafff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/animina_web/components/beta_registration_components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -239,16 +239,17 @@ defmodule AniminaWeb.BetaRegistrationComponents do
</label>
<div phx-feedback-for={@f[:birthday].name} class="mt-2">
<%= date_input(@f, :birthday,
<%= text_input(@f, :birthday,
class:
"block w-full rounded-md border-0 py-1.5 text-gray-900 dark:bg-gray-700 dark:text-white dark:[color-scheme:dark] shadow-sm ring-1 ring-inset placeholder:text-gray-400 focus:ring-2 focus:ring-inset sm:text-sm phx-no-feedback:ring-gray-300 phx-no-feedback:focus:ring-indigo-600 sm:leading-6 " <>
unless(get_field_errors(@f[:birthday], :birthday) == [],
do: "ring-red-600 focus:ring-red-600",
else: "ring-gray-300 focus:ring-indigo-600"
),
placeholder: "",
placeholder: "20.12.1970",
value: @f[:birthday].value,
autocomplete: gettext("bday"),
"phx-debounce": "blur"
) %>
Expand Down

0 comments on commit 51cafff

Please sign in to comment.