server/src/main/webapp/WEB-INF/templates/admin/spacesList.html
author ymh <ymh.work@gmail.com>
Tue, 23 Apr 2013 16:54:18 +0200
branchuser_management
changeset 215 a282eebbc5e0
parent 150 5b62100b8562
child 222 6ac00231ee34
permissions -rw-r--r--
- add users to Renkan
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
127
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<!DOCTYPE html>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" >
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
  <head>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
    <title>Renkan Admin - Spaces</title>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
    <meta charset="utf-8"/>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
    <link rel="shortcut icon" href="../../../static/img/favicon.ico" th:href="@{/static/img/favicon.ico}"/>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
    <link href="../../../static/css/style.css" rel="stylesheet" th:href="@{/static/css/style.css}"/>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
    <link href="../../../static/css/index.css" rel="stylesheet" th:href="@{/static/css/index.css}"/>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
    
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
    <script th:remove="all" type="text/javascript" src="../../../static/lib/jquery.min.js"></script>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
    <script th:remove="all" type="text/javascript" src="../../../static/js/thymol.js"></script>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
  </head>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
  <body>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
    <div id="container">
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
      <div id="wrapper">
150
5b62100b8562 - replace simple http authentication by form auth
ymh <ymh.work@gmail.com>
parents: 141
diff changeset
    20
        <header id="header">
5b62100b8562 - replace simple http authentication by form auth
ymh <ymh.work@gmail.com>
parents: 141
diff changeset
    21
            <h1><a href="renkanIndex.html" th:href="@{/admin}" th:text="#{renkanAdmin.renkan_admin}" id="home-link">Renkan administration</a></h1>
5b62100b8562 - replace simple http authentication by form auth
ymh <ymh.work@gmail.com>
parents: 141
diff changeset
    22
            <div id="headerNav" th:include="fragment/pageFragment :: headerNavFragment"></div>
5b62100b8562 - replace simple http authentication by form auth
ymh <ymh.work@gmail.com>
parents: 141
diff changeset
    23
        </header>
127
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
        <h2 th:text="#{renkanAdmin.object_list(#{renkanAdmin.space_objects_name})}">List of objects</h2>        
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
        <div th:include="fragment/paginationFragment :: paginationFragment" class="pagination-container">
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
          <div>               
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
            <a href="#?p.page=1">&lt;&lt;</a>                    
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
            <a href="#?p.page=3">&lt;</a>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
            <span>...</span>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
            <a href="#?p.page=2">2</a>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
            <a href="#?p.page=3">3</a>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
            <span>4</span>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
            <a href="#?p.page=5">5</a>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
            <a href="#?p.page=6">6</a>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
            <span>...</span>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
            <a href="#?p.page=5">&gt;</a>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
            <a href="#?p.page=7">&gt;&gt;</a> 
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
          </div>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
        </div>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40
        <div id="objects-content">
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
          <ul class="object-tools">
215
a282eebbc5e0 - add users to Renkan
ymh <ymh.work@gmail.com>
parents: 150
diff changeset
    42
            <li><a href="spaceAdd.html" th:href="@{/admin/users/edit/}" th:text="#{renkanAdmin.user_add}">Add user</a></li>
127
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    43
          </ul>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    44
          <table>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    45
            <thead>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    46
              <tr>
215
a282eebbc5e0 - add users to Renkan
ymh <ymh.work@gmail.com>
parents: 150
diff changeset
    47
                <th th:text="#{renkanAdmin.object_name}" class="object-table-title">Name</th>
a282eebbc5e0 - add users to Renkan
ymh <ymh.work@gmail.com>
parents: 150
diff changeset
    48
                <th th:text="#{renkanAdmin.object_created}" class="object-table-created">Created</th>
a282eebbc5e0 - add users to Renkan
ymh <ymh.work@gmail.com>
parents: 150
diff changeset
    49
                <th th:text="#{renkanAdmin.space_proj_count}" class="object-proj-count">Project count</th>
a282eebbc5e0 - add users to Renkan
ymh <ymh.work@gmail.com>
parents: 150
diff changeset
    50
                <th th:text="#{renkanIndex.space_url}" class="object-url">url</th>
a282eebbc5e0 - add users to Renkan
ymh <ymh.work@gmail.com>
parents: 150
diff changeset
    51
                <th th:text="#{renkanAdmin.object_edit}" class="object-table-actions">Edit</th>
a282eebbc5e0 - add users to Renkan
ymh <ymh.work@gmail.com>
parents: 150
diff changeset
    52
                <th th:text="#{renkanAdmin.object_delete}" class="object-table-actions">Delete</th>
127
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
              </tr>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    54
            </thead>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    55
            <tbody>
129
01c862ada33c Add delete for spaces, check that there is no linked projects
ymh <ymh.work@gmail.com>
parents: 128
diff changeset
    56
              <tr th:each="object: ${page.content}" th:with="spaceProjCount=${#maps.containsKey(projectsCount, object.id)}? ${projectsCount[object.id]} : 0">
215
a282eebbc5e0 - add users to Renkan
ymh <ymh.work@gmail.com>
parents: 150
diff changeset
    57
                <td th:text="${object.title}" class="object-table-title" >title</td>
a282eebbc5e0 - add users to Renkan
ymh <ymh.work@gmail.com>
parents: 150
diff changeset
    58
                <td th:text="${object.created}?${#dates.format(object.created, #messages.msg('date.format'))}:'n/a'" class="object-table-created">created</td>
a282eebbc5e0 - add users to Renkan
ymh <ymh.work@gmail.com>
parents: 150
diff changeset
    59
                <td th:text="${spaceProjCount}" class="object-proj-count">nb. proj</td>
a282eebbc5e0 - add users to Renkan
ymh <ymh.work@gmail.com>
parents: 150
diff changeset
    60
                <td class="object-url"><a href="../renkanIndex.html" th:href="@{'/s/'+${object.id}}" th:text="#{renkanIndex.space_url}" >url</a></td>
a282eebbc5e0 - add users to Renkan
ymh <ymh.work@gmail.com>
parents: 150
diff changeset
    61
                <td><a href="spaceEdit.html" th:href="@{'/admin/spaces/edit/'+${object.id}}" th:text="#{renkanAdmin.object_edit_link}" class="object-table-actions">Edit</a></td>
a282eebbc5e0 - add users to Renkan
ymh <ymh.work@gmail.com>
parents: 150
diff changeset
    62
                <td><a href="#" th:if="${spaceProjCount==0}" th:href="@{'/admin/spaces/delete/'+${object.id}}" th:text="#{renkanAdmin.object_delete_link}" class="object-table-actions">Delete</a><span th:if="${spaceProjCount>0}" class="object-table-actions object-table-actions-disabled" th:text="#{renkanAdmin.object_delete_link}">Delete</span></td>
127
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    63
              </tr>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    64
            </tbody>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    65
          </table>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    66
        </div>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    67
        
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    68
      </div>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    69
      <footer id="footer" th:substituteby="fragment/pageFragment::footerFragment">
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    70
        <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>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    71
      </footer>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    72
    </div>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    73
  </body>
906fed13c1e1 space admin edit.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    74
</html>