1
1
< div class ="dtge-dialog " ng-controller ="Our.Umbraco.DocTypeGridEditor.Dialogs.DocTypeGridEditorDialog as vm ">
2
+
2
3
< umb-editor-view >
3
4
< umb-editor-header name ="model.title "
4
5
name-locked ="true "
5
6
hide-alias ="true "
6
7
hide-icon ="true "
7
8
hide-description ="true ">
8
9
</ umb-editor-header >
9
- < umb-editor-container >
10
- < umb-control-group label ="{{selectContentTypeLabel}} " ng-if ="dialogMode == 'selectDocType' ">
11
- < ul class ="umb-actions umb-actions-child ">
12
- < li data-element ="action-create-{{docType.alias}} " ng-repeat ="docType in docTypes | orderBy:'name':false ">
13
- < a ng-click ="selectDocType(docType.alias) ">
14
- < i class ="large {{docType.icon}} "> </ i >
15
- < span class ="menu-label ">
16
- {{docType.name}}
17
- < small >
18
- {{docType.description}}
19
- </ small >
20
- </ span >
21
- </ a >
22
- </ li >
23
- </ ul >
24
- </ umb-control-group >
25
- < div ng-if ="dialogMode == 'edit' ">
26
- < ng-form val-form-manager >
27
- < umb-tabbed-content ng-if ="!vm.loading "
28
- content ="vm.content ">
29
- </ umb-tabbed-content >
30
- </ ng-form >
31
- </ div >
10
+ < umb-editor-container ng-if ="!vm.loading && dialogMode == 'edit' ">
11
+ < ng-form val-form-manager >
12
+ < umb-tabbed-content content ="vm.content "> </ umb-tabbed-content >
13
+ </ ng-form >
14
+ </ umb-editor-container >
15
+ < umb-editor-container ng-if ="!vm.loading && dialogMode == 'selectDocType' ">
16
+ < umb-box >
17
+ < umb-box-content >
18
+ < div class ="form-search " ng-hide ="model.filter === false " style ="margin-bottom: 15px; ">
19
+ < i class ="icon-search "> </ i >
20
+ < input type ="text "
21
+ ng-model ="searchTerm "
22
+ class ="umb-search-field search-query input-block-level -full-width-input "
23
+ localize ="placeholder "
24
+ placeholder ="@placeholders_filter "
25
+ umb-auto-focus
26
+ no-dirty-check />
27
+ </ div >
28
+
29
+ < ul class ="umb-card-grid -three-in-row ">
30
+ < li ng-repeat ="docType in docTypes | orderBy:'name' | filter:searchTerm "
31
+ ng-click ="selectDocType(docType.alias) ">
32
+ < a class ="umb-card-grid-item " href ="" title ="{{ docType.name }} ">
33
+ < span >
34
+ < i class ="{{ docType.icon }} "> </ i >
35
+ {{ docType.name }}
36
+ </ span >
37
+ </ a >
38
+ </ li >
39
+ </ ul >
40
+ </ umb-box-content >
41
+ </ umb-box >
32
42
</ umb-editor-container >
33
43
< umb-editor-footer >
34
44
< umb-editor-footer-content-right >
47
57
</ umb-editor-footer-content-right >
48
58
</ umb-editor-footer >
49
59
</ umb-editor-view >
50
- </ div >
60
+ </ div >
0 commit comments