[Checkins] SVN: Sandbox/ulif/grokui.zodbbrowser/src/grokui/zodbbrowser/templates/zodbbrowser.pt Add buttons to set output.

Uli Fouquet uli at gnufix.de
Sat Feb 27 12:16:57 EST 2010


Log message for revision 109484:
  Add buttons to set output.
  

Changed:
  U   Sandbox/ulif/grokui.zodbbrowser/src/grokui/zodbbrowser/templates/zodbbrowser.pt

-=-
Modified: Sandbox/ulif/grokui.zodbbrowser/src/grokui/zodbbrowser/templates/zodbbrowser.pt
===================================================================
--- Sandbox/ulif/grokui.zodbbrowser/src/grokui/zodbbrowser/templates/zodbbrowser.pt	2010-02-27 17:15:46 UTC (rev 109483)
+++ Sandbox/ulif/grokui.zodbbrowser/src/grokui/zodbbrowser/templates/zodbbrowser.pt	2010-02-27 17:16:57 UTC (rev 109484)
@@ -1,15 +1,28 @@
 <h1>The GrokUI ZODBBrowser</h1>
 <span tal:content="structure view/getBreadCrumbs">
 </span>
+<p>
+  <form method="POST">
+    <input type="checkbox" name="show_all" id="show_all"
+	   tal:attributes="checked python: view.show_all and 'checked'" />
+    <label for="show_all">show all members</label>
+    <input type="checkbox" name="show_docs" id="show_docs"
+	   tal:attributes="checked python: view.show_docs and 'checked'" />
+    <label for="show_docs">show docstrings</label>
+    <input type="hidden" name="oid" 
+	   tal:attributes="value view/info/oid" />
+    <input type="submit" name="update" value="Update" />
+  </form>
+</p>
 <h3 tal:content="view/info/name">the_object_name</h3>
-<h3 tal:content="view/info/obj">The_Object</h3>
+<h3 tal:content="view/info/type_string">The_Object</h3>
 <div tal:content="view/info/getDescription">
   The object description
 </div>
 
 <h2>Members</h2>
 <div tal:repeat="member view/info/getMembers">
-  <!-- div tal:condition="not: member/linkable" -->
+  <div tal:condition="python: member.linkable or view.show_all">
     <div tal:content="structure python: view.getMemberView(member)()" />
-  <!-- /div -->
+  </div>
 </div>



More information about the checkins mailing list