[CMF-checkins] CVS: CMF - friendlydatec_editform.dtml:1.1

Jeffrey Shell jeffrey@digicool.com
Fri, 30 Mar 2001 11:51:42 -0500 (EST)


Update of /cvs-repository/CMF/CMFTopic/skins/topic
In directory korak:/home/jeffrey/InstanceHomes/cmf-dev/CMF/CMFTopic/skins/topic

Added Files:
	friendlydatec_editform.dtml 
Log Message:
Added new DateCriteria module, which currently only has the FriendlyDate criterion class, and will have a couple more date oriented ones in the future.  Also added new test suite for the Date Criteria, and an all singing AllTopic test module that runs all of the topic test suites in one.


--- Added File friendlydatec_editform.dtml in package CMF ---
<table border="0" cellpadding="0" cellspacing="2" class="FormLayout">
 <tr>
  <td width="20">
   <input type="checkbox" value="&dtml-getId;"
    name="criterion_ids:list" id="cb_&dtml-getId;">
  </td>
  <td align="left">
   <label for="cb_&dtml-id;">
    <strong title="&dtml-Description;">"Friendly" Date:</strong>
    <tt>&dtml-Field;</tt>
   </label>
   <input type="hidden" name="criteria.id:records" value="&dtml-getId;">
  </td>
 </tr>
 <tr valign="top">
  <td width="20">&nbsp;</td>
  <td>
   <dtml-let minselected="operation == 'min' and 'selected' or ''"
             maxselected="operation == 'max' and 'selected' or ''">
    <select name="criteria.operation:records">
     <option value="min" &dtml-minselected;>At the least:</option>
     <option value="max" &dtml-maxselected;>At the most:</option>
    </select>
   </dtml-let>

   <select name="criteria.value:records">
    <dtml-in name="defaultDateOptions">
     <option value="&dtml-sequence-key;"
      <dtml-if expr="value == _['sequence-key']">selected</dtml-if>
     >&dtml-sequence-item;</option>
    </dtml-in>
   </select>

   <dtml-let oldselected="daterange == 'old' and 'selected' or ''"
             aheadselected="daterange == 'ahead' and 'selected' or ''">
    <select name="criteria.daterange:records">
     <option value="old" &dtml-oldselected;>old</option>
     <option value="ahead" &dtml-aheadselected;>ahead</option>
    </select>
   </dtml-let>
  </td>
 </tr>
</table>