1 | |
---|
2 | |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
6 | <meta name="layout" content="main" /> |
---|
7 | <title>Task List</title> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div class="nav"> |
---|
11 | <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> |
---|
12 | <span class="menuButton"><g:link class="create" action="create">New Task</g:link></span> |
---|
13 | </div> |
---|
14 | <div class="body"> |
---|
15 | <h1>Task List</h1> |
---|
16 | <g:if test="${flash.message}"> |
---|
17 | <div class="message">${flash.message}</div> |
---|
18 | </g:if> |
---|
19 | <div class="list"> |
---|
20 | <table> |
---|
21 | <thead> |
---|
22 | <tr> |
---|
23 | |
---|
24 | <g:sortableColumn property="id" title="Id" /> |
---|
25 | |
---|
26 | <g:sortableColumn property="targetStartDate" title="Target Start Date" /> |
---|
27 | |
---|
28 | <g:sortableColumn property="description" title="Description" /> |
---|
29 | |
---|
30 | <th>Lead Person</th> |
---|
31 | |
---|
32 | <th>Task Priority</th> |
---|
33 | |
---|
34 | <th>Task Status</th> |
---|
35 | |
---|
36 | <th></th> |
---|
37 | |
---|
38 | </tr> |
---|
39 | </thead> |
---|
40 | <tbody> |
---|
41 | <g:each in="${taskInstanceList}" status="i" var="taskInstance"> |
---|
42 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
43 | |
---|
44 | <td>${fieldValue(bean:taskInstance, field:'id')}</td> |
---|
45 | |
---|
46 | <td><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd MMM yyyy"/></td> |
---|
47 | |
---|
48 | <td>${fieldValue(bean:taskInstance, field:'description')}</td> |
---|
49 | |
---|
50 | <td>${fieldValue(bean:taskInstance, field:'leadPerson')}</td> |
---|
51 | |
---|
52 | <td>${fieldValue(bean:taskInstance, field:'taskPriority')}</td> |
---|
53 | |
---|
54 | <td>${fieldValue(bean:taskInstance, field:'taskStatus')}</td> |
---|
55 | |
---|
56 | <td> |
---|
57 | <g:link action="show" id="${taskInstance.id}"> |
---|
58 | <img src="${createLinkTo(dir:'images/skin',file:'database_table.png')}" alt="Show" /> |
---|
59 | </g:link> |
---|
60 | </td> |
---|
61 | |
---|
62 | </tr> |
---|
63 | </g:each> |
---|
64 | </tbody> |
---|
65 | </table> |
---|
66 | </div> |
---|
67 | <div class="paginateButtons"> |
---|
68 | <g:paginate total="${Task.count()}" /> |
---|
69 | </div> |
---|
70 | </div> |
---|
71 | </body> |
---|
72 | </html> |
---|