diff options
Diffstat (limited to 'templates/detailItems/email.html')
-rw-r--r-- | templates/detailItems/email.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/detailItems/email.html b/templates/detailItems/email.html new file mode 100644 index 00000000..d297bf9d --- /dev/null +++ b/templates/detailItems/email.html @@ -0,0 +1,13 @@ +<select ng-model="ctrl.type" ng-model-options="{ debounce: 500 }" ng-change="ctrl.changeType(ctrl.type)"> + <option ng-repeat="option in ctrl.availableOptions" value="{{option.id}}">{{option.name}}</option> +</select> +<a ng-if="ctrl.data.value.length" class="item-action" href="mailto:{{ctrl.data.value}}"> + <i class="icon-mail"></i> +</a> +<input type="email" id="details-{{ctrl.name}}-{{ctrl.index}}" name="email" + ng-model="ctrl.data.value" email-model ng-model-options="{ debounce: 500 }" + ng-change="ctrl.model.updateContact()" value="" + placeholder="{{ctrl.meta.readableName}}" + focus-expression="$parent.ctrl.focus === ctrl.name" +/> +<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}"></button> |