|
1 |
| -<div class="dtge-dialog" ng-controller="Our.Umbraco.DocTypeGridEditor.Dialogs.DocTypeGridEditorDialog"> |
| 1 | +<div class="dtge-dialog" ng-controller="Our.Umbraco.DocTypeGridEditor.Dialogs.DocTypeGridEditorDialog"> |
2 | 2 |
|
3 |
| - <div ng-switch="dialogMode"> |
4 |
| - <umb-control-group label="{{selectContentTypeLabel}}" ng-switch="selectDocType"> |
| 3 | + <div> |
| 4 | + <umb-control-group label="{{selectContentTypeLabel}}" ng-if="dialogMode == 'selectDocType'"> |
5 | 5 | <ul class="umb-actions umb-actions-child">
|
6 | 6 | <li data-element="action-create-{{docType.alias}}" ng-repeat="docType in docTypes | orderBy:'name':false">
|
7 | 7 | <a ng-click="selectDocType(docType.alias)">
|
|
17 | 17 | </ul>
|
18 | 18 | </umb-control-group>
|
19 | 19 |
|
20 |
| - <div ng-switch="edit"> |
| 20 | + <div ng-if="dialogMode == 'edit'"> |
21 | 21 |
|
22 |
| - <fieldset ng-repeat="tab in model.node.tabs"> |
23 |
| - <legend style="font-size: 18px;">{{tab.label || tab.alias}}</legend> |
| 22 | + <ng-form name="tabbedContentForm"> |
| 23 | + <div class="umb-group-panel" retrive-dom-element="registerPropertyGroup(element[0], attributes.appAnchor)" data-app-anchor="{{group.id}}" data-element="group-{{group.alias}}" ng-repeat="group in model.node.variants[0].tabs track by group.label"> |
24 | 24 |
|
25 |
| - <umb-property property="property" |
26 |
| - ng-repeat="property in tab.properties"> |
27 |
| - <umb-editor model="property"></umb-editor> |
28 |
| - </umb-property> |
| 25 | + <div class="umb-group-panel__header"> |
| 26 | + <div>{{ group.label }}</div> |
| 27 | + </div> |
29 | 28 |
|
30 |
| - </fieldset> |
| 29 | + <div class="umb-group-panel__content"> |
| 30 | + <umb-property data-element="property-{{property.alias}}" |
| 31 | + ng-repeat="property in group.properties track by property.alias" |
| 32 | + property="property" |
| 33 | + show-inherit="content.variants.length > 1 && !property.culture && !activeVariant.language.isDefault" |
| 34 | + inherits-from="defaultVariant.language.name"> |
31 | 35 |
|
| 36 | + <div ng-class="{'o-40 cursor-not-allowed': content.variants.length > 1 && !activeVariant.language.isDefault && !property.culture && !property.unlockInvariantValue}"> |
| 37 | + <umb-property-editor model="property" |
| 38 | + preview="content.variants.length > 1 && !activeVariant.language.isDefault && !property.culture && !property.unlockInvariantValue"> |
| 39 | + </umb-property-editor> |
| 40 | + </div> |
| 41 | + |
| 42 | + </umb-property> |
| 43 | + </div> |
| 44 | + |
| 45 | + </div> |
| 46 | + |
| 47 | + <umb-empty-state ng-if="content.tabs.length === 0" |
| 48 | + position="center"> |
| 49 | + <localize key="content_noProperties"></localize> |
| 50 | + </umb-empty-state> |
| 51 | + |
| 52 | + </ng-form> |
| 53 | + <pre>{{ model | json }}</pre> |
32 | 54 | </div>
|
33 | 55 | </div>
|
34 | 56 |
|
|
0 commit comments