[CMF-checkins] CVS: CMF - patternWidget.dtml:1.1 registryPredList.dtml:1.1 registryTest.dtml:1.1
tseaver@digicool.com
tseaver@digicool.com
Fri, 25 May 2001 22:56:42 -0400 (EDT)
Update of /cvs-repository/CMF/CMFCore/dtml
In directory korak.digicool.com:/tmp/cvs-serv24039/dtml
Added Files:
patternWidget.dtml registryPredList.dtml registryTest.dtml
Log Message:
- Checkpoint: TTW editing working, somewhat
--- Added File patternWidget.dtml in package CMF ---
<dtml-comment>
This snippet is designed to be included in a larger method; it
provides input elements for a predicate which is based on regular
expressions.
</dtml-comment>
<input type="hidden"
name="predicate.id:record"
value="&dtml-getId;">
<input type="text"
name="predicate.pattern:record"
value="&dtml-getPatternStr;">
--- Added File registryPredList.dtml in package CMF ---
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<h2> Edit Predicate List </h2>
<table>
<dtml-in listPredicates>
<dtml-let item=sequence-item
pred="item[0]"
typName="item[1]"
>
<tr valign="top">
<th align="right"> &dtml-sequence-key;: <th>
<td align="left">
<form action="&dtml-absolute_url;">
<dtml-with expr="pred">
<dtml-var predicateWidget>
<input type="hidden" name="predicate_id" value="&dtml-getId;">
</dtml-with>
<dtml-with portal_types>
<select name="typeObjectName">
<dtml-in listContentTypes>
<dtml-let item=sequence-item
sel="item == typName and 'selected' or ''"
>
<option &dtml-sel;> &dtml-sequence-item; </option>
</dtml-let>
</dtml-in>
</select>
</dtml-with>
<input type="submit" name="doUpdatePredicate:method" value=" Change ">
<input type="submit" name="doRemovePredicate:method" value=" Delete ">
</form>
</td>
<td> <br> </td>
</tr>
</dtml-let>
</dtml-in>
<tr valign="top">
<th align="right"> Add predicate: </th>
<td colspan="2" align="left">
<form action="&dtml-absolute_url;">
<input type="text" name="predicate_id">
<select name="predicate_type">
<dtml-in listPredicateTypes>
<option> &dtml-sequence-item; </option>
</dtml-in>
</select>
<input type="submit" name="doAddPredicate:method" value=" Add ">
</form>
</td>
</tr>
</table>
<dtml-var manage_page_footer>
--- Added File registryTest.dtml in package CMF ---
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<h2> Test Registry </h2>
<dtml-if testResults>
<p> <strong> Result: &dtml-testResults; </strong> </p>
</dtml-if>
<form action="&dtml-absolute_url;/doTestRegistry">
<table>
<tr>
<th align="right"> File name: </th>
<td>
<input type="text" name="name">
</td>
</tr>
<tr>
<th align="right"> Content type: </th>
<td>
<input type="text" name="content_type">
</td>
</tr>
<tr>
<th align="right"> Body: </th>
<td>
<textarea name="body" rows="5" cols="65"></textarea>
</td>
</tr>
<tr>
<td> <br> </td>
<td>
<input type="submit" value=" Go! ">
</td>
</tr>
</table>
</form>
<dtml-var manage_page_footer>