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

Birthday field and Passport Expiration Date as a text inputs #38

Open
balkian opened this issue Apr 6, 2013 · 3 comments
Open

Birthday field and Passport Expiration Date as a text inputs #38

balkian opened this issue Apr 6, 2013 · 3 comments

Comments

@balkian
Copy link
Member

balkian commented Apr 6, 2013

Create a new user via the site setup and check the form.

These fields should be date inputs or similar. Besides, the time string format is not specified.

@zupo
Copy link
Member

zupo commented Apr 7, 2013

The user panel use an older form library called "formlib" (other forms we use in the site use a newer one, called "z3c.form").

Find documentation online for formlib and see how to configure a date field to display a Date(Time) widget instead of the TextLine widget.

OR:

Easy way out: add description to these fields that tells the user in which format should the date be.

@balkian
Copy link
Member Author

balkian commented Apr 7, 2013

I looked into it, and it doesn't seem to be that easy/straightforward, so it'd involve adding javascript to handle it. I hope I'm wrong.

Can't we just use z3c.form instead? If it's the recommended way to implement forms in Plone 4, why aren't we using it already?

@zupo
Copy link
Member

zupo commented Apr 7, 2013

Legacy. Before z3c.form was invented, Plone already had these forms. And ever since z3c.form became standard, no-one yet had the time/money to rewrite them to z3c.form.

A PLIP (PLone Improvement Proposal) about this is already in the works. It is planned to be part of the 4.4 release (approx the end of this year, but this is open source, dates are not fixed): https://dev.plone.org/ticket/12253

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants