source: trunk/src/grails-app/views/entryDetailed/list.gsp @ 98

Last change on this file since 98 was 98, checked in by gav, 15 years ago

Installed help-balloons plugin.
Adjust security config to allow javascript and help-balloons folders.
Add "Repeat password" to change password.
Detailed Entry views, including only allow user to edit their own entries.
Adjust Entry constraints.
Add comments to layouts/main.gsp.
Work on TaskDetailed? view to show entry durations and allow editing.
Entry duration formatting to CSS and increased base font size to 14px.

File size: 2.6 KB
Line 
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>Entry 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 Entry</g:link></span>
13        </div>
14        <div class="body">
15            <h1>Entry 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                                <th>Task</th>
27                           
28                                <g:sortableColumn property="comment" title="Comment" />
29                       
30                                <g:sortableColumn property="dateDone" title="Date Done" />
31                       
32                                <g:sortableColumn property="enteredBy" title="Entered By" />
33
34                            <th>Edit</th>
35
36                            <th>Show</th>
37
38                        </tr>
39                    </thead>
40                    <tbody>
41                    <g:each in="${entryInstanceList}" status="i" var="entryInstance">
42                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
43                       
44                            <td>${fieldValue(bean:entryInstance, field:'id')}</td>
45                       
46                            <td>${fieldValue(bean:entryInstance, field:'task')}</td>
47                       
48                            <td>${fieldValue(bean:entryInstance, field:'comment')}</td>
49                       
50                            <td>${fieldValue(bean:entryInstance, field:'dateDone')}</td>
51                       
52                            <td>${fieldValue(bean:entryInstance, field:'enteredBy')}</td>
53
54                            <td><g:link action="edit" id="${entryInstance.id}">Edit</g:link></td>
55
56                            <td><g:link action="show" id="${entryInstance.id}">Show</g:link></td>
57                       
58                        </tr>
59                    </g:each>
60                    </tbody>
61                </table>
62            </div>
63            <div class="paginateButtons">
64                <g:paginate total="${Entry.count()}" />
65            </div>
66        </div>
67    </body>
68</html>
Note: See TracBrowser for help on using the repository browser.