[Zope3-checkins] CVS: Zope3/src/zope/app/advanced - properties.dtml:1.1

Philipp von Weitershausen philikon at philikon.de
Thu Apr 1 12:33:32 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/advanced
In directory cvs.zope.org:/tmp/cvs-serv13180

Added Files:
	properties.dtml 
Log Message:
Provided a properties browser page. This is to set some of the properties
of the persistent query tool. Not sure yet whether this is the right 
approach, though.


=== Added File Zope3/src/zope/app/advanced/properties.dtml ===
<html>
<head>
<title>Properties</title>
</head>
<body bgcolor="#FFFFFF" link="#000099" vlink="#555555">
<!--#var manage_tabs-->

<!--#if Principia-Session-->
<p>
<em>You are currently working in session <!--#var Principia-Session--></em>
</p>
<!--#/if Principia-Session-->

<form action="." method="POST">
<!--#if propertyMap-->
<p>
The following properties are defined for this item. To <a href="#addpropform">
add a new property</a>, enter a name, type and value for the new property 
and click the &quot;Add&quot; button. To change property values, edit the 
values and click "Save Changes". 
</p>
<table border="0" cellspacing="0" cellpadding="2">
<!--#in propertyMap mapping-->
<tr>
  <td align="left" valign="top" width="16">
  <!--#if "'d' in _['sequence-item'].get('mode', 'awd')"-->
  <input type="checkbox" name="ids:list" value="<!--#var id-->" ID="cb-<!--#var id-->">
  <!--#else-->
  <!--#endif-->
  </td>
  <td align="left" valign="top">
  <strong><LABEL FOR="cb-<!--#var id-->"><!--#var id--></LABEL></strong>
  </td>
  <td align="left" valign="top">
  <!--#if "'w' in _['sequence-item'].get('mode', 'awd')"-->
  <!--#if "type in ('string', 'int', 'long', 'float', 'date')"-->
  <input type="text" name="<!--#var id-->:<!--#var type-->" size="35"
   value="<!--#var "_[id]"-->">
  <!--#elif "type=='string'"-->
  <input type="text" name="<!--#var id-->:string" size="35"
   value="<!--#var "_[id]" html_quote-->">
  <!--#elif "type=='boolean'"-->
  <input type="checkbox" name="<!--#var id-->:boolean" size="35"
   <!--#if "_[id]"-->CHECKED<!--#/if-->>
  <!--#elif "type=='tokens'"-->
  <input type="text" name="<!--#var id-->:tokens" size="35"
   value="<!--#in "_[id]"--><!--#var sequence-item--> <!--#endin-->">
  <!--#elif "type=='text'"-->
  <textarea name="<!--#var id-->:text" rows="6" cols="35"><!--#var 
   "_[id]"--></textarea>
  <!--#elif "type=='lines'"-->
  <textarea name="<!--#var id-->:lines" rows="6" cols="35"><!--#in
  "_[id]"--><!--#var sequence-item-->
<!--#endin--></textarea>
  <!--#else-->
  <em>Unknown property type</em>
  <!--#endif-->
  <!--#else-->
  <table border="1">
  <tr><td><!--#var "_[id]"--></td></tr>
  </table>
  <!--#endif-->
  </td>
</tr>
<!--#endin-->
<tr>
  <td align="left" valign="top" width="16">
  </td>
  <td align="left" valign="top" width="16">
  </td>
  <td align="left" valign="top">
  <input type="submit" name="manage_editProperties:method" 
   value="Save Changes">
  <input type="submit" name="manage_delProperties:method" value="Delete">
  </td>
</tr>
</table>

<!--#else-->
<p>
There are currently no properties defined for this item. 
To add a property, click the &quot;Add...&quot; button.
</p>

<!--#endif-->
</form>

<a name="addpropform">
<form action="<!--#var URL1-->/manage_addProperty" method="POST">
<p>
To add a new property, enter a name, type and value for the new 
property and click the &quot;Add&quot; 
button.
</p>
<table>
<tr>
  <th align="left" valign="top">Id</th>
  <td align="left" valign="top"><input type="text" name="id" size="20"></td>
  <th align="left" valign="top">Type</th>
  <td align="left" valign="top">
    <select name="type">
      <option>boolean</option>
      <option>date</option>
      <option>float</option>
      <option>int</option>
      <option>lines</option>
      <option>long</option>
      <option SELECTED>string</option>
      <option>text</option>
      <option>tokens</option>
    </select>
  </td>
</tr>
<tr>
  <th align="left" valign="top">Value</th>
  <td colspan=2 align="left" valign="top">
    <input type="text" name="value" size="30">
  </td>
  <td align="right" valign="top">
  <input type="submit" value=" Add ">
  </td>
</tr>
</table>
</form>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br>

</body>
</html>





More information about the Zope3-Checkins mailing list