login

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>{{$title}} - invites</title>
  <style>
    .centered { text-align: center; }
    .mono { font-family: monospace; }
    % include view/table.css
  </style>
</head>
<body>
  <h1 class="centered">Invites</h1>
  <form class="centered" action="/i" method="post">
    <button type="submit">new</button>
  </form>
  <br>
  <table class="center">
    <tr>
      <th>invite</th>
      <th>expiration</th>
      <th>cancel</th>
    </tr>
    % for invite in $invites do
      <tr>
        <td><a href="/join?invite={{$invite.uuid}}" class="mono">{{$invite.uuid}}</a></td>
        <td>{{os.date("%Y-%m-%d %H:%M:%S", $invite.expire)}}</td>
        <td>
          <form action="/i/{{$invite.uuid}}/del" method="post">
            <button type="submit">cancel</button>
          </form>
        </td>
      </tr>
    % end
  </table>
</body>
</html>