Ajout d'une requete pour l'identification. Non testé. Modification des champs de l'overlay.
This commit is contained in:
parent
49109b657a
commit
0ea58c5684
3 changed files with 59 additions and 24 deletions
client
|
@ -1,15 +1,36 @@
|
|||
|
||||
|
||||
// Make Namespace
|
||||
var identity = {} ;
|
||||
|
||||
|
||||
|
||||
// Fetch Status
|
||||
identity.fetchStatus = function(){
|
||||
|
||||
mainApp.controller('identityCtrl', function($scope, $http) {
|
||||
|
||||
$scope.identityFormData = {};
|
||||
|
||||
$scope.processForm = function() {
|
||||
|
||||
$http({
|
||||
method : 'POST',
|
||||
url : 'http://148.60.11.31/',
|
||||
data : $.param($scope.identityFormData),
|
||||
headers : { 'Content-Type': 'application/x-www-form-urlencoded' }
|
||||
})
|
||||
.success(function(data) {
|
||||
console.log(data);
|
||||
|
||||
if (!data.success) {
|
||||
// if not successful, bind errors to error variables
|
||||
//$scope.errorName = data.errors.name;
|
||||
//$scope.errorSuperhero = data.errors.superheroAlias;
|
||||
} else {
|
||||
// if successful, bind success message to message
|
||||
//$scope.message = data.message;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
// TODO
|
||||
|
||||
return new Array("0", "user1", "25/02/2016");
|
||||
|
||||
|
||||
}
|
|
@ -52,21 +52,28 @@
|
|||
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
<div class="form-group">
|
||||
<label label-default="" for="exampleInputEmail1">Email address</label>
|
||||
<input class="form-control" id="exampleInputEmail1"
|
||||
placeholder="Enter email" type="email">
|
||||
<label label-default="" for="inputUser">User</label>
|
||||
<input class="form-control" id="inputUser"
|
||||
placeholder="Enter email" type="text" ng-model="identityFormData.user">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label label-default="" for="exampleInputPassword1">Password</label>
|
||||
<input class="form-control" id="exampleInputPassword1"
|
||||
placeholder="Password" type="password">
|
||||
<label label-default="" for="inputProject">Project</label>
|
||||
<input class="form-control" id="inputProject"
|
||||
placeholder="Password" type="password" ng-model="identityFormData.project">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label label-default="" for="inputPassword">Password</label>
|
||||
<input class="form-control" id="inputPassword"
|
||||
placeholder="Password" type="password" ng-model="identityFormData.password">
|
||||
</div>
|
||||
|
||||
<p class="text-right"><a href="#">Forgot password?</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="modal-footer"> <a href="#" data-dismiss="modal" class="btn btn-default">Close</a>
|
||||
<a href="#" class="btn btn-primary">Login</a>
|
||||
<a href="#" class="btn btn-primary" ng-click="processForm()">Login</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -10,21 +10,28 @@
|
|||
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
<div class="form-group">
|
||||
<label label-default="" for="exampleInputEmail1">Email address</label>
|
||||
<input class="form-control" id="exampleInputEmail1"
|
||||
placeholder="Enter email" type="email">
|
||||
<label label-default="" for="inputUser">User</label>
|
||||
<input class="form-control" id="inputUser"
|
||||
placeholder="Enter email" type="text" ng-model="identityFormData.user">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label label-default="" for="exampleInputPassword1">Password</label>
|
||||
<input class="form-control" id="exampleInputPassword1"
|
||||
placeholder="Password" type="password">
|
||||
<label label-default="" for="inputProject">Project</label>
|
||||
<input class="form-control" id="inputProject"
|
||||
placeholder="Password" type="password" ng-model="identityFormData.project">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label label-default="" for="inputPassword">Password</label>
|
||||
<input class="form-control" id="inputPassword"
|
||||
placeholder="Password" type="password" ng-model="identityFormData.password">
|
||||
</div>
|
||||
|
||||
<p class="text-right"><a href="#">Forgot password?</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="modal-footer"> <a href="#" data-dismiss="modal" class="btn btn-default">Close</a>
|
||||
<a href="#" class="btn btn-primary">Login</a>
|
||||
<a href="#" class="btn btn-primary" ng-click="processForm()">Login</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue