71837241247fe740910e2693cd0dee3ce26cb558
[motion-next.git] /
1 <md-dialog class="project-dialog" aria-label="New dialog">
2   <form name="importForm" 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.IMPORT_XML"></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           </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       <div
41         id="xml-uploader"
42         flow-init="vm.ngFlowOptions"
43         flow-name="vm.ngFlow.flow"
44         flow-file-added="vm.fileAdded($file)"
45         flow-drop
46         flow-drag-enter="vm.dropping=true"
47         flow-drag-leave="vm.dropping=false"
48         ng-class="{'dropping':vm.dropping}"
49       >
50         <div
51           class="drop-text hint-text"
52           layout="row"
53           layout-align="center center"
54         >
55           <span translate="CALLYSQUARE.DROP_TO_UPLOAD">Drop to upload</span>
56         </div>
57
58         <div class="upload-button" layout="column" layout-align="center center">
59           <md-button class="md-accent md-raised" flow-btn> Upload </md-button>
60           <span
61             class="secondary-text mt-8"
62             translate="CALLYSQUARE.DROP_TO_UPLOAD_MESSAGE"
63             >You can also drop files here to upload. Only XML - Max. 5MB</span
64           >
65         </div>
66       </div>
67       <div class="error-list">
68         <div
69           ng-repeat="error in vm.errors"
70           class="error"
71           layout="row"
72           layout-align="space-between center"
73         >
74           <div>
75             <span class="message">{{error.message}}</span>
76           </div>
77           <md-button class="md-icon-button">
78             <md-icon
79               md-font-icon="icon-alert-box"
80               aria-label="alert error"
81               class="s16"
82             ></md-icon>
83           </md-button>
84         </div>
85       </div>
86     </md-dialog-content>
87
88     <md-dialog-actions layout="row" layout-align="space-between center">
89       <div layout="row" layout-align="start center">
90         <md-button
91           type="submit"
92           ng-click="vm.closeDialog()"
93           class="send-button md-accent md-raised"
94           ng-disabled="importForm.$invalid"
95           aria-label="CLOSE"
96           translate="CALLYSQUARE.CLOSE"
97           translate-attr-aria-label="CALLYSQUARE.CLOSE"
98         >
99           CLOSE
100         </md-button>
101       </div>
102     </md-dialog-actions>
103   </form>
104 </md-dialog>