mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 15:11:22 +00:00
GUACAMOLE-292: Add support for email fields.
This commit is contained in:
@@ -47,6 +47,16 @@ angular.module('form').provider('formService', function formServiceProvider() {
|
||||
templateUrl : 'app/form/templates/textField.html'
|
||||
},
|
||||
|
||||
/**
|
||||
* Email address field type.
|
||||
*
|
||||
* @see {@link Field.Type.EMAIL}
|
||||
* @type FieldType
|
||||
*/
|
||||
'EMAIL' : {
|
||||
templateUrl : 'app/form/templates/emailField.html'
|
||||
},
|
||||
|
||||
/**
|
||||
* Numeric field type.
|
||||
*
|
||||
|
@@ -0,0 +1,8 @@
|
||||
<div class="email-field">
|
||||
<input type="email"
|
||||
ng-model="model"
|
||||
ng-hide="readOnly"
|
||||
autocorrect="off"
|
||||
autocapitalize="off"/>
|
||||
<a href="mailto:{{model}}" ng-show="readOnly">{{model}}</a>
|
||||
</div>
|
Reference in New Issue
Block a user