ad03e027efdd59bb001e5d5b84ad34c681f32d00
[motion-next.git] /
1 <md-dialog class="project-dialog" aria-label="New dialog">
2   <form name="newForm" class="md-inline-form" novalidate>
3     <md-toolbar class="md-accent md-hue-2">
4       <div
5         class="md-toolbar-tools"
6         layout="row"
7         layout-align="space-between center"
8       >
9         <span class="title"
10           ><span translate="CALLYSQUARE.COPY_PROJECT"></span
11         ></span>
12         <md-button class="md-icon-button" ng-click="vm.closeDialog()">
13           <md-icon
14             md-font-icon="icon-close"
15             aria-label="Close dialog"
16           ></md-icon>
17         </md-button>
18       </div>
19     </md-toolbar>
20     <md-dialog-content ms-scroll>
21       <div class="error-list">
22         <div
23           ng-repeat="error in vm.errors"
24           class="error"
25           layout="row"
26           layout-align="space-between center"
27         >
28           <div>
29             <span class="message">{{error.message}}</span>
30             <span class="type">({{error.type}})</span>
31           </div>
32           <md-button class="md-icon-button">
33             <md-icon
34               md-font-icon="icon-alert-box"
35               aria-label="alert error"
36               class="s16"
37             ></md-icon>
38           </md-button>
39         </div>
40       </div>
41       <md-input-container class="md-block">
42         <label translate="CALLYSQUARE.NAME">Name</label>
43         <input name="name" ng-model="vm.project.name" required md-autofocus />
44         <div
45           ng-messages="newForm.name.$error"
46           ng-show="newForm.name.$touched"
47           role="alert"
48         >
49           <div ng-message="required">
50             <span translate="CALLYSQUARE.ERRORS.NAME_REQUIRED"
51               >Name field is required</span
52             >
53           </div>
54         </div>
55       </md-input-container>
56       <md-input-container class="md-block">
57         <md-switch
58           ng-model="vm.newWindow"
59           aria-label="{{'CALLYSQUARE.OPEN_NEW_WINDOW' | translate }}"
60           ><span translate="CALLYSQUARE.OPEN_NEW_WINDOW"></span
61         ></md-switch>
62       </md-input-container>
63       <div class="error-list">
64         <div
65           ng-repeat="error in vm.errors"
66           class="error"
67           layout="row"
68           layout-align="space-between center"
69         >
70           <div>
71             <span class="message">{{error.message}}</span>
72             <span class="type">({{error.type}})</span>
73           </div>
74           <md-button class="md-icon-button">
75             <md-icon
76               md-font-icon="icon-alert-box"
77               aria-label="alert error"
78               class="s16"
79             ></md-icon>
80           </md-button>
81         </div>
82       </div>
83     </md-dialog-content>
84
85     <md-dialog-actions layout="row" layout-align="space-between center">
86       <div layout="row" layout-align="start center">
87         <md-button
88           type="submit"
89           ng-click="vm.save()"
90           class="send-button md-accent md-raised"
91           ng-disabled="newForm.$invalid"
92           aria-label="SAVE"
93           translate="CALLYSQUARE.COPY_PROJECT"
94           translate-attr-aria-label="CALLYSQUARE.COPY"
95         >
96           COPY
97         </md-button>
98       </div>
99     </md-dialog-actions>
100   </form>
101 </md-dialog>