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 validations to the site creation and edit pages #184

Merged
merged 8 commits into from
Oct 13, 2021

Conversation

gcapurso
Copy link
Contributor

@gcapurso gcapurso commented Oct 5, 2021

No description provided.

@gcapurso gcapurso requested a review from Windvis October 5, 2021 15:55
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.

(I handled these things in the commits I'm about to push)

app/validations/site.js Outdated Show resolved Hide resolved
app/validations/site.js Outdated Show resolved Hide resolved
- always make the address mandatory
- fix an issue were the previous primary site was "lost" when creating a new one or when marking an existing site as primary
- fix an issue where a site was listed twice after changing it from non-primary to primary
- remove the records when leaving the page
- add help text were needed
- validation tweaks:
    - the telephone regex is less strict
    - the website needs to be prefixed with http(s)
    - the full address can either always be required or when 1 field has been edited
@gcapurso gcapurso marked this pull request as ready for review October 13, 2021 09:19
@Windvis Windvis merged commit 8a924e1 into master Oct 13, 2021
@Windvis Windvis deleted the feature/sites-validations branch October 13, 2021 09:35
@Windvis Windvis changed the title Feature/sites validations Add validations to the site creation and edit pages Nov 18, 2021
@Windvis Windvis added the enhancement New feature or request label Nov 18, 2021
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