server/src/main/webapp/WEB-INF/templates/fragment/spaceForm.html
changeset 123 daa99448319d
child 127 906fed13c1e1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/server/src/main/webapp/WEB-INF/templates/fragment/spaceForm.html	Mon Mar 25 19:27:26 2013 +0100
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:th="http://www.thymeleaf.org">
+<head>
+<meta charset="utf-8">
+<title>Space form</title>
+</head>
+<body>
+<div id="Fragment" th:fragment="spaceFormFragment" >
+  <form action="#" th:object="${space}" th:action="@{/}" method="post">
+       <fieldset>
+         <input type="hidden" th:field="*{id}" />
+         <div>
+           <label for="title" th:text="#{renkan.form.title}">Title: </label> 
+           <input type="text" th:field="*{title}" /> 
+         </div> 
+         <div>
+           <label for="uri" th:text="#{renkan.form.uri}">Uri: </label> 
+           <input type="text" th:field="*{uri}" /> 
+         </div> 
+         <div>
+           <label for="description" th:text="#{renkan.form.description}">Description: </label> 
+           <textarea th:field="*{description}"></textarea> 
+         </div> 
+         <div>
+           <label for="color" th:text="#{renkan.form.color}">Color: </label> 
+           <input type="text" th:field="*{color}" /> 
+         </div>
+         <div>
+           <label for="binConfig" th:text="#{renkan.form.space.bin_config}">Bin config: </label> 
+           <textarea th:field="*{binConfig}"></textarea> 
+         </div> 
+
+       <div class="submit"> 
+         <button type="submit" name="save" th:text="#{renkan.form.space.submit}">Save</button> 
+       </div> 
+      
+     </fieldset>  
+  </form>
+</div>
+</body>
+</html>
\ No newline at end of file