eee23939415a467b4354aa34dd42e2c174c1f1ac
[motion-next.git] /
1 <md-dialog class="tag-dialog" aria-label="tag">
2   <form name="tagForm" class="md-inline-form" novalidate>
3     <md-toolbar class="md-background-bg">
4       <div
5         class="md-toolbar-tools"
6         layout="row"
7         layout-align="space-between center"
8       >
9         <span class="title" translate="DASHBOARDS.TAGS"></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         <md-chips
42           ng-model="vm.interaction.Tags"
43           md-autocomplete-snap
44           md-require-match="vm.autocompleteRequireMatch"
45         >
46           <md-autocomplete
47             ng-blur="vm.searchText = ''"
48             md-min-length="0"
49             md-selected-item-change="vm.selectedItemChange"
50             md-selected-item="vm.selectedItem"
51             md-search-text="vm.searchText"
52             md-items="item in vm.tags.rows | filter:{ name: vm.searchText }"
53             md-item-text="item.name"
54             placeholder="Search for a tag"
55           >
56             <span md-highlight-text="vm.searchText">{{item.name}}</span>
57           </md-autocomplete>
58           <md-chip-template>
59             <span>
60               <strong>{{$chip.name}}</strong>
61             </span>
62           </md-chip-template>
63         </md-chips>
64       </md-input-container>
65
66       <div class="error-list">
67         <div
68           ng-repeat="error in vm.errors"
69           class="error"
70           layout="row"
71           layout-align="space-between center"
72         >
73           <div>
74             <span class="message">{{error.message}}</span>
75             <span class="type">({{error.type}})</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.saveTag(false)"
93           ng-disabled="tagForm.$pristine"
94           class="send-button md-accent md-raised"
95           aria-label="TAG"
96           translate="DASHBOARDS.SAVE"
97           translate-attr-aria-label="DASHBOARDS.SAVE"
98         >
99           SAVE
100         </md-button>
101       </div>
102     </md-dialog-actions>
103   </form>
104 </md-dialog>