diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-24 19:19:49 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-24 19:19:49 +0200 |
commit | 28583d67e3e878b71c3bac9279b31e2d56bfb621 (patch) | |
tree | a61eba3ea41bd95f9908fc9a6df80736deab2082 /templates | |
parent | 4729f93701f0129e540d1cdab80c975e8d02caa1 (diff) |
Add popup error
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/addressBookList.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/addressBookList.html b/templates/addressBookList.html index 762dcb8a..454461f2 100644 --- a/templates/addressBookList.html +++ b/templates/addressBookList.html @@ -5,8 +5,9 @@ <form ng-submit="ctrl.createAddressBook()" name="newAddressBookForm"> <input id="newList" placeholder="{{ctrl.t.addressBookName}}" class="newAddressBookInput" ng-model="ctrl.newAddressBookName" type="text" - autocomplete="off" autocorrect="off" spellcheck="false" - required ng-pattern="ctrl.addressBookRegex" /> + autocomplete="off" autocorrect="off" spellcheck="false" tooltip-enable="!newAddressBookForm.$pristine" + required ng-pattern="ctrl.addressBookRegex" tooltip-is-open="newAddressBookForm.$invalid" tooltip-trigger="none" + tooltip-placement="top" uib-tooltip="{{ctrl.t.regexError}}" tooltip-append-to-body="true"/> <input type="submit" value="" class="newAddressBookSubmit inline-button icon-confirm action pull-right" ng-disabled="newAddressBookForm.$invalid || newAddressBookForm.$pristine" /> </form> |