Built motion from commit aab208717af8d15f4fa224cdb6a202877019af9b. Version 3.0.0...
[motion-next.git] / public / src / js / modules / main / apps / integrations / views / zendeskAccounts / edit / item / dialog.html / dialog.html
index ffed286..86a091b 100644 (file)
@@ -47,7 +47,7 @@
         <div ng-switch-when="description">
           <!-- DESCRIPTION SECTION -->
           <md-input-container class="md-block">
-            <label translate="INTEGRATIONS.TYPE">Type</label>
+            <label translate="APP.TYPE">Type</label>
             <md-select name="type" ng-model="vm.item.type" required>
               <md-option value="string">String</md-option>
               <md-option value="keyValue">Key Value</md-option>
               role="alert"
             >
               <div ng-message="required">
-                <span translate="INTEGRATIONS.ERRORS.TYPE_REQUIRED"
+                <span translate="APP.ERRORS.TYPE_REQUIRED"
                   >Type field is required</span
                 >
               </div>
             </div>
           </md-input-container>
           <md-input-container class="md-block" ng-if="vm.item.type == 'string'">
-            <label translate="INTEGRATIONS.CONTENT">Content</label>
+            <label translate="APP.CONTENT">Content</label>
             <input
               type="text"
               name="content"
@@ -87,7 +87,7 @@
           </md-input-container>
           <div ng-if="vm.item.type == 'keyValue'">
             <md-input-container class="md-block">
-              <label translate="INTEGRATIONS.KEY">Key</label>
+              <label translate="APP.KEY">Key</label>
               <input
                 type="text"
                 name="key"
                 role="alert"
               >
                 <div ng-message="required">
-                  <span translate="INTEGRATIONS.ERRORS.KEY_REQUIRED"
+                  <span translate="APP.ERRORS.KEY_REQUIRED"
                     >Key field is required</span
                   >
                 </div>
             </md-input-container>
 
             <md-input-container class="md-block">
-              <label translate="INTEGRATIONS.TYPE">Type</label>
+              <label translate="APP.TYPE">Type</label>
               <md-select name="keyType" ng-model="vm.item.keyType" required>
                 <md-option value="string">String</md-option>
                 <md-option value="variable">Variable</md-option>
                 role="alert"
               >
                 <div ng-message="required">
-                  <span translate="INTEGRATIONS.ERRORS.TYPE_REQUIRED"
+                  <span translate="APP.ERRORS.TYPE_REQUIRED"
                     >Type field is required</span
                   >
                 </div>
               class="md-block"
               ng-if="vm.item.keyType == 'string'"
             >
-              <label translate="INTEGRATIONS.CONTENT">Content</label>
+              <label translate="APP.CONTENT">Content</label>
               <input
                 type="text"
                 name="keyContent"
               class="md-block"
               ng-if="vm.item.keyType == 'variable'"
             >
-              <label translate="INTEGRATIONS.VALUE">Value</label>
+              <label translate="APP.VALUE">Value</label>
               <md-select
                 name="variableName"
                 ng-model="vm.item.variableName"
                   <md-option
                     ng-value="agentColumn"
                     ng-repeat="agentColumn in vm.voiceAgentReportColumns"
-                    >{{agentColumn}}
+                  >
+                    {{agentColumn}}
                   </md-option>
                 </md-optgroup>
                 <md-optgroup label="Voice: Outbound">
                   <md-option
                     ng-value="dialColumn"
                     ng-repeat="dialColumn in vm.voiceDialReportColumns"
-                    >{{dialColumn}}</md-option
-                  >
+                    >{{dialColumn}}
+                  </md-option>
                 </md-optgroup>
               </md-select>
               <div
               class="md-block"
               ng-if="vm.item.keyType == 'customVariable'"
             >
-              <label translate="INTEGRATIONS.VALUE">Value</label>
+              <label translate="APP.VALUE">Value</label>
               <md-select ng-model="vm.item.VariableId" required>
                 <md-option
                   ng-value="variable.id"
           <!-- FIELD SECTION -->
           <div ng-if="vm.accountConnected">
             <md-input-container class="md-block">
-              <label translate="INTEGRATIONS.FIELD">FIELD</label>
+              <label translate="APP.FIELD">FIELD</label>
               <!-- ITEM TYPE DEFAULT VALUE is STRING -->
               <md-select
                 name="customField"
                   <md-option
                     ng-value="standard"
                     ng-repeat="standard in vm.fields | filter: {custom: false} "
-                    >{{standard.name}}
+                  >
+                    {{standard.name}}
                   </md-option>
                 </md-optgroup>
 
                 role="alert"
               >
                 <div ng-message="required">
-                  <span translate="INTEGRATIONS.ERRORS.FIELD_REQUIRED"
+                  <span translate="APP.ERRORS.FIELD_REQUIRED"
                     >Field is required</span
                   >
                 </div>
           class="send-button md-accent md-raised"
           ng-disabled="zendeskAccountItemForm.$invalid || zendeskAccountItemForm.$pristine"
           aria-label="SAVE"
