-
Notifications
You must be signed in to change notification settings - Fork 108
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
1 parent
ca75892
commit 6d171db
Showing
2 changed files
with
71 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
###* | ||
@ngdoc directive | ||
@name angularCmsApp.directive:cmsFormGroup | ||
@element div | ||
@function | ||
@description | ||
Resize textarea automatically to the size of its text content. | ||
**Note:** ie<9 needs pollyfill for window.getComputedStyle | ||
@example | ||
<example module="angularCmsApp"> | ||
<file name="index.html"> | ||
<textarea ng-model="text"rx-autogrow class="input-block-level"></textarea> | ||
<pre>{{text}}</pre> | ||
</file> | ||
</example> | ||
### | ||
'use strict' | ||
angular.module('angularCmsApp').directive('cmsFormGroup', () -> | ||
template: """ | ||
<div class="form-group"> | ||
<label class="control-label col-sm-3 col-xs-3">{{label}}</label> | ||
<div class="controls col-sm-9 col-xs-9" ng-transclude> | ||
</div> | ||
</div> | ||
""" | ||
restrict: 'E' | ||
replace: true | ||
transclude: true | ||
scope: | ||
label: '@' | ||
hint: '@' | ||
link: (scope, element, attrs) -> | ||
element.find('input').addClass('form-control') | ||
) |
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,35 @@ | ||
<!doctype html> | ||
|
||
<html> | ||
|
||
<head> | ||
<title>Forgot Password Page</title> | ||
<meta name="viewport" content="width=device-width"> | ||
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.1/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="main.css"> | ||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | ||
<script type="text/javascript" src="https://netdna.bootstrapcdn.com/bootstrap/3.0.1/js/bootstrap.min.js"></script> | ||
</head> | ||
|
||
<body> | ||
<div class="container login"> | ||
<form class="form-forgot well well-sm"> | ||
<div class="form-group"> | ||
<img src="http://placehold.it/300x125&text=Logo" alt="Logo" class="logo"> | ||
</div> | ||
<div class="form-group"> | ||
<input type="email" class="form-control" placeholder="Email" disabled> | ||
</div> | ||
<div class="form-group"> | ||
<input type="password" class="form-control" placeholder="New Password"> | ||
</div> | ||
<div class="form-group"> | ||
<input type="password" class="form-control" placeholder="Confirm Password"> | ||
</div> | ||
<button class="btn btn-lg btn-primary btn-block" type="submit">Update Password</button> | ||
<hr> | ||
</form> | ||
</div> | ||
</body> | ||
|
||
</html> |