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 validation for candidates #121

Merged
merged 1 commit into from
Oct 21, 2015

Conversation

pbochis
Copy link
Contributor

@pbochis pbochis commented Oct 16, 2015

  • add validateable behaviour to invite-candidate-input

},
validate: function(){
var valid = true;
//TODO: When https://github.com/PolymerElements/paper-dropdown-menu/pull/57 gets released, revisit this.
Copy link
Contributor

Choose a reason for hiding this comment

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

I just left them a comment. Releasing a new version should not be too cumbersome, maybe they are nice enough to release this in the next days.

@pbochis pbochis force-pushed the app-candidate-validation branch 3 times, most recently from 01f0c50 to 51e4f02 Compare October 20, 2015 15:11
@pbochis
Copy link
Contributor Author

pbochis commented Oct 20, 2015

This should be merged asap. Because of this changing all the selects in the app with paper-dropdown-menu is critical for IE compatibility.

@pbochis pbochis force-pushed the app-candidate-validation branch from 51e4f02 to 234a811 Compare October 21, 2015 09:20
@lorenzleutgeb
Copy link
Contributor

A new version of paper-dropdown-menu was released it should include the fixes you mention in your changes. From my understanding it would make sense to migrate to that version now and merge afterwards.

@pbochis pbochis force-pushed the app-candidate-validation branch from 234a811 to 654706d Compare October 21, 2015 11:27
label="Name <email>"
value="{{candidate.Address}}"
pattern="[a-zA-Z ]*<[a-z0-9!#$%&\'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&\'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?>"
error-message="Incorrect format"
Copy link
Contributor

Choose a reason for hiding this comment

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

Useless message! At least give a hint on how it should look like.

@pbochis pbochis force-pushed the app-candidate-validation branch 2 times, most recently from cbcbdd3 to 7a81485 Compare October 21, 2015 11:44
 * add validateable behaviour to `invite-candidate-input`
@pbochis pbochis force-pushed the app-candidate-validation branch from 7a81485 to f3c7f1f Compare October 21, 2015 12:00
lorenzleutgeb added a commit that referenced this pull request Oct 21, 2015
@lorenzleutgeb lorenzleutgeb merged commit 088bc8b into coduno:master Oct 21, 2015
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.

2 participants