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

Validate that a KBO number is 10 digits long before saving #230

Merged
merged 4 commits into from
Dec 15, 2021

Conversation

nbittich
Copy link
Collaborator

No description provided.

Copy link
Contributor

@Windvis Windvis left a comment

Choose a reason for hiding this comment

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

Another thing I would add is some help text below the input fields, similar to the phone number help text for example.

Maybe something like this?
Formaat: 0123456789

This can be added here: https://github.com/lblod/frontend-contact-hub/blob/015b2fe8f2bf90571da4aac14c2fbdfff4fb6ff7/app/helpers/help-text.js#L4-L10

and then used like {{help-text "kbo"}} in both the edit and creation page.

app/validations/worship-administrative-unit.js Outdated Show resolved Hide resolved
@Windvis Windvis changed the title validate kbo Validate that a KBO number is 10 digits long before saving Dec 15, 2021
@Windvis Windvis added the enhancement New feature or request label Dec 15, 2021
@Windvis Windvis merged commit 3a1cfb3 into development Dec 15, 2021
@Windvis Windvis deleted the feature/validate-kbo branch December 15, 2021 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants