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

Libraries: Form Validation #152

Merged
merged 1 commit into from
Dec 13, 2018
Merged

Conversation

Garfield-fr
Copy link
Contributor

  • NEW: Library Form Validation

How to test:
Run the scripts bootstrap and setup
Check form validation on edit.
Fields Required:

  • Name
  • Code (test unique valuer)
  • Time Range (start_time > end_time)
  • Date Exception: title, Time period, etc…

Co-authored-by: Peter Weber [email protected]
Signed-off-by: Bertrand Zuchuat [email protected]

@Garfield-fr Garfield-fr force-pushed the form-validation branch 4 times, most recently from 193c416 to 8d571fc Compare December 10, 2018 10:26
@NicolasLabat
Copy link
Contributor

(perhaps just for info) Opening hours : a control is done when end time is less than start time. However, when adding a period, there is no control between periods. It is for example possible to submit :
08:00 to 12:00
11:00 to 17:00

@NicolasLabat
Copy link
Contributor

Opening hours : it is possible to submit a non-correct format.
Example : 08:00 13:30pm

@NicolasLabat
Copy link
Contributor

(Enhancement?) Date exceptions : when using the "repeat" action, it could be interesting to display the end date. For example : if the library is closed on Sunday starting the 02.12 for 16 weeks, it is displayed "weekly=16" but we have no information about the end date precisely.

@Garfield-fr Garfield-fr force-pushed the form-validation branch 2 times, most recently from d037116 to a91553c Compare December 11, 2018 08:10
Copy link

@BadrAly BadrAly left a comment

Choose a reason for hiding this comment

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

Application test, no problems.

@Garfield-fr Garfield-fr force-pushed the form-validation branch 6 times, most recently from 23e2a2a to 744012d Compare December 12, 2018 12:40
@reropag reropag self-requested a review December 12, 2018 13:17
Co-authored-by: Peter Weber <[email protected]>
Signed-off-by: Bertrand Zuchuat <[email protected]>
@rerowep rerowep merged commit a98039f into rero:master Dec 13, 2018
@Garfield-fr Garfield-fr deleted the form-validation branch December 13, 2018 09:40
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.

6 participants