<h1 tal:replace="structure here/manage_page_header" />

<!--
  $RCSfile: create.pt,v $

  This is the HTML form for adding an XSLTMethod.

  Author: Chip Morris <cmorris@arielpartners.com>
  Modified by Philipp "philiKON" von Weitershausen <philikon@philikon.de>

  $Id: create.pt,v 1.4 2003/03/30 03:45:47 cstrong Exp $
-->

<h2 tal:define="form_title string:Add XSLTMethod;
                help_product string:Products/ZopeXMLMethods;
                help_topic string:create.stx"
    tal:replace="structure here/manage_form_title">Form Title</h2>

<p class="form-help">
An XSLTMethod object matches an XML document with a compatible
XSLT transformer, and automatically runs the transformation and
renders itself when accessed through DTML or via a Zope Page
Template.
</p>

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

<table cellspacing="0" cellpadding="2" border="0">

  <tr class="list-header">
    <th colspan="2">Standard Zope Settings</th>
  </tr>

  <tr>
    <td align="left" valign="top">
      <div class="form-label">ID</div>
    </td>
    <td align="left" valign="top">
      <input type="text" name="id" size="25" value="" />
    </td>
  </tr>

  <tr>
    <td align="left" valign="top">
      <div class="form-label">Title</div>
    </td>
    <td align="left" valign="top">
      <input type="text" name="title" size="25" value="" />
    </td>
  </tr>

  <tr>
    <td align="left" valign="top">
      <div class="form-label">Description</div>
    </td>
    <td align="left" valign="top">
      <textarea name="description" rows="3" cols="60"></textarea>
    </td>
  </tr>

  <tr class="list-header">
    <th colspan="2">XML Settings</th>
  </tr>

  <tr>
    <td align="left" valign="top">
      <div class="form-label">XSLT Processor</div>
    </td>
    <td align="left" valign="top"><select name="selected_processor">
      <option tal:repeat="proc here/availableProcessors"
              tal:attributes="value proc"
              tal:content="proc"></option>
    </select></td>
  </tr>

  <tr>
    <td align="left" valign="top">
      <div class="form-label">XSL Transformer ID</div>
    </td>
    <td align="left" valign="top">
      <input type="text" name="xslTransformerId" size="25" value="" />
    </td>
  </tr>

  <tr>
    <td align="left" valign="top">
      <div class="form-label">Behave like...</div>
    </td>
    <td align="left" valign="top"><select name="behave_like">
      <option value="">... the source object</option>
      <option tal:repeat="behave here/behaveLikeList"
              tal:attributes="value behave"
              tal:content="behave"></option>
    </select></td>
  </tr>

  <tr tal:define="manager here/findCacheManager">
    <td align="left" valign="top">
      <div class="form-label">Cache Manager</div>
    </td>
    <td align="left" valign="top" tal:condition="manager">
      <a tal:attributes="href python:manager.url()+'/manage_workspace'"
	tal:content="python:'Root Folder/'+manager.absolute_url(1)">dummy</a>
      <tal:nothing tal:condition="manager/title" tal:replace="python:'('+manager.title+')'"/>
    </td>
    <td align="left" valign="top" tal:condition="not:manager">Not available</td>
  </tr>

  <tr>
    <td align="left" valign="top">
      <div class="form-label">Caching Behaviour</div>
    </td>
    <td align="left" valign="top">
      <input type="radio" name="caching" value="on" checked="checked" />Cache when available<br />
      <input type="radio" name="caching" value="off" />Never cache
    </td>
  </tr>

  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td align="left" valign="top"></td>
    <td align="left" valign="top">
      <div class="form-element">
        <input class="form-element" type="submit" name="submit" value=" Add " />
        <input class="form-element" type="submit" name="submit" value=" Add and Edit " />
      </div>
    </td>
  </tr>
</table>

</form>

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