<h1 tal:replace="structure here/manage_page_header">Header</h1>
<h2 tal:define="management_view string:Info;
                manage_tabs_message options/manage_tabs_message | nothing"
    tal:replace="structure here/manage_tabs">Tabs</h2>
<tal:block i18n:domain="AttachmentField">

<h2 i18n:translate="">Attachment Handlers Information</h2>

<h3 i18n:translate="">Available Handlers</h3>

    <table border="1"> 
      <thead>
        <tr>
          <th>Name</th>
          <th>Mime types</th>
          <th>Indexer prog.</th>
          <th>Previewer prog.</th>
        </tr>
      </thead>
      <tbody>
        <tr tal:repeat="handler here/listHandlerValues">
          <td>
            <b><span tal:content="python: handler['class']" /></b>
          </td>
          <td tal:content="structure python: modules['string'].join(handler['mime'], '<br />')">
          </td>
          <td>
            <span tal:content="python: handler['index_program']" />
            <span tal:content="python: handler['index_arguments']" />
          </td>
          <td>
            <span tal:content="python: handler['preview_program']" />
            <span tal:content="python: handler['preview_arguments']" />
          </td>
        </tr>
      </tbody>
    </table>


<h3 i18n:translate="">Test indexing</h3>

    <form action="manage_testIndexing" method="post"  enctype="multipart/form-data">
      <table>
        <tr>
          <th>File</th>
          <td>
            <input type="file" name="file">
          </td>
        </tr>
        <tr>
          <th>Attach. Handler</th>
          <td>
            <select name="handler">
              <option value="">(Guess)</option>
              <option 
                tal:repeat="handler here/listHandlerValues"
                tal:attributes="value python:handler['class']"
                tal:content="python:handler['class']">
              </option>
            </select>
          </td>
        </tr>
        <tr>
          <th>Output encoding</th>
          <td>
            <select name="encoding">
              <option 
                tal:repeat="encoding here/listAvailableEncodings"
                tal:attributes="value python:encoding"
                tal:content="python:encoding">
              </option>
            </select>
          </td>
        </tr>
        <tr>
          <th></th>
          <td>
            <input type="submit" name="submit" value="Test this file">
          </td>
        </tr>
      </table>
    </form>


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