<h1 tal:replace="structure here/manage_page_header">Header</h1>
<h1 tal:replace="structure python: here.manage_tabs(management_view='Advanced')">
  Form Title Bar
</h1>

<p class="form-help">
  Map user IDs to email addresses
</p>

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

  <table cellspacing="0" cellpadding="2" width="98%">

    <tr class="section-bar">
      <td align="left" valign="top" width="16">&nbsp;</td>
      <td align="left" valign="top"><div class="form-label">
        User ID
      </div></td>
      <td align="left" valign="top"><div class="form-label">
        Full Name
      </div></td>
      <td align="left" valign="top"><div class="form-label">
        Email address
      </div></td>
    </tr>

    <tr>
      <td align="left" valign="top" width="16">&nbsp;</td>
      <td align="left" valign="top"><div class="form-text">
        <span tal:replace="here/admin_account"> Admin </span>
      </div></td>
      <td align="left" valign="top"><div class="form-text">
        <span tal:replace="here/admin_name"> Full Name </span>
      </div></td>
      <td align="left" valign="top"><div class="form-text">
        <span tal:replace="here/admin_email"> admin@jtracker.org </span>
      </div></td>
    </tr>

    <tr tal:repeat="account here/getAccounts">
      <td align="left" valign="top" width="16">
        <input type="checkbox" name="user_ids:list"
               tal:attributes="value account/user_id">
      </td>
      <td align="left" valign="top"><div class="form-text">
        <span tal:replace="account/user_id"> ID </span>
      </div></td>
      <td align="left" valign="top"><div class="form-text">
        <span tal:replace="account/full_name"> Name </span>
      </div></td>
      <td align="left" valign="top"><div class="form-text">
        <span tal:replace="account/email"> email </span>
      </div></td>
    </tr>

    <tr tal:condition="here/getAccounts|nothing">
      <td align="left" valign="top">&nbsp;</td>
      <td align="left" valign="top" colspan="3"><div class="form-element">
        <input class="form-element" type="submit" name="submit" 
               value=" Delete " />
      </div></td>
    </tr>

  </table>

</form>

<p>&nbsp;</p>

<form action="addAccount" method="post">
  <table cellspacing="0" cellpadding="2" width="98%">
    <tr class="section-bar">
      <td colspan="2"><div class="form-label">
        Add supporter account
      </td>
    </tr>
    <tr>
      <td align="left"><div class="form-label">
        User ID
      </div></td>
      <td align="left"><div class="form-element">
        <input type="text" name="user_id" size="40">
      </div></td>
    </tr>
    <tr>
      <td align="left"><div class="form-label">
        Full Name
      </div></td>
      <td align="left"><div class="form-element">
        <input type="text" name="full_name" size="40">
      </div></td>
    </tr>
    <tr>
      <td align="left"><div class="form-label">
        Email address
      </div></td>
      <td align="left"><div class="form-element">
        <input type="text" name="email" size="40">
      </div></td>
    </tr>
    <tr>
      <td colspan="2"><div class="form-element">
        <input type="submit" value=" Add ">
      </div></td>
    </tr>
  </table>
</form>

<p><hr /></p>

<form method="post" action="manage_reindex">
  <input type="submit" value=" Reindex all issues ">
</form>

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

