Skip to content

Commit

Permalink
added renamed files
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniespratley committed Dec 17, 2014
1 parent ca75892 commit 6d171db
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
36 changes: 36 additions & 0 deletions app/scripts/directives/cmsformgroup.coffee
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')
)
35 changes: 35 additions & 0 deletions app/views/reset-password.html
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>

0 comments on commit 6d171db

Please sign in to comment.