1 <md-dialog class="ivrCampaign-dialog" aria-label="Clone IvrCampaign">
2 <form name="ivrCampaignForm" 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="MOTIONDIALER.NAME">Name</label>
45 ng-model="vm.ivrCampaign.name"
46 ng-pattern="/^[A-Za-z0-9\.\_]+$/i"
49 ng-disabled="!vm.newIvrCampaign"
52 <div class="hint"><span translate="MOTIONDIALER.HELP.NAME"></span></div>
54 ng-messages="ivrCampaignForm['name'].$error"
55 ng-show="ivrCampaignForm['name'].$touched"
58 <div ng-message="required">
59 <span translate="MOTIONDIALER.ERRORS.NAME_REQUIRED"
60 >Name field is required</span
63 <div ng-message="pattern">
65 translate="MOTIONDIALER.ERRORS.NAME_MUST_VALID_PATTERN"
66 translate-values="{ regex: '/^[A-Za-z0-9\.\_]+$/i' }"
67 >Name must be valid pattern
73 <div class="error-list">
75 ng-repeat="error in vm.errors"
78 layout-align="space-between center"
81 <span class="message">{{error.message}}</span>
82 <span class="type">({{error.type}})</span>
84 <md-button class="md-icon-button">
86 md-font-icon="icon-alert-box"
87 aria-label="alert error"
95 <md-dialog-actions layout="row" layout-align="space-between center">
98 ng-click="vm.cloneIvrCampaign()"
99 class="send-button md-accent md-raised"
100 ng-disabled="ivrCampaignForm.$invalid"
102 translate="MOTIONDIALER.CLONE_IVRCAMPAIGN"
103 translate-attr-aria-label="MOTIONDIALER.CLONE_IVRCAMPAIGN"