-
Notifications
You must be signed in to change notification settings - Fork 724
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from luiscoimbra/master
added PasswordField type to forms
- Loading branch information
Showing
11 changed files
with
66 additions
and
13 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
17 changes: 17 additions & 0 deletions
17
src/javascripts/ng-admin/Crud/component/directive/column/PasswordColumn.js
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,17 @@ | ||
define(function(require) { | ||
'use strict'; | ||
|
||
var angular = require('angular'); | ||
var passwordColumnView = require('text!../../../view/column/password.html'); | ||
|
||
function PasswordColumn() { | ||
return { | ||
restrict: 'E', | ||
template: passwordColumnView | ||
}; | ||
} | ||
|
||
PasswordColumn.$inject = []; | ||
|
||
return PasswordColumn; | ||
}); |
17 changes: 17 additions & 0 deletions
17
src/javascripts/ng-admin/Crud/component/directive/field/PasswordField.js
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,17 @@ | ||
define(function(require) { | ||
'use strict'; | ||
|
||
var angular = require('angular'); | ||
var passwordFieldView = require('text!../../../view/field/password.html'); | ||
|
||
function PasswordField() { | ||
return { | ||
restrict: 'E', | ||
template: passwordFieldView | ||
}; | ||
} | ||
|
||
PasswordField.$inject = []; | ||
|
||
return PasswordField; | ||
}); |
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,7 @@ | ||
<div ng-switch="entity.getField(column.field.name()).isEditLink()"> | ||
<a ng-switch-when="true" ng-click="edit(entity)"> | ||
xxx | ||
</a> | ||
|
||
<span ng-switch-default>xxx</span> | ||
</div> |
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,6 @@ | ||
<input id="{{ field.name() }}" | ||
class="form-control" | ||
type="password" | ||
ng-model="field.value" | ||
ng-required="field.validation().required" | ||
maxlength="{{ field.validation.maxlength }}" /> |
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