SHARE
TWEET
Untitled
a guest
May 23rd, 2016
50
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- HTML-------------------------------
- <form name="registerForm" role="form" ng-submit="inscriptionCtrl.register(inscriptionCtrl.credentials)">
- <!-- LOGIN/PASSWORD : TABLE USER -->
- <div class="form-group" ng-class="{ 'has-error': registerForm.login.$invalid && registerForm.login.$dirty }">
- <label for="login">Login:</label>
- <input type="text"
- class="form-control"
- id="login"
- name="login"
- ng-model="inscriptionCtrl.credentials.login"
- required/>
- <div ng-messages="inscriptionCtrl.registerForm.login.$error">
- <ng-message when="required">Veuillez compléter ce champ obligatoire.</ng-message>
- </div>
- </div>
- <div class="form-group">
- <label for="password">Password:</label>
- <input type="password"
- class="form-control"
- id="password"
- name="password"
- ng-model="inscriptionCtrl.credentials.password"
- required
- minlength="6"
- pattern="([A-Z].*[a-z]|[a-z].*[A-Z])"/>
- <div ng-messages="inscriptionCtrl.registerForm.password.$error">
- <ng-message when="required">Veuillez compléter ce champ obligatoire.</ng-message>
- <ng-message when="minlength">Ce champ doit contenir au minimum 6 caractères.</ng-message>
- <ng-message when="pattern">La valeur de ce champ doit contenir au moins une majuscule et une minuscule.</ng-message>
- </div>
- </div>
- <button type="submit" class="btn btn-primary">Submit</button>
- </form>
- JS----------------------------------------
- var myModule = angular.module('myModule',['ngRoute','ngResource','ngMessages','pascalprecht.translate','ui.bootstrap']);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
