Ignore:
Timestamp:
Apr 4, 2009, 6:41:25 PM (15 years ago)
Author:
gav
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/grails-app/views/taskDetailed/show.gsp

    r96 r98  
    163163                            <th style="color:Black">Comment</th>
    164164                            <th style="color:Black">Date Done</th>
     165                            <th style="color:Black">Duration</th>
    165166                            <th style="color:Black">Entered By</th>
     167                            <th style="color:Black">Edit</th>
     168
    166169<!--                            <g:sortableColumn property="comment" title="Comment" />
    167170                       
     
    177180                           
    178181                                <td width="65%">${entry.comment}</td>
    179                            
    180182                                <td><g:formatDate date="${entry.dateDone}" format="EEE, dd MMM yyyy"/></td>
    181                        
     183                                <td>${entry.durationHour}:${entry.durationMinute}</td>
    182184                                <td>${entry.enteredBy}</td>
     185                                <td><g:link controller="entryDetailed" action="edit" id="${entry.id}">Edit</g:link></td>
     186
    183187                        </g:if>
    184188                       
     
    196200                            <th style="color:Black">Comment</th>
    197201                            <th style="color:Black">Date Done</th>
     202                            <th style="color:Black">Duration</th>
    198203                            <th style="color:Black">Entered By</th>
     204                            <th style="color:Black">Edit</th>
    199205<!--                            <g:sortableColumn property="commentW" title="Comment" />
    200206                       
     
    210216                           
    211217                                <td width="65%">${entry.comment}</td>
    212                            
    213218                                <td><g:formatDate date="${entry.dateDone}" format="EEE, dd MMM yyyy"/></td>
    214                        
     219                                <td>${entry.durationHour}:${entry.durationMinute}</td>
    215220                                <td>${entry.enteredBy}</td>
     221                                <td><g:link controller="entryDetailed" action="edit" id="${entry.id}">Edit</g:link></td>
    216222                        </g:if>
    217223                       
     
    225231
    226232            <div class="buttons">
    227                 <span class="menuButton" style="height:50px">
    228                     <g:link controller="entryDetailed" params="['task.id':taskInstance.id]" action="create">Add Entry</g:link>
    229                 </span>
     233                <g:form controller="entryDetailed">
     234                    <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" />
     235                    <span class="button">
     236                        <g:actionSubmit value="Add Entry" action="create"  class="edit"/>
     237                    </span>
     238                </g:form>
    230239            </div>
    231240
Note: See TracChangeset for help on using the changeset viewer.