[CMF-checkins] CVS: CMF/CMFCalendar/www - configureCalendarTool.zpt:1.1.2.1 explainCalendarTool.zpt:1.1.2.1

Chris Withers chrisw@nipltd.com
Thu, 2 May 2002 09:51:51 -0400


Update of /cvs-repository/CMF/CMFCalendar/www
In directory cvs.zope.org:/tmp/cvs-serv22207/www

Added Files:
      Tag: cmfcalendar_dev
	configureCalendarTool.zpt explainCalendarTool.zpt 
Log Message:
Initial checkin of AndyD's CMFCalendar.

=== Added File CMF/CMFCalendar/www/configureCalendarTool.zpt ===
<tal:header tal:replace="structure here/manage_page_header">header</tal:header>
<tal:tabs   tal:replace="structure here/manage_tabs">tabs</tal:tabs>

<h3> Configure <code>portal_calendar</code> Tool </h3>


<form action="edit_configuration" method="post">

 <h3>Portal Types to show in the calendar</h3>
 <select name="show_types:list" size="7" multiple>
 
  <tal:types tal:repeat="type here/portal_types/objectIds">
  
   <option value="#"
           tal:attributes="value type"
           tal:content="type"
           tal:condition="python: type not in here.getCalendarTypes()">type</option>

   <option value="#" selected
           tal:attributes="value type"
           tal:content="type"
           tal:condition="python: type in here.getCalendarTypes()">type</option>

  </tal:types>

 </select>
 
 <p>
 All types that are to show in the calendar must have an attribute 'start' and 
 an attribute 'end' which return DateTime objects to the Catalog.
 </p>

  <tal:define tal:define="use_session here/portal_calendar/getUseSession">

    <tal:use_session tal:condition="python:use_session">
      <input type="radio" name="use_session" value="True" checked />Use sessions to remember the calendars state<br />
      <input type="radio" name="use_session" value="" />Don't use sessions to remember the calendars state<br />
    </tal:use_session>
      
    <tal:use_session tal:condition="python:not use_session">
      <input type="radio" name="use_session" value="True" />Use sessions to remember the calendars state<br />
      <input type="radio" name="use_session" value="" checked />Don't use sessions to remember the calendars state<br />
    </tal:use_session>

  </tal:define>
  <br>
  
 <input type="submit" value="Submit">
</form>

<tal:footer tal:replace="structure here/manage_page_footer">footer</tal:footer>


=== Added File CMF/CMFCalendar/www/explainCalendarTool.zpt ===
<tal:header tal:replace="structure here/manage_page_header">header</tal:header>
<tal:tabs   tal:replace="structure here/manage_tabs">tabs</tal:tabs>

<h3> <code>portal_calendar</code> Tool </h3>

<p> This tool provides a common interface for providing
    calendar rendering and manipulation functions.
</p>

<tal:footer tal:replace="structure here/manage_page_footer">footer</tal:footer>