Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make birthday a text input #1181

Merged
merged 3 commits into from
Dec 4, 2024
Merged

Make birthday a text input #1181

merged 3 commits into from
Dec 4, 2024

Conversation

MICHAELMUNAVU83
Copy link
Collaborator

I added the birthdate as a text input , in the next PR I will work on validation and formatting of this
Screenshot 2024-12-04 at 08 44 06

@MICHAELMUNAVU83 MICHAELMUNAVU83 marked this pull request as ready for review December 4, 2024 09:03
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",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That placeholder should display the date which is today - 18 years.

@MICHAELMUNAVU83
Copy link
Collaborator Author

I have added the placeholder to be 18 years from now.

Screenshot 2024-12-04 at 18 48 19

@wintermeyer wintermeyer merged commit 256bf87 into main Dec 4, 2024
1 check passed
@wintermeyer wintermeyer deleted the make-birthdate-a-text=-input branch December 4, 2024 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants