1 | |
---|
2 | <div class="tree" > |
---|
3 | ${assetInstance.encodeAsHTML()} |
---|
4 | <g:link controller="assetSubItemDetailed" params="['asset.id':assetInstance?.id]" action="create"> |
---|
5 | <img src="${resource(dir:'images/skin',file:'database_add.png')}" alt="Add" title="Add Sub Item"/> |
---|
6 | </g:link> |
---|
7 | <g:link params="['assetToCopy.id':assetInstance?.id]" action="copy"> |
---|
8 | <img src="${resource(dir:'images/skin',file:'page_copy.png')}" alt="Copy" title="Copy Asset"/> |
---|
9 | </g:link> |
---|
10 | |
---|
11 | <ul> |
---|
12 | <g:each var="assetSubItem1" in="${assetInstance.assetSubItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> |
---|
13 | <li> |
---|
14 | <a href='' class="toggle" |
---|
15 | onclick="showElement('treelevel1'); |
---|
16 | return false"> |
---|
17 | </a> |
---|
18 | <g:link controller="assetSubItemDetailed" action="edit" id="${assetSubItem1.id}">${assetSubItem1?.encodeAsHTML()}</g:link> |
---|
19 | <g:link controller="assetSubItemDetailed" params="['parentItem.id':assetSubItem1?.id]" action="create"> |
---|
20 | <img src="${resource(dir:'images/skin',file:'database_add.png')}" alt="Add" title="Add Sub Item" /> |
---|
21 | </g:link> |
---|
22 | </li> |
---|
23 | |
---|
24 | <div id="treelevel1"> |
---|
25 | |
---|
26 | <ul> |
---|
27 | <g:each var="assetSubItem2" in="${assetSubItem1.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> |
---|
28 | <li> |
---|
29 | <a href='' class="toggle"> |
---|
30 | </a> |
---|
31 | <g:link controller="assetSubItemDetailed" action="edit" id="${assetSubItem2.id}">${assetSubItem2?.encodeAsHTML()}</g:link> |
---|
32 | <g:link controller="assetSubItemDetailed" params="['parentItem.id':assetSubItem2?.id]" action="create"> |
---|
33 | <img src="${resource(dir:'images/skin',file:'database_add.png')}" alt="Add" title="Add Sub Item" /> |
---|
34 | </g:link> |
---|
35 | </li> |
---|
36 | <ul> |
---|
37 | <g:each var="assetSubItem3" in="${assetSubItem2.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> |
---|
38 | <li> |
---|
39 | <g:link controller="assetSubItemDetailed" action="edit" id="${assetSubItem3.id}">${assetSubItem3?.encodeAsHTML()}</g:link> |
---|
40 | <g:link controller="assetSubItemDetailed" params="['parentItem.id':assetSubItem3?.id]" action="create"> |
---|
41 | <img src="${resource(dir:'images/skin',file:'database_add.png')}" alt="Add" title="Add Sub Item" /> |
---|
42 | </g:link> |
---|
43 | </li> |
---|
44 | <ul> |
---|
45 | <g:each var="assetSubItem4" in="${assetSubItem3.subItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> |
---|
46 | <li><g:link controller="assetSubItemDetailed" action="edit" id="${assetSubItem4.id}">${assetSubItem4?.encodeAsHTML()}</g:link></li> |
---|
47 | </g:each> <!--assetSubItem4--> |
---|
48 | </ul> |
---|
49 | </g:each> <!--assetSubItem3--> |
---|
50 | </ul> |
---|
51 | </g:each> <!--assetSubItem2--> |
---|
52 | </ul> |
---|
53 | |
---|
54 | </div> |
---|
55 | |
---|
56 | </g:each> <!--assetSubItem1--> |
---|
57 | </ul> |
---|
58 | </div> |
---|