<h1 tal:replace="structure here/manage_page_header">Header</h1>
<h1 tal:replace="structure python: here.manage_form_title( here
                                                         , form_title='Add JTracker'
                                                         , help_product='JTracker'
                                                         , help_topic='Add.stx'
                                                         )">
  Form Title Bar
</h1>

<p class="form-help">
  Add a new JTracker using this form
</p>

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

  <table>

    <tr>
      <td align="left" valign="top"><div class="form-label">
        Id
      </div></td>
      <td align="left" valign="top"><div class="form-element">
        <input type="text" name="id" size="40" />
      </div></td>
    </tr>

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

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

    <tr>
      <td align="left" valign="top"><div class="form-label">
        Abbreviation (for email subjects)
      </div></td>
      <td align="left" valign="top"><div class="form-element">
        <input type="text" name="abbreviation" size="40" />
      </div></td>
    </tr>

    <tr>
      <td align="left" valign="top"><div class="form-label">
        Administrator account
      </div></td>
      <td align="left" valign="top"><div class="form-element">
        <input type="text" name="admin_account" size="40" />
      </div></td>
    </tr>

    <tr>
      <td align="left" valign="top"><div class="form-label">
        Administrator full name
      </div></td>
      <td align="left" valign="top"><div class="form-element">
        <input type="text" name="admin_name" size="40" />
      </div></td>
    </tr>

    <tr>
      <td align="left" valign="top"><div class="form-label">
        Administrator email
      </div></td>
      <td align="left" valign="top"><div class="form-element">
        <input type="text" name="admin_email" size="40" />
      </div></td>
    </tr>

    <tr>
      <td align="left" valign="top"><div class="form-label">
        JTracker email name
      </div></td>
      <td align="left" valign="top"><div class="form-element">
        <input type="text" name="jtracker_emailname" size="40" />
      </div></td>
    </tr>

    <tr>
      <td align="left" valign="top"><div class="form-label">
        JTracker email address
      </div></td>
      <td align="left" valign="top"><div class="form-element">
        <input type="text" name="jtracker_emailaddress" size="40" />
      </div></td>
    </tr>

    <tr>
      <td align="left" valign="top"><div class="form-label">
        Mailhost
      </div></td>
      <td align="left" valign="top"><div class="form-element">
        <span tal:define="mailhosts python: here.superValues(['Mail Host', 'Maildrop Host'])">
          <select name="mailhost">
            <option value=""> Create new MailHost </option>
            <option tal:repeat="mh mailhosts"
                    tal:attributes="value python: '/%s' % mh.absolute_url(1)">
              <span tal:define="mh_path python: '/%s' % mh.absolute_url(1);
                                mh_title python: mh.title or mh.getId()"
                    tal:replace="string:${mh/meta_type} '${mh_title}' at ${mh_path}">
                MailHost 'MailHost' at /MailHost
              </span>
            </option>
          </select>
        </span>
      </div></td>
    </tr>

    <tr>
      <td align="left" valign="top"><div class="form-label">
        File upload size limit
      </div></td>
      <td align="left" valign="top"><div class="form-element">
        <select name="filesize_limit:int">
          <option value="0"> No file uploads allowed </option>
          <option value="50"> 50 KB </option>
          <option value="100"> 100 KB </option>
          <option value="200"> 200 KB </option>
          <option value="500"> 500 KB </option>
          <option value="1000"> 1,000 KB </option>
          <option value="2000"> 2,000 KB </option>
          <option value="5000"> 5,000 KB </option>
          <option value="10000"> 10,000 KB </option>
        </select>
      </div></td>
    </tr>

    <tr>
      <td align="left" valign="top">&nbsp;</td>
      <td align="left" valign="top"><div class="form-element">
        <input class="form-element" type="submit" name="submit" 
               value=" Add " />
      </div></td>
    </tr>

  </table>

</form>

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

