Skip to content

Commit 336f2c2

Browse files
skttlnathanwoulfe
authored andcommitted
Makes the template column i NC config expandable
1 parent 8b6c844 commit 336f2c2

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.doctypepicker.controller.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
angular.module("umbraco").controller("Umbraco.PropertyEditors.NestedContent.DocTypePickerController", [
1+
angular.module("umbraco").controller("Umbraco.PropertyEditors.NestedContent.DocTypePickerController", [
22

33
"$scope",
44
"Umbraco.PropertyEditors.NestedContent.Resources",
@@ -10,6 +10,7 @@
1010
var selectElementTypeModalTitle = "";
1111

1212
$scope.elemTypeTabs = [];
13+
$scope.expandTemplate = false;
1314

1415

1516
init();

src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.doctypepicker.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div id="{{model.alias}}" class="umb-nested-content__doctypepicker" ng-controller="Umbraco.PropertyEditors.NestedContent.DocTypePickerController">
1+
<div id="{{model.alias}}" class="umb-nested-content__doctypepicker" ng-controller="Umbraco.PropertyEditors.NestedContent.DocTypePickerController">
22
<div>
33
<table class="table table-striped">
44
<thead>
@@ -10,7 +10,11 @@
1010
<th>
1111
<localize key="general_group">Group</localize>
1212
</th>
13-
<th>
13+
<th ng-class="{'w-100':expandTemplate}">
14+
<button type="button" class="pull-right p0 btn btn-link" ng-click="expandTemplate = !expandTemplate"
15+
ng-class="{'fa-flip-horizontal': !expandTemplate}">
16+
<umb-icon icon="icon-tab-key"></umb-icon>
17+
</button>
1418
<localize key="template_template">Template</localize>
1519
</th>
1620
<th></th>

0 commit comments

Comments
 (0)