-          translate="INTEGRATIONS.SAVE"
-          translate-attr-aria-label="INTEGRATIONS.SAVE"
+          translate="APP.SAVE"
+          translate-attr-aria-label="APP.SAVE"
         >
           SAVE
         </md-button>
           class="send-button md-accent md-raised"
           ng-disabled="zendeskAccountItemForm.$invalid || zendeskAccountItemForm.$pristine"
           aria-label="ADD"
-          translate="INTEGRATIONS.ADD"
-          translate-attr-aria-label="INTEGRATIONS.ADD"
+          translate="APP.ADD"
+          translate-attr-aria-label="APP.ADD"
         >
           ADD
         </md-button>
           ng-click="vm.deleteItem($event)"
           aria-label="DELETE"
           translate
-          translate-attr-aria-label="INTEGRATIONS.DELETE"
+          translate-attr-aria-label="APP.DELETE"
         >
           <md-icon md-font-icon="icon-delete"></md-icon>
-          <md-tooltip
-            ><span translate="INTEGRATIONS.DELETE">DELETE</span></md-tooltip
-          >
+          <md-tooltip><span translate="APP.DELETE">DELETE</span></md-tooltip>
         </md-button>
       </div>
     </md-dialog-actions>
 
 <script type="text/ng-template" id="/fields.html">
 
-  <!-- type -->
+    <!-- type -->
   <md-input-container class="md-block" ng-if="!vm.customField.options.length">
 
-      <label translate="INTEGRATIONS.TYPE">Type</label>
-      <md-select name="type" ng-model="vm.item.type" required>
+    <label translate="APP.TYPE">Type</label>
+    <md-select name="type" ng-model="vm.item.type" required>
 
-          <md-option value="string">String</md-option>
-          <md-option value="variable">Variable</md-option>
-          <md-option value="customVariable">Custom Variable</md-option>
-      </md-select>
-      <div ng-messages="zendeskAccountItemForm.type.$error" ng-show="zendeskAccountItemForm.type.$touched"
-          role="alert">
-          <div ng-message="required">
-              <span translate="INTEGRATIONS.ERRORS.TYPE_REQUIRED">Type field is required</span>
-          </div>
+      <md-option value="string">String</md-option>
+      <md-option value="variable">Variable</md-option>
+      <md-option value="customVariable">Custom Variable</md-option>
+    </md-select>
+    <div ng-messages="zendeskAccountItemForm.type.$error" ng-show="zendeskAccountItemForm.type.$touched" role="alert">
+      <div ng-message="required">
+        <span translate="APP.ERRORS.TYPE_REQUIRED">Type field is required</span>
       </div>
+    </div>
   </md-input-container>
 
   <!--/ type -->
   <!-- value -->
 
   <md-input-container class="md-block" ng-if="vm.item.type == 'string' && vm.customField.options.length">
-      <!-- options -->
-      <label translate="INTEGRATIONS.CONTENT">Content</label>
+    <!-- options -->
+    <label translate="APP.CONTENT">Content</label>
 
-      <md-select name="option" ng-model="vm.item.content" required>
-          <md-option ng-value="option.value" ng-repeat="option in vm.customField.options">{{option.name}}</md-option>
-      </md-select>
+    <md-select name="option" ng-model="vm.item.content" required>
+      <md-option ng-value="option.value" ng-repeat="option in vm.customField.options">{{option.name}}</md-option>
+    </md-select>
 
-      <div ng-messages="zendeskAccountItemForm.option.$error"
-          ng-show="zendeskAccountItemForm.option.$touched" role="alert">
-          <div ng-message="required">
-              <span translate="INTEGRATIONS.ERRORS.VALUE_REQUIRED">Value field is required</span>
-          </div>
+    <div ng-messages="zendeskAccountItemForm.option.$error" ng-show="zendeskAccountItemForm.option.$touched" role="alert">
+      <div ng-message="required">
+        <span translate="APP.ERRORS.VALUE_REQUIRED">Value field is required</span>
       </div>
+    </div>
   </md-input-container>
 
   <md-input-container class="md-block" ng-if="vm.item.type == 'string' && !vm.customField.options.length">
-      <label translate="INTEGRATIONS.CONTENT">Content</label>
+    <label translate="APP.CONTENT">Content</label>
 
-      <input type="text" name="content" ng-model="vm.item.content" required md-autofocus>
+    <input type="text" name="content" ng-model="vm.item.content" required md-autofocus>
 
-      <div ng-messages="zendeskAccountItemForm.content.$error"
-          ng-show="zendeskAccountItemForm.content.$touched" role="alert">
-          <div ng-message="required">
-              <span translate="INTEGRATIONS.ERRORS.CONTENT_REQUIRED">Content field is
-                  required</span>
-          </div>
+    <div ng-messages="zendeskAccountItemForm.content.$error" ng-show="zendeskAccountItemForm.content.$touched"
+      role="alert">
+      <div ng-message="required">
+        <span translate="INTEGRATIONS.ERRORS.CONTENT_REQUIRED">Content field is
+          required</span>
       </div>
