summaryrefslogtreecommitdiffstats
path: root/templates/detailItems/email.html
blob: 543ec32cbd9ee87f9fe5225c2b29b14c8404fcd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<select ng-model="ctrl.type" ng-model-options="{ debounce: 500 }" ng-change="ctrl.changeType(ctrl.type)" ng-disabled="ctrl.contact.readOnly">
    <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.updateContact()" value=""
       placeholder="{{ctrl.meta.readableName}}"
       focus-expression="$parent.ctrl.focus === ctrl.name"
       ng-disabled="ctrl.contact.readOnly"
/>
<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.contact.readOnly"></button>