summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorxh3n1 <myrtajxheni@gmail.com>2017-07-05 16:49:05 +0200
committerxh3n1 <myrtajxheni@gmail.com>2017-07-12 17:21:05 +0200
commit25437b96d2ec7575b634b749c0c4978fbafa5380 (patch)
tree33439125222d6d1ea5744d25a0614cc8f35e8b16 /templates
parentaa28aa5b738080f5487a6df676a950a80592b24b (diff)
Adjust dropdown options of instant messengers and social profile
Diffstat (limited to 'templates')
-rw-r--r--templates/detailItems/username.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/detailItems/username.html b/templates/detailItems/username.html
new file mode 100644
index 00000000..2b4f88ad
--- /dev/null
+++ b/templates/detailItems/username.html
@@ -0,0 +1,11 @@
+<select ng-if="ctrl.availableOptions.length > 0" 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>
+<label ng-if="ctrl.availableOptions.length === 0" for="details-{{ctrl.name}}-{{ctrl.index}}">{{ctrl.meta.readableName}}</label>
+<input type="text" id="details-{{ctrl.name}}-{{ctrl.index}}" name="{{ctrl.name}}"
+ ng-model="ctrl.data.value" ng-model-options="{ debounce: 500 }"
+ ng-change="ctrl.model.updateContact()" value=""
+ placeholder="Username"
+ focus-expression="$parent.ctrl.focus === ctrl.name"
+/>
+<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}"></button>