<h1 tal:replace="structure here/standard_html_header">Header</h1>

<p style="{font-weight:bold; font-size:larger; color:red;}"
      tal:define="error_msg request/error_msg|options/error_msg|nothing"
      tal:condition="error_msg"
      tal:content="string: *** ${error_msg} *** ">
  Some Error
</p>

<h2>
  <a href="" id="jtracker_title"
     tal:attributes="href string:${here/absolute_url}/">
    <span tal:replace="string:${here/title} (${here/abbreviation})">
      Tracker title
    </span>
  </a>&nbsp;-&nbsp;Add new Issue
</h2>

<form action="addIssue" method="post" enctype="multipart/form-data">

  <table cellpadding="2" cellspacing="2"
         tal:define="account here/getAccountInfo">

    <tr>
      <td align="left" valign="top"><b> Title </b></td>
      <td align="left" valign="top">
        <input type="text" name="title" size="40" 
               tal:attributes="value request/title|nothing" />
      </td>
    </tr>

    <tr>
      <td align="left" valign="top"><b> Request type </b></td>
      <td align="left" valign="top">
        <select name="request_type">
          <option value=""
                  tal:define="req_typ request/request_type|nothing"
                  tal:repeat="rt here/request_types"
                  tal:attributes="value rt;
                                  selected python: rt == req_typ;"
                  tal:content="rt">
            Some Component
          </option>
        </select>
      </td>
    </tr>

    <tr>
      <td align="left" valign="top"><b> Component </b></td>
      <td align="left" valign="top">
        <select name="component">
          <option value=""
                  tal:define="r_comp request/component|nothing"
                  tal:repeat="comp here/components"
                  tal:attributes="value comp;
                                  selected python: r_comp == comp"
                  tal:content="comp">
            Some Component
          </option>
        </select>
      </td>
    </tr>

    <tr>
      <td align="left" valign="top"><b> Description </b></td>
      <td align="left" valign="top">
        <textarea cols="45" rows="10" name="description" wrap="soft"
                  tal:content="request/description|nothing"></textarea>
      </td>
    </tr>

    <tr tal:condition="here/filesize_limit|nothing">
      <td align="left" valign="top"><b> Upload File </b></td>
      <td align="left" valign="top">
        <input type="file" name="file" size="30">
      </td>
    </tr>

    <tr>
      <td align="left" valign="top"><b> Full Name </b></td>
      <td align="left" valign="top">
        <input type="text" size="40" name="requester_name" value=""
               tal:attributes="value request/requester_name|account/full_name|nothing">
      </td>
    </tr>

    <tr>
      <td align="left" valign="top"><b> Email Address </b></td>
      <td align="left" valign="top">
        <input type="text" size="40" name="requester_email" value=""
               tal:attributes="value request/requester_email|account/email|nothing">
      </td>
    </tr>

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

  </table>

</form>

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

