server/src/main/webapp/WEB-INF/templates/admin/objectsList.html
changeset 126 4479369ff9f1
parent 125 82fcd1c24cd8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/server/src/main/webapp/WEB-INF/templates/admin/objectsList.html	Tue Mar 26 08:27:58 2013 +0100
@@ -0,0 +1,75 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" >
+<head>
+<meta charset="utf-8">
+<title>${objectName} List</title>
+</head>
+<body>
+  <head>
+    <title>Renkan Admin</title>
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+      <meta charset="utf-8"/>
+      <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
+
+      <link rel="shortcut icon" href="favicon.ico"/>
+
+      <link href="../../../static/css/style.css" rel="stylesheet" th:href="@{/static/css/style.css}"/>
+      <link href="../../../static/css/index.css" rel="stylesheet" th:href="@{/static/css/index.css}"/>
+      
+      <script th:remove="all" type="text/javascript" src="../../../static/lib/jquery.min.js"></script>
+      <script th:remove="all" type="text/javascript" src="../../../static/js/thymol.js"></script> 
+  </head>
+  <body>
+    <div id="container">
+      <div id="wrapper">
+        <h1 th:text="#{renkanAdmin.renkan_admin}">Renkan administration</h1>
+        <div id="inner">
+            <div id="label" class="translate" th:text="#{renkanAdmin.obj_create}">Create an object</div> 
+            <form action="#" onsubmit="go2Title();return false;"> 
+                <input type="text" id="renkantitle" autofocus="autofocus" x-webkit-speech="x-webkit-speech"/> 
+                <button type="submit">OK</button>
+            </form>
+        </div>
+        <h2 th:text="#{renkanAdmin.object_list(${objectName})}" >List of objects</h2>        
+        <div th:include="fragment/paginationFragment :: paginationFragment" class="pagination-container">
+          <div>               
+            <a href="#?p.page=1">&lt;&lt;</a>                    
+            <a href="#?p.page=3">&lt;</a>
+            <span>...</span>
+            <a href="#?p.page=2">2</a>
+            <a href="#?p.page=3">3</a>
+            <span>4</span>
+            <a href="#?p.page=5">5</a>
+            <a href="#?p.page=6">6</a>
+            <span>...</span>
+            <a href="#?p.page=5">&gt;</a>
+            <a href="#?p.page=7">&gt;&gt;</a> 
+          </div>
+        </div>
+        
+        <table>
+          <thead>
+            <tr>
+              <th th:text="#{renkanAdmin.object_name}">Name</th>
+              <th th:text="#{renkanAdmin.object_edit}">Edit</th>
+              <th th:text="#{renkanAdmin.object_delete}">Delete</th>
+            </tr>
+          </thead>
+          <tbody>
+            <tr th:each="object: ${page.content}">
+              <th th:text="${object.title}">title</th>
+              <td><a href="#" th:href="@{'/s/'+${object.id}}" th:text="#{renkanAdmin.object_edit_link}">Edit</a></td>
+              <td><a href="#" th:href="@{'/s/'+${object.id}}" th:text="#{renkanAdmin.object_delete_link}">Delete</a></td>
+            </tr>
+          </tbody>
+        </table>            
+        
+        
+        
+      </div>
+      <div id="footer" th:include="fragment/pageFragment :: footerFragment">
+        <div id="version">© <span class="version-date">2013</span> <a href="http://www.iri.centrepompidou.fr" target="_blanck">IRI</a> - Version <span class="version-version">0.0</span></div>
+      </div>
+    </div>
+  </body>
+</html>
\ No newline at end of file