show lightbox for links on images that do not lead to a child concept; provide info icon for resources that have the 'showInfo' flag set
This commit is contained in:
parent
26472a280e
commit
c2410a830e
4 changed files with 40 additions and 4 deletions
|
@ -547,6 +547,12 @@
|
|||
class="loops.browser.node.ObjectInfo"
|
||||
permission="zope.View" />
|
||||
|
||||
<page
|
||||
name="meta_info.html"
|
||||
for="loops.interfaces.INode"
|
||||
class="loops.browser.node.MetaInfo"
|
||||
permission="zope.View" />
|
||||
|
||||
<page
|
||||
name="create_object.html"
|
||||
for="loops.interfaces.INode"
|
||||
|
|
|
@ -38,7 +38,29 @@
|
|||
</tr>
|
||||
<tr tal:repeat="info item/additionalInfos">
|
||||
<td><span i18n:translate=""
|
||||
tal:content="info/label">Creators</span>:</td>
|
||||
tal:content="info/label">Meta</span>:</td>
|
||||
<td tal:content="structure info/value"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><br />
|
||||
<input type="button" value="Close" onclick="closeDialog()"
|
||||
i18n:attributes="value" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</metal:info>
|
||||
|
||||
|
||||
<metal:info define-macro="meta_info"
|
||||
tal:define="item nocall:view/item">
|
||||
<table class="object_info" width="400">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<h2 tal:content="item/title">Information</h2></td>
|
||||
</tr>
|
||||
<tr tal:repeat="info item/additionalInfos">
|
||||
<td><span i18n:translate=""
|
||||
tal:content="info/label">Meta</span>:</td>
|
||||
<td tal:content="structure info/value"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -48,5 +70,4 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</metal:info>
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
tal:attributes="class python:part.cssClass[0]">
|
||||
<metal:image use-macro="item/macros/image" />
|
||||
<span tal:condition="cell/img/showInfo|nothing">
|
||||
<a tal:define="url string:${cell/img/url}/object_info.html"
|
||||
<a tal:define="url string:${cell/img/url}/meta_info.html"
|
||||
tal:attributes="href url;
|
||||
onclick string:objectDialog('', '$url');;
|
||||
return false">
|
||||
|
@ -82,7 +82,7 @@
|
|||
<div class="legend">
|
||||
<b tal:content="cell/title" />
|
||||
<span tal:condition="cell/img/showInfo|nothing">
|
||||
<a tal:define="url string:${cell/img/url}/object_info.html"
|
||||
<a tal:define="url string:${cell/img/url}/meta_info.html"
|
||||
tal:attributes="href url;
|
||||
onclick string:objectDialog('', '$url');;
|
||||
return false">
|
||||
|
|
|
@ -607,6 +607,15 @@ class ObjectInfo(NodeView):
|
|||
return self.request.get('dialog', 'object_info')
|
||||
|
||||
|
||||
class MetaInfo(ObjectInfo):
|
||||
|
||||
__call__ = innerHtml
|
||||
|
||||
@Lazy
|
||||
def macro(self):
|
||||
return self.macros['meta_info']
|
||||
|
||||
|
||||
class InlineEdit(NodeView):
|
||||
""" Provides inline editor as inner HTML"""
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue