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

Add date and datetime form input generators #208

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

domsinclair
Copy link
Contributor

Introduce functions form_date and form_datetime to generate date and datetime-local input elements, respectively. Each function allows setting attributes, default value, and additional HTML code for enhanced flexibility.

These both match the format of all of the other helpers and allow for the generation of the new html calendar controls.

Introduce functions `form_date` and `form_datetime` to generate date and datetime-local input elements, respectively. Each function allows setting attributes, default value, and additional HTML code for enhanced flexibility.
Revised various methods to dynamically use the primary key of the target database table. This ensures that operations such as selecting, updating, and deleting records are accurate and robust across different tables.
@domsinclair
Copy link
Contributor Author

This PR combines the previous one and a new one which ensures that model function will not fail if the tables of end users have primary keys that are not named id

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.

1 participant