<% end
end %>
</select></td> </tr>
-<tr> <td>Name:</td> <td><input name="name" value="<% Web.html (#name loc) %>"></td> </tr>
+<tr> <td>Name:</td> <td><input name="name" required="required" value="<% Web.html (#name loc) %>"></td> </tr>
<tr> <td><input type="submit" value="Save"></td> </tr>
</table>
</form>
<a href="location?id=<% #id loc %>"><% Web.html (#name loc) %></a><br>
<% end;
-end;
+end; %>
-if showNormal then %>
-<ul>
-<% foreach item in Location.locationTreeWithCounts (NONE, NONE) do
- switch item of
- Util.BEGIN => %>
- <ul>
-<% | Util.END => %>
- </ul>
-<% | Util.ITEM (num, loc) => %>
- <li> <a href="location?id=<% #id loc %>"><% Web.html (#name loc) %></a> (<% num %>)
-<a href="location?mod=<% #id loc %>">[Modify]</a> <a href="location?del=<% #id loc %>">[Delete]</a></li>
-<% end
-end %>
-</ul>
<h3>Add a new location</h3>
<% end
end %>
</select></td> </tr>
-<tr> <td>Name:</td> <td><input name="name"></td> </tr>
+<tr> <td>Name:</td> <td><input name="name" required="required"></td> </tr>
<tr> <td><input type="submit" value="Add"></td> </tr>
</table>
</form>
</form>
+<% if showNormal then %>
+<ul>
+<% foreach item in Location.locationTreeWithCounts (NONE, NONE) do
+ switch item of
+ Util.BEGIN => %>
+ <ul>
+<% | Util.END => %>
+ </ul>
+<% | Util.ITEM (num, loc) => %>
+ <li> <a href="location?id=<% #id loc %>"><% Web.html (#name loc) %></a> (<% num %>)
+<a href="location?mod=<% #id loc %>">[Modify]</a> <a href="location?del=<% #id loc %>">[Delete]</a></li>
+<% end
+end %>
+</ul>
+
+
+
<% end %>
<% @footer[] %>
\ No newline at end of file