1 <md-dialog class="vtigerAccount-dialog" aria-label="New VtigerAccount">
2 <form name="vtigerAccountForm" class="md-inline-form" novalidate>
3 <md-toolbar class="md-accent md-hue-2">
5 class="md-toolbar-tools"
7 layout-align="space-between center"
9 <span class="title">{{ vm.title | translate }}</span>
10 <md-button class="md-icon-button" ng-click="vm.closeDialog()">
12 md-font-icon="icon-close"
13 aria-label="Close dialog"
19 <md-dialog-content ms-scroll>
20 <div class="error-list">
22 ng-repeat="error in vm.errors"
25 layout-align="space-between center"
28 <span class="message">{{error.message}}</span>
29 <span class="type">({{error.type}})</span>
31 <md-button class="md-icon-button">
33 md-font-icon="icon-alert-box"
34 aria-label="alert error"
40 <md-input-container class="md-block">
41 <label translate="INTEGRATIONS.NAME">Name</label>
45 ng-model="vm.vtigerAccount.name"
51 ng-messages="vtigerAccountForm['name'].$error"
52 ng-show="vtigerAccountForm['name'].$touched"
55 <div ng-message="required">
56 <span translate="INTEGRATIONS.ERRORS.NAME_REQUIRED"
57 >Name field is required</span
62 <md-input-container class="md-block">
63 <label translate="INTEGRATIONS.DESCRIPTION">Description</label>
67 ng-model="vm.vtigerAccount.description"
71 ng-messages="vtigerAccountForm['description'].$error"
72 ng-show="vtigerAccountForm['description'].$touched"
75 <div ng-message="required">
76 <span translate="INTEGRATIONS.ERRORS.DESCRIPTION_REQUIRED"
77 >Description field is required</span
82 <md-input-container class="md-block">
83 <label translate="INTEGRATIONS.VTIGER_USER_NAME"
84 >vTiger_User_Name</label
89 ng-model="vm.vtigerAccount.username"
94 ng-messages="vtigerAccountForm['username'].$error"
95 ng-show="vtigerAccountForm['username'].$touched"
98 <div ng-message="required">
99 <span translate="INTEGRATIONS.ERRORS.VTIGER_USER_NAME_REQUIRED"
100 >vTiger_User_Name field is required</span
104 </md-input-container>
105 <md-input-container class="md-block">
106 <label translate="INTEGRATIONS.ACCESS_KEY">Access_Key</label>
110 ng-model="vm.vtigerAccount.accessKey"
115 ng-messages="vtigerAccountForm['accessKey'].$error"
116 ng-show="vtigerAccountForm['accessKey'].$touched"
119 <div ng-message="required">
120 <span translate="INTEGRATIONS.ERRORS.ACCESS_KEY_REQUIRED"
121 >Access_Key field is required</span
125 </md-input-container>
126 <md-input-container class="md-block">
127 <label translate="INTEGRATIONS.HOST">Host</label>
131 ng-model="vm.vtigerAccount.remoteUri"
136 ng-messages="vtigerAccountForm['remoteUri'].$error"
137 ng-show="vtigerAccountForm['remoteUri'].$touched"
140 <div ng-message="required">
141 <span translate="INTEGRATIONS.ERRORS.HOST_REQUIRED"
142 >Host field is required</span
145 <div ng-message="url">
146 <span translate="INTEGRATIONS.ERRORS.HOST_MUST_VALID_URL"
147 >Host must be a valid url http://www.xcally.com</span
151 </md-input-container>
152 <md-input-container class="md-block">
153 <label translate="INTEGRATIONS.MOTIONPROXYADDRESS"
154 >MotionProxyAddress</label
159 ng-model="vm.vtigerAccount.serverUrl"
163 <span translate="INTEGRATIONS.HELP.MOTIONPROXYADDRESS"></span>
166 ng-messages="vtigerAccountForm['serverUrl'].$error"
167 ng-show="vtigerAccountForm['serverUrl'].$touched"
170 <div ng-message="required">
171 <span translate="INTEGRATIONS.ERRORS.MOTIONPROXYADDRESS_REQUIRED"
172 >MotionProxyAddress field is required</span
175 <div ng-message="url">
177 translate="INTEGRATIONS.ERRORS.MOTIONPROXYADDRESS_MUST_VALID_URL"
178 >MotionProxyAddress must be a valid url
179 http://www.xcally.com</span
183 </md-input-container>
185 <div class="error-list">
187 ng-repeat="error in vm.errors"
190 layout-align="space-between center"
193 <span class="message">{{error.message}}</span>
194 <span class="type">({{error.type}})</span>
196 <md-button class="md-icon-button">
198 md-font-icon="icon-alert-box"
199 aria-label="alert error"
209 layout-align="space-between center"
210 ng-if="!vm.crudPermissions.readOnly"
212 <div layout="row" layout-align="start center">
215 ng-if="vm.crudPermissions.canEdit && !vm.newVtigerAccount"
216 ng-click="vm.saveVtigerAccount()"
217 class="send-button md-accent md-raised"
218 ng-disabled="vtigerAccountForm.$invalid || vtigerAccountForm.$pristine"
220 translate="INTEGRATIONS.SAVE"
221 translate-attr-aria-label="INTEGRATIONS.SAVE"
228 ng-if="vm.crudPermissions.canEdit && vm.newVtigerAccount"
229 ng-click="vm.addNewVtigerAccount()"
230 class="send-button md-accent md-raised"
231 ng-disabled="vtigerAccountForm.$invalid"
233 translate="INTEGRATIONS.ADD_VTIGERACCOUNT"
234 translate-attr-aria-label="INTEGRATIONS.ADD_VTIGERACCOUNT"
241 class="md-icon-button"
242 ng-if="vm.crudPermissions.canDelete && !vm.newVtigerAccount"
243 ng-click="vm.deleteVtigerAccount($event)"
246 translate-attr-aria-label="INTEGRATIONS.DELETE"
248 <md-icon md-font-icon="icon-delete"></md-icon>
250 ><span translate="INTEGRATIONS.DELETE">DELETE</span></md-tooltip