<!DOCTYPE HTML>
<%#include "world.h" %>
<html>
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title><%= controller()->name() + ": " + controller()->activeAction() %></title>
</head>
<body>

<h1>Listing World</h1>

<%== linkTo("New entry", urla("entry")) %><br />
<br />
<table border="1" cellpadding="5" style="border: 1px #d0d0d0 solid; border-collapse: collapse;">
  <tr>
    <th>ID</th>
    <th>RandomNumber</th>
  </tr>
<% tfetch(QList<World>, worldList); %>
<% for (QListIterator<World> it(worldList); it.hasNext(); ) {
     const World &i = it.next(); %>
  <tr>
    <td><%= (ulong)i.id() %></td>
    <td><%= i.randomNumber() %></td>
    <td>
      <%== linkTo("Show", urla("show", i.id())) %>
      <%== linkTo("Edit", urla("edit", i.id())) %>
      <%== linkTo("Remove", urla("remove", i.id()), Tf::Post, "confirm('Are you sure?')") %>
    </td>
  </tr>
<% } %>
</table>

</body>
</html>
