|
215
|
1 |
<!DOCTYPE html> |
|
|
2 |
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" > |
|
|
3 |
<head> |
|
|
4 |
<title>Renkan Admin - Users</title> |
|
|
5 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
|
6 |
<meta charset="utf-8"/> |
|
|
7 |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/> |
|
|
8 |
|
|
|
9 |
<link rel="shortcut icon" href="../../../static/img/favicon.ico" th:href="@{/static/img/favicon.ico}"/> |
|
|
10 |
|
|
|
11 |
<link href="../../../static/css/style.css" rel="stylesheet" th:href="@{/static/css/style.css}"/> |
|
|
12 |
<link href="../../../static/css/index.css" rel="stylesheet" th:href="@{/static/css/index.css}"/> |
|
|
13 |
|
|
|
14 |
<script th:remove="all" type="text/javascript" src="../../../static/lib/jquery.min.js"></script> |
|
|
15 |
<script th:remove="all" type="text/javascript" src="../../../static/js/thymol.js"></script> |
|
|
16 |
</head> |
|
|
17 |
<body> |
|
|
18 |
<div id="container"> |
|
|
19 |
<div id="wrapper"> |
|
|
20 |
<header id="header"> |
|
|
21 |
<h1><a href="renkanIndex.html" th:href="@{/admin}" th:text="#{renkanAdmin.renkan_admin}" id="home-link">Renkan administration</a></h1> |
|
|
22 |
<div id="headerNav" th:include="fragment/pageFragment :: headerNavFragment"></div> |
|
|
23 |
</header> |
|
|
24 |
<h2 th:text="#{renkanAdmin.object_list(#{renkanAdmin.user_objects_name})}">List of objects</h2> |
|
|
25 |
<div th:include="fragment/paginationFragment :: paginationFragment" class="pagination-container"> |
|
|
26 |
<div> |
|
|
27 |
<a href="#?p.page=1"><<</a> |
|
|
28 |
<a href="#?p.page=3"><</a> |
|
|
29 |
<span>...</span> |
|
|
30 |
<a href="#?p.page=2">2</a> |
|
|
31 |
<a href="#?p.page=3">3</a> |
|
|
32 |
<span>4</span> |
|
|
33 |
<a href="#?p.page=5">5</a> |
|
|
34 |
<a href="#?p.page=6">6</a> |
|
|
35 |
<span>...</span> |
|
|
36 |
<a href="#?p.page=5">></a> |
|
|
37 |
<a href="#?p.page=7">>></a> |
|
|
38 |
</div> |
|
|
39 |
</div> |
|
|
40 |
<div id="objects-content"> |
|
|
41 |
<ul class="object-tools"> |
|
|
42 |
<li><a href="userEdit.html" th:href="@{/admin/spaces/edit/}" th:text="#{renkanAdmin.space_add}">Add space</a></li> |
|
|
43 |
</ul> |
|
|
44 |
<table> |
|
|
45 |
<thead> |
|
|
46 |
<tr> |
|
|
47 |
<th th:text="#{renkanAdmin.object_name}" class="object-table-title">Username</th> |
|
|
48 |
<th th:text="#{renkanAdmin.object_proj_count}" class="object-proj-count">Project count</th> |
|
|
49 |
<th th:text="#{renkanAdmin.object_edit}" class="object-table-actions">Edit</th> |
|
|
50 |
<th th:text="#{renkanAdmin.object_delete}" class="object-table-actions">Delete</th> |
|
|
51 |
</tr> |
|
|
52 |
</thead> |
|
|
53 |
<tbody> |
|
|
54 |
<tr th:each="object: ${page.content}" th:with="userProjCount=${#maps.containsKey(projectsCount, object.id)}? ${projectsCount[object.id]} : 0"> |
|
|
55 |
<td th:text="${object.title}" class="object-table-title" >username</td> |
|
|
56 |
<td th:text="${userProjCount}" class="object-proj-count">nb. proj</td> |
|
|
57 |
<td><a href="userEdit.html" th:href="@{'/admin/users/edit/'+${object.id}}" th:text="#{renkanAdmin.object_edit_link}" class="object-table-actions">Edit</a></td> |
|
|
58 |
<td><a href="#" th:if="${userProjCount==0}" th:href="@{'/admin/users/delete/'+${object.id}}" th:text="#{renkanAdmin.object_delete_link}" class="users-table-actions">Delete</a><span th:if="${userProjCount>0}" class="object-table-actions object-table-actions-disabled" th:text="#{renkanAdmin.object_delete_link}">Delete</span></td> |
|
|
59 |
</tr> |
|
|
60 |
</tbody> |
|
|
61 |
</table> |
|
|
62 |
</div> |
|
|
63 |
|
|
|
64 |
</div> |
|
|
65 |
<footer id="footer" th:substituteby="fragment/pageFragment::footerFragment"> |
|
|
66 |
<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> |
|
|
67 |
</footer> |
|
|
68 |
</div> |
|
|
69 |
</body> |
|
|
70 |
</html> |