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

Enhancement: Date field/validation or integration with angular-ui bootstrap's datepicker #14

Closed
karlbloedorn opened this issue Mar 20, 2014 · 1 comment

Comments

@karlbloedorn
Copy link

I didn't find a datetime validation in aa.formExtensions and so I'm currently doing it separately with the following html in order to choose and validate date inputs.

<div class='form-group'>
     <div class='col-sm-3'>
        <label>Creation Date *</label>
        <input ng-model='item.CreationDate' type='text' datepicker-popup required class='form-control'>
     </div>
</div>

Maybe there is a better way that I'm just not seeing.

http://angular-ui.github.io/bootstrap/#/datepicker

@johnculviner
Copy link
Member

Yeah I haven't created any new validation rules other than what is baked into angular by default. Form Extensions should display a generic "Creation Date is invalid" if the field is marked as invalid in the form but there isn't a message explicitly registered at ex: "$scope.exampleForm.CreationDate.$error.invaidDate" for example. Make sense? You can add new messages at: aaFormExtensionsProvider.validationMessages.MY_KEY_HERE

Let me know what happens. Thanks!

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

No branches or pull requests

2 participants