+    </div>
   </md-input-container>
 
   <md-input-container class="md-block" ng-if="vm.item.type == 'variable'">
-      <label translate="INTEGRATIONS.VALUE">Value</label>
-      <md-select name="variableName" ng-model="vm.item.variableName" md-selected-text="vm.getSelectedVariable()"
-          required>
-          <md-optgroup label="Voice: Queue">
-              <md-option ng-value="agentColumn" ng-repeat="agentColumn in vm.voiceAgentReportColumns">{{agentColumn}}
-              </md-option>
-          </md-optgroup>
-          <md-optgroup label="Voice: Outbound">
-              <md-option ng-value="dialColumn" ng-repeat="dialColumn in vm.voiceDialReportColumns">{{dialColumn}}
-              </md-option>
-          </md-optgroup>
-      </md-select>
-      <div ng-messages="zendeskAccountItemForm.variableName.$error"
-          ng-show="zendeskAccountItemForm.variableName.$touched" role="alert">
-          <div ng-message="required">
-              <span translate="INTEGRATIONS.ERRORS.VARIABLENAME_REQUIRED">Variable name field is
-                  required</span>
-          </div>
+    <label translate="APP.VALUE">Value</label>
+    <md-select name="variableName" ng-model="vm.item.variableName" md-selected-text="vm.getSelectedVariable()" required>
+      <md-optgroup label="Voice: Queue">
+        <md-option ng-value="agentColumn" ng-repeat="agentColumn in vm.voiceAgentReportColumns">{{agentColumn}}
+        </md-option>
+      </md-optgroup>
+      <md-optgroup label="Voice: Outbound">
+        <md-option ng-value="dialColumn" ng-repeat="dialColumn in vm.voiceDialReportColumns">{{dialColumn}}
+        </md-option>
+      </md-optgroup>
+    </md-select>
+    <div ng-messages="zendeskAccountItemForm.variableName.$error" ng-show="zendeskAccountItemForm.variableName.$touched"
+      role="alert">
+      <div ng-message="required">
+        <span translate="INTEGRATIONS.ERRORS.VARIABLENAME_REQUIRED">Variable name field is
+          required</span>
       </div>
+    </div>
   </md-input-container>
 
   <md-input-container class="md-block" ng-if="vm.item.type == 'customVariable'">
-      <label translate="INTEGRATIONS.VALUE">Value</label>
-      <md-select ng-model="vm.item.VariableId" required>
-          <md-option ng-value="variable.id" ng-repeat="variable in vm.variables">{{variable.name}}</md-option>
-      </md-select>
+    <label translate="APP.VALUE">Value</label>
+    <md-select ng-model="vm.item.VariableId" required>
+      <md-option ng-value="variable.id" ng-repeat="variable in vm.variables">{{variable.name}}</md-option>
+    </md-select>
   </md-input-container>
 
   <!--/ value -->
 
 <script type="text/ng-template" id="/subject.html">
     <md-input-container class="md-block">
-        <label translate="INTEGRATIONS.TYPE">Type</label>
+        <label translate="APP.TYPE">Type</label>
             <md-select name="type" ng-model="vm.item.type" required>
                 <md-option value="string">String</md-option>
                 <md-option value="variable">Variable</md-option>
             </md-select>
         <div ng-messages="zendeskAccountItemForm.type.$error" ng-show="zendeskAccountItemForm.type.$touched" role="alert">
             <div ng-message="required">
-                <span translate="INTEGRATIONS.ERRORS.TYPE_REQUIRED">Type field is required</span>
+                <span translate="APP.ERRORS.TYPE_REQUIRED">Type field is required</span>
              </div>
         </div>
   </md-input-container>
 
   <md-input-container class="md-block" ng-if="vm.item.type == 'string'">
-      <label translate="INTEGRATIONS.CONTENT">Content</label>
+      <label translate="APP.CONTENT">Content</label>
       <input type="text" name="content" ng-model="vm.item.content" required md-autofocus>
       <div ng-messages="zendeskAccountItemForm.content.$error"
           ng-show="zendeskAccountItemForm.content.$touched" role="alert">
   </md-input-container>
 
   <md-input-container class="md-block" ng-if="vm.item.type == 'variable'">
-      <label translate="INTEGRATIONS.VALUE">Value</label>
+      <label translate="APP.VALUE">Value</label>
       <md-select name="variableName" ng-model="vm.item.variableName" md-selected-text="vm.getSelectedVariable()"
           required>
           <md-optgroup label="Voice: Queue">
   </md-input-container>
 
   <md-input-container class="md-block" ng-if="vm.item.type == 'customVariable'">
-      <label translate="INTEGRATIONS.VALUE">Value</label>
+      <label translate="APP.VALUE">Value</label>
       <md-select ng-model="vm.item.VariableId" required>
           <md-option ng-value="variable.id" ng-repeat="variable in vm.variables">{{variable.name}}</md-option>
       </md-select>