This repository has been archived by the owner on Aug 12, 2018. It is now read-only.
forked from 401ChemistryGenealogy/ChemistryGenealogy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
angular.module('chemGeno') | ||
.controller('loginDialogController', ['$scope', '$mdDialog', function($scope, $mdDialog) { | ||
$scope.submit = function(user) { | ||
console.log(user); | ||
}; | ||
|
||
$scope.cancel = function() { | ||
$mdDialog.cancel(); | ||
}; | ||
}]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<md-dialog aria-label="login dialog" ng-cloak> | ||
<form name="userForm"> | ||
<md-input-container class="md-block" flex-gt-xs> | ||
<label>Username</label> | ||
<input ng-model="user.username"> | ||
</md-input-container> | ||
<md-input-container class="md-block" flex-gt-xs> | ||
<label>Password</label> | ||
<input ng-model="user.password"> | ||
</md-input-container> | ||
<md-button class="md-raised md-primary" ng-click="submit(user)"> | ||
login | ||
</md-button> | ||
<md-button class="md-raised md-primary" ng-click="cancel()"> | ||
cancel | ||
</md-button> | ||
</form> | ||
|
||
</md-dialog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters