rearrange concept information shown on a node view
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1277 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
2d21f273ad
commit
77321e7029
7 changed files with 108 additions and 60 deletions
|
@ -1,9 +1,34 @@
|
|||
<metal:data define-macro="conceptdata">
|
||||
<div tal:attributes="class string:content-$level;">
|
||||
<h3 tal:attributes="ondblclick item/openEditWindow">
|
||||
<span i18n:translate="">Concept</span>:
|
||||
<div class="subcolumn">
|
||||
<div style="margin-right: 50px">
|
||||
<metal:fields use-macro="item/template/macros/conceptparents" />
|
||||
</div>
|
||||
<fieldset class="box"
|
||||
style="margin: 30px 20px 15px 30px">
|
||||
<metal:fields use-macro="item/template/macros/concepttitle" />
|
||||
<metal:fields use-macro="item/template/macros/conceptfields" />
|
||||
</fieldset>
|
||||
<div style="margin-right: 50px">
|
||||
<metal:fields use-macro="item/template/macros/conceptchildren" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="subcolumn"
|
||||
style="position: relative; top: 60px">
|
||||
<metal:fields use-macro="item/template/macros/conceptresources" />
|
||||
</div>
|
||||
</div>
|
||||
</metal:data>
|
||||
|
||||
|
||||
<metal:title define-macro="concepttitle">
|
||||
<h1 tal:attributes="ondblclick item/openEditWindow">
|
||||
<span tal:content="item/title">Title</span>
|
||||
</h3>
|
||||
</h1>
|
||||
</metal:title>
|
||||
|
||||
|
||||
<metal:fields define-macro="conceptfields">
|
||||
<table tal:attributes="ondblclick item/openEditWindow">
|
||||
<tr tal:repeat="field item/fieldData">
|
||||
<td><span tal:content="field/title"
|
||||
|
@ -11,46 +36,55 @@
|
|||
<td tal:content="structure field/widget"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<metal:listing use-macro="item/template/macros/conceptlisting2" />
|
||||
</div>
|
||||
</metal:data>
|
||||
</metal:fields>
|
||||
|
||||
|
||||
<metal:listing define-macro="conceptlisting">
|
||||
<div>
|
||||
<h3 tal:attributes="class string:content-$level;
|
||||
ondblclick item/openEditWindow">
|
||||
<span i18n:translate="">Concept</span>:
|
||||
<span tal:content="item/title">Title</span>
|
||||
</h3>
|
||||
<metal:listing define-macro="conceptlisting2">
|
||||
<div tal:attributes="class string:content-$level;
|
||||
<metal:parents define-macro="conceptparents">
|
||||
<fieldset tal:attributes="class string:content-$level box;
|
||||
ondblclick python: item.openEditWindow('configure.html')">
|
||||
<h4>Parents</h4>
|
||||
<legend>Parents</legend>
|
||||
<div tal:repeat="related item/parents">
|
||||
<a href="#"
|
||||
tal:attributes="href string:${view/url}/.target${related/uniqueId}"
|
||||
tal:content="related/title">Concept Title</a>
|
||||
</div>
|
||||
</div>
|
||||
<div tal:attributes="class string:content-$level;
|
||||
</fieldset>
|
||||
</metal:parents>
|
||||
|
||||
|
||||
<metal:children define-macro="conceptchildren">
|
||||
<fieldset tal:attributes="class string:content-$level box;
|
||||
ondblclick python: item.openEditWindow('configure.html')">
|
||||
<h4>Children</h4>
|
||||
<legend>Children</legend>
|
||||
<div tal:repeat="related item/children">
|
||||
<a href="#"
|
||||
tal:attributes="href string:${view/url}/.target${related/uniqueId}"
|
||||
tal:content="related/title">Concept Title</a>
|
||||
</div>
|
||||
</div>
|
||||
<div tal:attributes="class string:content-$level;
|
||||
</fieldset>
|
||||
</metal:children>
|
||||
|
||||
|
||||
<metal:resources define-macro="conceptresources">
|
||||
<fieldset tal:attributes="class string:content-$level box;
|
||||
ondblclick python: item.openEditWindow('resources.html')">
|
||||
<h4>Resources</h4>
|
||||
<legend>Resources</legend>
|
||||
<div tal:repeat="related item/resources">
|
||||
<a href="#"
|
||||
tal:attributes="href string:${view/url}/.target${related/uniqueId}"
|
||||
tal:content="related/title">Resource Title</a>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</metal:resources>
|
||||
|
||||
|
||||
<metal:listing define-macro="conceptlisting">
|
||||
<div>
|
||||
<metal:fields use-macro="item/template/macros/concepttitle" />
|
||||
<metal:listing define-macro="conceptlisting2">
|
||||
<metal:fields use-macro="item/template/macros/conceptparents" />
|
||||
<metal:fields use-macro="item/template/macros/conceptchildren" />
|
||||
<metal:fields use-macro="item/template/macros/conceptresources" />
|
||||
</metal:listing>
|
||||
</div>
|
||||
</metal:listing>
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
|
||||
<!-- resources -->
|
||||
|
||||
<resource name="node.css" file="node.css" />
|
||||
<resource name="node.js" file="node.js" />
|
||||
<resource name="loops.css" file="loops.css" />
|
||||
<resource name="loops.js" file="loops.js" />
|
||||
|
||||
<!-- macros -->
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<metal:settings fill-slot="settings"
|
||||
tal:define="dummy python:
|
||||
controller.macros.register('css', resourceName='node.css', media='all');" />
|
||||
controller.macros.register('css', resourceName='loops.css', media='all');" />
|
||||
|
||||
|
||||
<div class="box" metal:fill-slot="navigators">
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
<head>
|
||||
<metal:js fill-slot="ecmascript_slot">
|
||||
<script type="text/javascript"
|
||||
src="node.js"
|
||||
tal:attributes="src string:${context/++resource++node.js}">
|
||||
src="loops.js"
|
||||
tal:attributes="src string:${context/++resource++loops.js}">
|
||||
</script>
|
||||
<metal:use use-macro="views/ajax.dojo/main"
|
||||
tal:condition="nothing" />
|
||||
|
|
|
@ -37,6 +37,20 @@
|
|||
border: none;
|
||||
}
|
||||
|
||||
.subcolumn {
|
||||
display: inline-block;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.box {
|
||||
margin: 5px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.box h1, .box h2, .box h3 {
|
||||
border-bottom: None;
|
||||
}
|
||||
|
||||
.box div.body div.menu-3 {
|
||||
padding-left: 1.5em;
|
||||
}
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
<metal:settings fill-slot="settings"
|
||||
tal:define="dummy python:
|
||||
controller.macros.register('css', resourceName='node.css', media='all');
|
||||
controller.macros.register('css', resourceName='loops.css', media='all');
|
||||
dummy python:
|
||||
controller.macros.register('js', resourceName='node.js');" />
|
||||
controller.macros.register('js', resourceName='loops.js');" />
|
||||
|
||||
|
||||
<metal:block fill-slot="actions" />
|
||||
|
|
Loading…
Add table
Reference in a new issue