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">
|
<metal:data define-macro="conceptdata">
|
||||||
<div tal:attributes="class string:content-$level;">
|
<div tal:attributes="class string:content-$level;">
|
||||||
<h3 tal:attributes="ondblclick item/openEditWindow">
|
<div class="subcolumn">
|
||||||
<span i18n:translate="">Concept</span>:
|
<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>
|
<span tal:content="item/title">Title</span>
|
||||||
</h3>
|
</h1>
|
||||||
|
</metal:title>
|
||||||
|
|
||||||
|
|
||||||
|
<metal:fields define-macro="conceptfields">
|
||||||
<table tal:attributes="ondblclick item/openEditWindow">
|
<table tal:attributes="ondblclick item/openEditWindow">
|
||||||
<tr tal:repeat="field item/fieldData">
|
<tr tal:repeat="field item/fieldData">
|
||||||
<td><span tal:content="field/title"
|
<td><span tal:content="field/title"
|
||||||
|
@ -11,46 +36,55 @@
|
||||||
<td tal:content="structure field/widget"></td>
|
<td tal:content="structure field/widget"></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<metal:listing use-macro="item/template/macros/conceptlisting2" />
|
</metal:fields>
|
||||||
</div>
|
|
||||||
</metal:data>
|
|
||||||
|
|
||||||
|
|
||||||
<metal:listing define-macro="conceptlisting">
|
<metal:parents define-macro="conceptparents">
|
||||||
<div>
|
<fieldset tal:attributes="class string:content-$level box;
|
||||||
<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;
|
|
||||||
ondblclick python: item.openEditWindow('configure.html')">
|
ondblclick python: item.openEditWindow('configure.html')">
|
||||||
<h4>Parents</h4>
|
<legend>Parents</legend>
|
||||||
<div tal:repeat="related item/parents">
|
<div tal:repeat="related item/parents">
|
||||||
<a href="#"
|
<a href="#"
|
||||||
tal:attributes="href string:${view/url}/.target${related/uniqueId}"
|
tal:attributes="href string:${view/url}/.target${related/uniqueId}"
|
||||||
tal:content="related/title">Concept Title</a>
|
tal:content="related/title">Concept Title</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</fieldset>
|
||||||
<div tal:attributes="class string:content-$level;
|
</metal:parents>
|
||||||
|
|
||||||
|
|
||||||
|
<metal:children define-macro="conceptchildren">
|
||||||
|
<fieldset tal:attributes="class string:content-$level box;
|
||||||
ondblclick python: item.openEditWindow('configure.html')">
|
ondblclick python: item.openEditWindow('configure.html')">
|
||||||
<h4>Children</h4>
|
<legend>Children</legend>
|
||||||
<div tal:repeat="related item/children">
|
<div tal:repeat="related item/children">
|
||||||
<a href="#"
|
<a href="#"
|
||||||
tal:attributes="href string:${view/url}/.target${related/uniqueId}"
|
tal:attributes="href string:${view/url}/.target${related/uniqueId}"
|
||||||
tal:content="related/title">Concept Title</a>
|
tal:content="related/title">Concept Title</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</fieldset>
|
||||||
<div tal:attributes="class string:content-$level;
|
</metal:children>
|
||||||
|
|
||||||
|
|
||||||
|
<metal:resources define-macro="conceptresources">
|
||||||
|
<fieldset tal:attributes="class string:content-$level box;
|
||||||
ondblclick python: item.openEditWindow('resources.html')">
|
ondblclick python: item.openEditWindow('resources.html')">
|
||||||
<h4>Resources</h4>
|
<legend>Resources</legend>
|
||||||
<div tal:repeat="related item/resources">
|
<div tal:repeat="related item/resources">
|
||||||
<a href="#"
|
<a href="#"
|
||||||
tal:attributes="href string:${view/url}/.target${related/uniqueId}"
|
tal:attributes="href string:${view/url}/.target${related/uniqueId}"
|
||||||
tal:content="related/title">Resource Title</a>
|
tal:content="related/title">Resource Title</a>
|
||||||
</div>
|
</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>
|
</metal:listing>
|
||||||
</div>
|
</div>
|
||||||
</metal:listing>
|
</metal:listing>
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
|
|
||||||
<!-- resources -->
|
<!-- resources -->
|
||||||
|
|
||||||
<resource name="node.css" file="node.css" />
|
<resource name="loops.css" file="loops.css" />
|
||||||
<resource name="node.js" file="node.js" />
|
<resource name="loops.js" file="loops.js" />
|
||||||
|
|
||||||
<!-- macros -->
|
<!-- macros -->
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<metal:settings fill-slot="settings"
|
<metal:settings fill-slot="settings"
|
||||||
tal:define="dummy python:
|
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">
|
<div class="box" metal:fill-slot="navigators">
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
<head>
|
<head>
|
||||||
<metal:js fill-slot="ecmascript_slot">
|
<metal:js fill-slot="ecmascript_slot">
|
||||||
<script type="text/javascript"
|
<script type="text/javascript"
|
||||||
src="node.js"
|
src="loops.js"
|
||||||
tal:attributes="src string:${context/++resource++node.js}">
|
tal:attributes="src string:${context/++resource++loops.js}">
|
||||||
</script>
|
</script>
|
||||||
<metal:use use-macro="views/ajax.dojo/main"
|
<metal:use use-macro="views/ajax.dojo/main"
|
||||||
tal:condition="nothing" />
|
tal:condition="nothing" />
|
||||||
|
|
|
@ -37,6 +37,20 @@
|
||||||
border: none;
|
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 {
|
.box div.body div.menu-3 {
|
||||||
padding-left: 1.5em;
|
padding-left: 1.5em;
|
||||||
}
|
}
|
|
@ -6,9 +6,9 @@
|
||||||
|
|
||||||
<metal:settings fill-slot="settings"
|
<metal:settings fill-slot="settings"
|
||||||
tal:define="dummy python:
|
tal:define="dummy python:
|
||||||
controller.macros.register('css', resourceName='node.css', media='all');
|
controller.macros.register('css', resourceName='loops.css', media='all');
|
||||||
dummy python:
|
dummy python:
|
||||||
controller.macros.register('js', resourceName='node.js');" />
|
controller.macros.register('js', resourceName='loops.js');" />
|
||||||
|
|
||||||
|
|
||||||
<metal:block fill-slot="actions" />
|
<metal:block fill-slot="actions" />
|
||||||
|
|
Loading…
Add table
Reference in a new issue