e37a09c8fb8152b77d679f53e94998a20ce9a23d
[motion-next.git] /
1 <md-dialog class="squareRecording-dialog" aria-label="New SquareRecording">
2   <form name="squareRecordingForm" 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">{{ vm.title | translate }}</span>
10         <md-button class="md-icon-button" ng-click="vm.closeDialog()">
11           <md-icon
12             md-font-icon="icon-close"
13             aria-label="Close dialog"
14           ></md-icon>
15         </md-button>
16       </div>
17     </md-toolbar>
18
19     <md-dialog-content ms-scroll>
20       <div class="error-list">
21         <div
22           ng-repeat="error in vm.errors"
23           class="error"
24           layout="row"
25           layout-align="space-between center"
26         >
27           <div>
28             <span class="message">{{error.message}}</span>
29             <span class="type">({{error.type}})</span>
30           </div>
31           <md-button class="md-icon-button">
32             <md-icon
33               md-font-icon="icon-alert-box"
34               aria-label="alert error"
35               class="s16"
36             ></md-icon>
37           </md-button>
38         </div>
39       </div>
40       <md-input-container class="md-block">
41         <label translate="CALLYSQUARE.FILENAME">Filename</label>
42         <input
43           type=""
44           name="filename"
45           ng-model="vm.squareRecording.filename"
46           ng-required="true"
47           autofocus
48         />
49
50         <div
51           ng-messages="squareRecordingForm['filename'].$error"
52           ng-show="squareRecordingForm['filename'].$touched"
53           role="alert"
54         >
55           <div ng-message="required">
56             <span translate="CALLYSQUARE.ERRORS.FILENAME_REQUIRED"
57               >Filename field is required</span
58             >
59           </div>
60         </div>
61       </md-input-container>
62
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
86       layout="row"
87       layout-align="space-between center"
88       ng-if="!vm.crudPermissions.readOnly"
89     >
90       <div layout="row" layout-align="start center">
91         <md-button
92           type="submit"
93           ng-if="vm.crudPermissions.canEdit && !vm.newSquareRecording"
94           ng-click="vm.saveSquareRecording()"
95           class="send-button md-accent md-raised"
96           ng-disabled="squareRecordingForm.$invalid || squareRecordingForm.$pristine"
97           aria-label="SAVE"
98           translate="CALLYSQUARE.SAVE"
99           translate-attr-aria-label="CALLYSQUARE.SAVE"
100         >
101           SAVE
102         </md-button>
103
104         <md-button
105           type="submit"
106           ng-if="vm.crudPermissions.canEdit && vm.newSquareRecording"
107           ng-click="vm.addNewSquareRecording()"
108           class="send-button md-accent md-raised"
109           ng-disabled="squareRecordingForm.$invalid"
110           aria-label="ADD"
111           translate="CALLYSQUARE.ADD_SQUARERECORDING"
112           translate-attr-aria-label="CALLYSQUARE.ADD_SQUARERECORDING"
113         >
114           ADD SQUARERECORDING
115         </md-button>
116       </div>
117       <div layout="row">
118         <md-button
119           class="md-icon-button"
120           ng-if="vm.crudPermissions.canDelete && !vm.newSquareRecording"
121           ng-click="vm.deleteSquareRecording($event)"
122           aria-label="DELETE"
123           translate
124           translate-attr-aria-label="CALLYSQUARE.DELETE"
125         >
126           <md-icon md-font-icon="icon-delete"></md-icon>
127           <md-tooltip
128             ><span translate="CALLYSQUARE.DELETE">DELETE</span></md-tooltip
129           >
130         </md-button>
131       </div>
132     </md-dialog-actions>
133   </form>
134 </md-dialog>