2 class="vtigerConfiguration-dialog"
3 aria-label="New VtigerConfiguration"
5 <form name="vtigerConfigurationForm" 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"
43 <md-input-container class="md-block">
44 <label translate="INTEGRATIONS.NAME">Name</label>
48 ng-model="vm.vtigerConfiguration.name"
54 ng-messages="vtigerConfigurationForm['name'].$error"
55 ng-show="vtigerConfigurationForm['name'].$touched"
58 <div ng-message="required">
59 <span translate="INTEGRATIONS.ERRORS.NAME_REQUIRED"
60 >Name field is required</span
65 <md-input-container class="md-block">
66 <label translate="INTEGRATIONS.CHANNEL">Channel</label>
69 ng-model="vm.vtigerConfiguration.channel"
72 <md-option ng-value="'voice'">
73 {{ 'INTEGRATIONS.VOICE' | translate }}
77 ng-messages="vtigerConfigurationForm['channel'].$error"
78 ng-show="vtigerConfigurationForm['channel'].$touched"
81 <div ng-message="required">
82 <span translate="INTEGRATIONS.ERRORS.CHANNEL_REQUIRED"
83 >Channel field is required</span
88 <md-input-container class="md-block">
89 <label translate="INTEGRATIONS.TYPE">Type</label>
90 <md-select name="type" ng-model="vm.vtigerConfiguration.type" required>
91 <md-option ng-value="'inbound'">
92 {{ 'INTEGRATIONS.INBOUND_IN_QUEUE' | translate }}
95 <md-option ng-value="'outbound'">
96 {{ 'INTEGRATIONS.OUTBOUND_CALL' | translate }}
100 ng-messages="vtigerConfigurationForm['type'].$error"
101 ng-show="vtigerConfigurationForm['type'].$touched"
104 <div ng-message="required">
105 <span translate="INTEGRATIONS.ERRORS.TYPE_REQUIRED"
106 >Type field is required</span
110 </md-input-container>
112 <div class="error-list">
114 ng-repeat="error in vm.errors"
117 layout-align="space-between center"
120 <span class="message">{{error.message}}</span>
121 <span class="type">({{error.type}})</span>
123 <md-button class="md-icon-button">
125 md-font-icon="icon-alert-box"
126 aria-label="alert error"
136 layout-align="space-between center"
137 ng-if="!vm.crudPermissions.readOnly"
139 <div layout="row" layout-align="start center">
142 ng-if="vm.crudPermissions.canEdit && !vm.newVtigerConfiguration"
143 ng-click="vm.saveVtigerConfiguration()"
144 class="send-button md-accent md-raised"
145 ng-disabled="vtigerConfigurationForm.$invalid || vtigerConfigurationForm.$pristine"
147 translate="INTEGRATIONS.SAVE"
148 translate-attr-aria-label="INTEGRATIONS.SAVE"
155 ng-if="vm.crudPermissions.canEdit && vm.newVtigerConfiguration"
156 ng-click="vm.addNewVtigerConfiguration()"
157 class="send-button md-accent md-raised"
158 ng-disabled="vtigerConfigurationForm.$invalid"
160 translate="INTEGRATIONS.ADD_VTIGERCONFIGURATION"
161 translate-attr-aria-label="INTEGRATIONS.ADD_VTIGERCONFIGURATION"
163 ADD VTIGERCONFIGURATION
168 class="md-icon-button"
169 ng-if="vm.crudPermissions.canDelete && !vm.newVtigerConfiguration"
170 ng-click="vm.deleteVtigerConfiguration($event)"
173 translate-attr-aria-label="INTEGRATIONS.DELETE"
175 <md-icon md-font-icon="icon-delete"></md-icon>
177 ><span translate="INTEGRATIONS.DELETE">DELETE</span></md-tooltip