<!DOCTYPE HTML>
<%#include "world.h" %>
<% tfetch(QVariantMap, world); %>
<html>
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title><%= controller()->name() + ": " + controller()->activeAction() %></title>
</head>
<body>
<p style="color: red"><%=$ error %></p>
<p style="color: green"><%=$ notice %></p>

<h1>Editing World</h1>

<%== formTag(urla("save", world["id"]), Tf::Post) %>
  <p>
    <label>ID<br /><input type="text" name="world[id]" value="<%= world["id"] %>" readonly="readonly" /></label>
  </p>
  <p>
    <label>RandomNumber<br /><input type="text" name="world[randomNumber]" value="<%= world["randomNumber"] %>" /></label>
  </p>
  <p>
    <input type="submit" value="Update" />
  </p>
</form>

<%== linkTo("Show", urla("show", world["id"])) %> |
<%== linkTo("Back", urla("index")) %>
</body>
</html>
