[Checkins] SVN: zope3org/trunk/src/zorg/table/ editable __name__ field

Stefan Martin s.martin at iwm-kmrc.de
Sat Apr 8 08:57:03 EDT 2006


Log message for revision 66670:
  editable __name__ field

Changed:
  D   zope3org/trunk/src/zorg/table/container/cell.pt
  U   zope3org/trunk/src/zorg/table/container/cell_name.pt
  U   zope3org/trunk/src/zorg/table/container/configure.zcml
  U   zope3org/trunk/src/zorg/table/interfaces.py

-=-
Deleted: zope3org/trunk/src/zorg/table/container/cell.pt
===================================================================
--- zope3org/trunk/src/zorg/table/container/cell.pt	2006-04-08 12:56:57 UTC (rev 66669)
+++ zope3org/trunk/src/zorg/table/container/cell.pt	2006-04-08 12:57:03 UTC (rev 66670)
@@ -1 +0,0 @@
-<span class="containercell" tal:content="view/cell"/>
\ No newline at end of file

Modified: zope3org/trunk/src/zorg/table/container/cell_name.pt
===================================================================
--- zope3org/trunk/src/zorg/table/container/cell_name.pt	2006-04-08 12:56:57 UTC (rev 66669)
+++ zope3org/trunk/src/zorg/table/container/cell_name.pt	2006-04-08 12:57:03 UTC (rev 66670)
@@ -1,9 +1,38 @@
-<metal:block tal:condition="view/hasInputWidget">
-<span class="containercell" tal:content="structure view/content"/>
+
+<metal:block tal:condition="view/useForm">
+<metal:block tal:define="widget view/content">
+<div class="field" tal:define="hint widget/hint"
+     metal:define-macro="widgetcell">
+  <div class="form-fields-help"
+       i18n:translate=""
+       tal:content="hint"
+       tal:condition="hint"
+       tal:attributes="id string:field-help-for-${widget/name}"
+       onclick="this.style.visibility='hidden';"
+       style="visibility: hidden; position: absolute;"
+       >Title of this content object.</div>
+  <div class="widget">
+    <img tal:replace="structure view/icon"/>
+    <span tal:content="structure widget">
+      <input type="text" />
+    </span>
+  </div>
+  <div class="error"
+       tal:condition="widget/error"
+       >
+    <span tal:replace="structure widget/error">error</span>
+  </div>
+</div>
 </metal:block>
+</metal:block>
+
+<metal:block tal:condition="not:view/useForm">
+<img tal:replace="structure view/icon"/>
 <a href=""
-   tal:condition="not:view/hasInputWidget"
    tal:attributes="href string:${context/@@absolute_url}/@@SelectedManagementView.html">
-<img tal:replace="structure view/icon"/>
-<span class="containercell" tal:content="view/cell"/>
+<span tal:condition="view/useWidget"
+      tal:content="structure view/content"/>
+<span tal:condition="not:view/useWidget"
+      tal:content="view/content"/>
 </a>
+</metal:block>

Modified: zope3org/trunk/src/zorg/table/container/configure.zcml
===================================================================
--- zope3org/trunk/src/zorg/table/container/configure.zcml	2006-04-08 12:56:57 UTC (rev 66669)
+++ zope3org/trunk/src/zorg/table/container/configure.zcml	2006-04-08 12:57:03 UTC (rev 66670)
@@ -128,8 +128,6 @@
       for="zope.interface.Interface"
       name="title"
       useForm="True"
-      class=".view.CellNameView"
-      template="cell_name.pt"
       permission="zope.Public"
       />
 

Modified: zope3org/trunk/src/zorg/table/interfaces.py
===================================================================
--- zope3org/trunk/src/zorg/table/interfaces.py	2006-04-08 12:56:57 UTC (rev 66669)
+++ zope3org/trunk/src/zorg/table/interfaces.py	2006-04-08 12:57:03 UTC (rev 66670)
@@ -1,4 +1,5 @@
 
+
 from zope.interface import Interface, implements, Attribute
 from zope.schema import TextLine, List, Bool, Object, Dict, Int
 from zope.schema.interfaces import IField
@@ -122,3 +123,5 @@
 
 class ITableForm(Interface):
     """a form of a table"""
+
+



More information about the Checkins mailing list