[CMF-checkins] CVS: CMF/CMFDecor/skins/zpt_content - full_metadata_edit_form.pt:1.4 metadata_edit_form.pt:1.7

Andrew Sawyers andrew@zope.com
Tue, 4 Dec 2001 14:04:50 -0500


Update of /cvs-repository/CMF/CMFDecor/skins/zpt_content
In directory cvs.zope.org:/tmp/cvs-serv31970/CMFDecor/skins/zpt_content

Modified Files:
	full_metadata_edit_form.pt metadata_edit_form.pt 
Log Message:

*Tracker #169
*GUI knobs added to metadata edit form skins
*method added to DiscussionTool to override discussability for a
piece of content.
*removed simple_metadata.pt, old kruft.
*added python script isDiscussable to return the objects
allow_discussion or None


=== CMF/CMFDecor/skins/zpt_content/full_metadata_edit_form.pt 1.3 => 1.4 ===
 <form action="metadata_edit" method="post">
 <table class="FormLayout">
+ <tr>
+  <th>
+    Enable Discussion?
+  </th>
+  <td colspan="3">
+    <select name="allowDiscussion"
+            tal:define="val here/isDiscussable">
+        <option value="None"
+                tal:attributes="selected python: val == None"> Default </option>
+        <option value="0"
+                tal:attributes="selected python: val == 0"> Off </option>
+        <option value="1"
+                tal:attributes="selected python: val == 1"> On </option>
+     </select>
+  </td>
+ </tr>
  <tr valign="top">
   <th align="right"> Identifier
   </th>


=== CMF/CMFDecor/skins/zpt_content/metadata_edit_form.pt 1.6 => 1.7 ===
  <tr valign="top">
 
-  <td> </td> <td> </td>
+  <th>
+    Enable Discussion?
+  </th>
+  <td>
+    <select name="allowDiscussion"
+            tal:define="val here/isDiscussable">
+        <option value="None"
+                tal:attributes="selected python: val == None"> Default </option>
+        <option value="0"
+                tal:attributes="selected python: val == 0"> Off </option>
+        <option value="1"
+                tal:attributes="selected python: val == 1"> On </option>
+     </select>
+  </td>
   <td colspan="2" align="right">
    <a href="full_metadata_edit_form"> Edit all metadata </a>
   </td>