diff options
author | Alexander Weidinger <alexwegoo@gmail.com> | 2017-03-19 14:34:58 +0100 |
---|---|---|
committer | Alexander Weidinger <alexwegoo@gmail.com> | 2017-04-19 19:06:06 +0200 |
commit | 2f1b9462f9482ddb77ab46f85b58e0e0d1ef1be4 (patch) | |
tree | 9012f45aaaa4320575df94b029ed5ec847006deb /templates | |
parent | cffc4cec5600ca3540bdaab0e73adb8444b08ccf (diff) |
Added rename addressbook functionality.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/addressBook.html | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/templates/addressBook.html b/templates/addressBook.html index 73c2aca1..eb34218e 100644 --- a/templates/addressBook.html +++ b/templates/addressBook.html @@ -1,5 +1,9 @@ -<span class="addressBookName" title="{{ctrl.addressBook.displayName}}">{{ctrl.addressBook.displayName}}</span> -<span class="utils"> +<form ng-submit="ctrl.renameAddressBook()" ng-show="ctrl.editing"> + <input select-expression="ctrl.editing" placeholder="{{ctrl.t.addressBookName}}" class="renameAddressBookInput" ng-model="ctrl.addressBook.displayName" type="text" /> + <input type="submit" value="" class="renameAddressBookSubmit icon-confirm action pull-right" /> +</form> +<span class="addressBookName" title="{{ctrl.addressBook.displayName}}" ng-hide="ctrl.editing">{{ctrl.addressBook.displayName}}</span> +<span class="utils" ng-hide="ctrl.editing"> <span class="action"> <span class="addressbooklist-icon icon-shared" @@ -34,6 +38,12 @@ <span>{{ctrl.t.download}}</span> </a> </li> + <li> + <button ng-click="ctrl.edit()"> + <span class="icon icon-rename"></span> + <span>{{ctrl.t.renameAddressbook}}</span> + </button> + </li> <li ng-if="ctrl.list.length > 1"> <button ng-click="ctrl.deleteAddressBook()"> <span class="icon icon-delete"></span> |