minor improvements for editing and assigning targets to nodes
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1178 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
975816be9c
commit
7b92e3bcf9
3 changed files with 7 additions and 6 deletions
|
@ -21,7 +21,7 @@
|
||||||
<input type="hidden" name="form_submitted" value="true" />
|
<input type="hidden" name="form_submitted" value="true" />
|
||||||
<tal:control condition="request/form_submitted|nothing">
|
<tal:control condition="request/form_submitted|nothing">
|
||||||
<script language="JavaScript">
|
<script language="JavaScript">
|
||||||
focusOpener();
|
//focusOpener();
|
||||||
</script>
|
</script>
|
||||||
</tal:control>
|
</tal:control>
|
||||||
|
|
||||||
|
|
|
@ -103,7 +103,8 @@
|
||||||
tal:content="item/context/title"
|
tal:content="item/context/title"
|
||||||
tal:attributes="href item/url">Menu Text</a>
|
tal:attributes="href item/url">Menu Text</a>
|
||||||
</div>
|
</div>
|
||||||
<tal:sub tal:define="level python:level+1">
|
<tal:sub define="level python:level+1"
|
||||||
|
condition="python: level < 4 or view.active(item)">
|
||||||
<tal:items repeat="item item/menuItems">
|
<tal:items repeat="item item/menuItems">
|
||||||
<metal:portlet use-macro="views/node_macros/menu" />
|
<metal:portlet use-macro="views/node_macros/menu" />
|
||||||
</tal:items>
|
</tal:items>
|
||||||
|
|
|
@ -8,8 +8,9 @@
|
||||||
<metal:top define-slot="topActions" />
|
<metal:top define-slot="topActions" />
|
||||||
<form metal:define-macro="listing_form"
|
<form metal:define-macro="listing_form"
|
||||||
method="post" name="listing" action="."
|
method="post" name="listing" action="."
|
||||||
tal:attributes="action request/URL"
|
tal:define="target view/target"
|
||||||
tal:condition="items">
|
tal:condition="python: target or items"
|
||||||
|
tal:attributes="action request/URL">
|
||||||
<input type="hidden" name="action" value="assign"
|
<input type="hidden" name="action" value="assign"
|
||||||
tal:attributes="value action" />
|
tal:attributes="value action" />
|
||||||
<table class="listing" summary="Currently assigned"
|
<table class="listing" summary="Currently assigned"
|
||||||
|
@ -22,8 +23,7 @@
|
||||||
<th i18n:translate="label_type">Type</th>
|
<th i18n:translate="label_type">Type</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody tal:define="target view/target;
|
<tbody tal:define="targetToken python: target and target.token or None">
|
||||||
targetToken python: target and target.token or None">
|
|
||||||
<tal:none define="item nothing; title string:None; token nothing;
|
<tal:none define="item nothing; title string:None; token nothing;
|
||||||
type nothing">
|
type nothing">
|
||||||
<metal:none use-macro="views/target_macros/list_item_tr" />
|
<metal:none use-macro="views/target_macros/list_item_tr" />
|
||||||
|
|
Loading…
Add table
Reference in a new issue