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

Added client & server side validation for importing volunteer data #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

raghavio
Copy link
Collaborator

@raghavio raghavio commented Sep 7, 2015

This is for #85
Server side validation checks if

  • Email meets the regex and does not already exist.
  • Phone number is valid and does not already exist.
  • User has permission in the specified location.
  • If any of these conditions does not meet server sends back the failed imports as response to the AJAX request.

    Client side validation check if

  • Email meets the regex
  • Phone number meets the regex
  • If it does not, cell turns red and that's it. You'll still be able to submit the data.

    screen shot 2015-09-08 at 00 33 55
    After submit:
    screen shot 2015-09-08 at 00 53 02

    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