GUACAMOLE-292: Add support for email fields.

This commit is contained in:
Michael Jumper
2017-02-22 01:04:27 -08:00
parent afd051e59f
commit 8830123c9b
8 changed files with 73 additions and 2 deletions

View File

@@ -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.
*

View File

@@ -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>