<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 tal:define="global tracker here/getTracker">
  <a href="" id="jtracker_title"
     tal:attributes="href string:${tracker/absolute_url}/">
    <span tal:replace="string:${tracker/title} (${tracker/abbreviation})">
      Tracker title
    </span>
  </a>&nbsp;-&nbsp;Add entry
</h2>

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

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

    <tr>
      <td align="left" valign="top"><b> Issue </b></td>
      <td align="left" valign="top"
          tal:content="string:${here/title} (${here/request_type})">
        Some Issue (Bug Report)
      </td>
    </tr>

    <tr>
      <td align="left" valign="top"><b> Posted </b></td>
      <td align="left" valign="top"
          tal:define="rn here/requester_name"
          tal:content="string:${here/request_date/Date} by ${rn}">
        Some Issue (Bug Report)
      </td>
    </tr>

    <tr>
      <td align="left" valign="top"><b> Full name </b></td>
      <td align="left" valign="top">
        <input type="text" size="50" 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="50" name="requester_email" value=""
               tal:attributes="value request/requester_email|account/email|nothing">
        <br /><br />
      </td>
    </tr>

    <tr tal:condition="tracker/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" colspan="2"
          tal:define="rep_types here/getReplyTypes">
        <span tal:condition="python: len(rep_types) > 1"
              tal:omit-tag=""
              tal:repeat="typ rep_types">
          <input type="radio" name="reply_type"
                 tal:attributes="value typ;
                                 checked python: typ == 'Comment'" />
          <span tal:replace="structure string: ${typ}&nbsp;&nbsp;" />
        </span>
        <input type="hidden" name="reply_type"
               tal:condition="python: len(rep_types) == 1"
               tal:attributes="value python: rep_types[0]" />
      </td>
    </tr>

    <tr>
      <td align="left" valign="top" colspan="2">
        <textarea cols="60" rows="15" name="description" wrap="soft"
                  tal:content="request/description|nothing"></textarea>
      </td>
    </tr>

    <tr>
      <td align="left" valign="top" colspan="2">
        <input class="form-element" type="submit" name="submit" 
               value=" Submit Reply " />
      </td>
    </tr>

  </table>

</form>

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

