client/app/auth/login_modal.html
author rougeronj
Wed, 08 Apr 2015 00:36:37 +0200
changeset 77 ee963d1c409b
parent 68 b209b49c99fb
child 96 3542155549e4
permissions -rw-r--r--
Add new serializer for the data send by Orpheo. We receive XML so we parse it to json. Then we parse some html to get the proper data of each attribute. Add xmlToJson parser module to requirements.txt

<div class="modal-header ng-scope">
	<h3 class="modal-title">Authentication Page</h3>
</div>

<form ng-submit="login()">
	<div class="modal-body ng-scope">
		<input type="text" class="form-control" ng-model='username' placeholder="Username">
		<input type="password" class="form-control" ng-model='password' placeholder="Password">
	</div>

	<div class="modal-footer ng-scope">
		<a href='' ng-click="register()">Creer un compte</a>
		<button type="button" ng-click="cancel()" class="btn btn-warning">Cancel</button>
		<button type="submit" ng-disabled="userForm.$invalid" class="btn btn-primary">Login</button>
	</div>
</form>