2 class="sugarcrmConfiguration-dialog"
3 aria-label="New SugarcrmConfiguration"
5 <form name="sugarcrmConfigurationForm" 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.sugarcrmConfiguration.name"
54 ng-messages="sugarcrmConfigurationForm['name'].$error"
55 ng-show="sugarcrmConfigurationForm['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.sugarcrmConfiguration.channel"
72 <md-option ng-value="'voice'">
73 {{ 'INTEGRATIONS.VOICE' | translate }}
77 ng-messages="sugarcrmConfigurationForm['channel'].$error"
78 ng-show="sugarcrmConfigurationForm['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>
92 ng-model="vm.sugarcrmConfiguration.type"
95 <md-option ng-value="'inbound'">
96 {{ 'INTEGRATIONS.INBOUND_IN_QUEUE' | translate }}
99 <md-option ng-value="'outbound'">
100 {{ 'INTEGRATIONS.OUTBOUND_CALL' | translate }}
104 ng-messages="sugarcrmConfigurationForm['type'].$error"
105 ng-show="sugarcrmConfigurationForm['type'].$touched"
108 <div ng-message="required">
109 <span translate="INTEGRATIONS.ERRORS.TYPE_REQUIRED"
110 >Type field is required</span
114 </md-input-container>
116 <div class="error-list">
118 ng-repeat="error in vm.errors"
121 layout-align="space-between center"
124 <span class="message">{{error.message}}</span>
125 <span class="type">({{error.type}})</span>
127 <md-button class="md-icon-button">
129 md-font-icon="icon-alert-box"
130 aria-label="alert error"
140 layout-align="space-between center"
141 ng-if="!vm.crudPermissions.readOnly"
143 <div layout="row" layout-align="start center">
146 ng-if="vm.crudPermissions.canEdit && !vm.newSugarcrmConfiguration"
147 ng-click="vm.saveSugarcrmConfiguration()"
148 class="send-button md-accent md-raised"
149 ng-disabled="sugarcrmConfigurationForm.$invalid || sugarcrmConfigurationForm.$pristine"
151 translate="INTEGRATIONS.SAVE"
152 translate-attr-aria-label="INTEGRATIONS.SAVE"
159 ng-if="vm.crudPermissions.canEdit && vm.newSugarcrmConfiguration"
160 ng-click="vm.addNewSugarcrmConfiguration()"
161 class="send-button md-accent md-raised"
162 ng-disabled="sugarcrmConfigurationForm.$invalid"
164 translate="INTEGRATIONS.ADD_SUGARCRMCONFIGURATION"
165 translate-attr-aria-label="INTEGRATIONS.ADD_SUGARCRMCONFIGURATION"
167 ADD SUGARCRMCONFIGURATION
172 class="md-icon-button"
173 ng-if="vm.crudPermissions.canDelete && !vm.newSugarcrmConfiguration"
174 ng-click="vm.deleteSugarcrmConfiguration($event)"
177 translate-attr-aria-label="INTEGRATIONS.DELETE"
179 <md-icon md-font-icon="icon-delete"></md-icon>
181 ><span translate="INTEGRATIONS.DELETE">DELETE</span></md-tooltip