<include href="header.html" />

<check if="isset(@mboxes_array)">
<true>
  <table>
    <tr>
      <th>Email</th>
      <th>Options</th>
      <th>Account</th>
    </tr>
    <repeat group="{{ @mboxes_array }}" value="{{ @mbox_array }}">
      <tr>
        <td><a href="{{@REALM}}/{{ @mbox_array.mbox  }}">{{ @mbox_array.mbox  }}@{{@PARAMS.domain}}</a></td>
        <td><a href="{{@REALM}}/{{ @mbox_array.mbox  }}/Aliases">Aliases</a> | <a href="{{@REALM}}/{{ @mbox_array.mbox  }}/Autoresponder">Autoresponder</a> | <a href="{{@REALM}}/{{ @mbox_array.mbox  }}/Forwarding">Forwarding</a></td>

        <td><a href="{{@REALM}}/{{ @mbox_array.mbox  }}/Edit">Edit</a> <a href="{{@REALM}}/{{ @mbox_array.mbox  }}/Delete">Delete</a></td>
      </tr>
    </repeat>
  </table>
</true>
<false>
  <p>There are no email accounts for {{@PARAMS.domain}}</p>
</false>
</check>
<p><a href="{{@REALM}}/Add">Add new email account form</a></p>
<include href="footer.html" />