2 class="cm-contact-dialog"
3 aria-label="{{ 'CONTACTMANAGER.DUPLICATE_CONTACT' | translate }}"
5 <form name="contactForm" class="md-inline-form" novalidate>
6 <md-toolbar class="md-accent md-hue-2">
8 class="md-toolbar-tools"
10 layout-align="space-between center"
12 <span class="title">{{ vm.title | translate }}</span>
13 <md-button class="md-icon-button" ng-click="vm.closeDialog()">
15 md-font-icon="icon-close"
16 aria-label="Close dialog"
22 <md-dialog-content ms-scroll>
23 <div class="error-list">
25 ng-repeat="error in vm.errors"
28 layout-align="space-between center"
31 <span class="message">{{error.message}}</span>
32 <span class="type">({{error.type}})</span>
34 <md-button class="md-icon-button">
36 md-font-icon="icon-alert-box"
37 aria-label="alert error"
44 <md-input-container class="md-block">
45 <label translate="CONTACTMANAGER.LIST">List</label>
46 <md-select name="list" ng-model="vm.contact.ListId">
47 <md-option ng-value="list.id" ng-repeat="list in vm.lists.rows"
48 >{{list.name}}</md-option
53 ng-messages="contactForm.list.$error"
54 ng-show="contactForm.list.$touched"
57 <div ng-message="required">
58 <span translate="CONTACTMANAGER.ERRORS.LIST_REQUIRED"
59 >List field is required</span
65 <div class="error-list">
67 ng-repeat="error in vm.errors"
70 layout-align="space-between center"
73 <span class="message">{{error.message}}</span>
74 <span class="type">({{error.type}})</span>
76 <md-button class="md-icon-button">
78 md-font-icon="icon-alert-box"
79 aria-label="alert error"
87 <md-dialog-actions layout="row" layout-align="space-between center">
88 <div layout="row" layout-align="start center">
91 ng-click="vm.addNewContact()"
92 class="send-button md-accent md-raised"
93 ng-disabled="contactForm.$invalid"
95 translate="CONTACTMANAGER.ADD_CONTACT"
96 translate-attr-aria-label="CONTACTMANAGER.ADD_CONTACT"