<h1 tal:replace="structure here/manage_page_header">Header</h1>
<h1 tal:replace="structure python: here.manage_tabs(management_view='Replies')">
  Manage Tabs
</h1>

<p class="form-text">
  Edit existing replies to this issue.
</p>

<div tal:define="replies here/getReplies"
     tal:condition="replies">

  <div tal:repeat="reply replies">

    <form method="post" action="" enctype="multipart/form-data"
          tal:attributes="action here/absolute_url">

      <input type="hidden" name="reply_id" value=""
             tal:attributes="value reply/reply_id">

      <table width="90%" align="center" cellpadding="2">
      
        <tr tal:condition="repeat/reply/index">
          <td>
            <br />
            <hr width="50%" align="left">
          </td>
        </tr>

        <tr>
          <td>
            <b tal:define="rt reply/reply_type;
                           rm reply/requester_name">
              <span tal:replace="string: ${rt} by ${rm}">
                Request by Someone on 2002/12/02
              </span>
              <span tal:replace="string: (${reply/requester_email})">
                xyz@mail.com
              </span>
              <span tal:replace="string:on ${reply/reply_date/aCommon}">
                Friday, June 22nd, 1999
              </span>
            </b>
          </td>
        </tr>

        <tr>
          <td>
            <textarea cols="80" rows="10" name="description"
                      tal:content="reply/description">Content</textarea>
          </td>
        </tr>

        <tr tal:condition="reply/file_name|nothing">
          <td tal:define="file_name reply/file_name;
                          file_ob python: here.getFile(file_name)">
            <b style="font-size:small;">
              File attached:&nbsp;
              <a href=""
                 tal:attributes="href string:${here/absolute_url}/${file_name}"
                 tal:content="file_name">
                xyz.doc
              </a>
              <span tal:replace="python: '(%i KB)' % (file_ob.get_size()/1024)">
                500 KB
              </span>
          </td>
        </tr>

        <tr tal:condition="not: reply/file_name|nothing">
          <td>
            <input type="file" name="file" size="40">
          </td>
        </tr>

        <tr>
          <td>
            <input type="submit" name="deleteReply:method" 
                   value=" Delete Reply " />
            <input type="submit" name="deleteFile:method" value=" Delete File "
                   tal:condition="reply/file_name|nothing" />
            <input type="submit" name="addFile:method" value=" Add File "
                   tal:condition="not: reply/file_name|nothing" />
            <input type="submit" name="editReply:method" 
                   value=" Edit Description " />
          </td>
        </tr>

      </table>

    </form>

  </div>

</div>

<p tal:condition="not: here/getReplies">
  <b>No followups filed</b>&nbsp;&nbsp;
</p>

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

