payment: note that Stripe has instituted an additional 1% fee for non-US cards
[hcoop/portal.git] / location.mlt
index 9ac74f9..f14f25c 100644 (file)
@@ -42,7 +42,7 @@ foreach item in Location.locationTree (NONE, NONE) do
 <%     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>
@@ -107,22 +107,8 @@ end %>
        <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>
 
@@ -145,7 +131,7 @@ foreach item in Location.locationTree (NONE, NONE) do
 <%     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>
@@ -197,6 +183,23 @@ end %>
 </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