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/entryDetailed/edit.gsp

    r92 r98  
    5252                                </td>
    5353                                <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'dateDone','errors')}">
    54                                     <g:datePicker name="dateDone" value="${entryInstance?.dateDone}" ></g:datePicker>
     54                                    <g:datePicker name="dateDone" value="${entryInstance?.dateDone}" precision="day"></g:datePicker>
    5555                                </td>
    5656                            </tr>
     
    5858                            <tr class="prop">
    5959                                <td valign="top" class="name">
    60                                     <label for="durationHour">Duration Hour:</label>
     60                                    <label for="durationHour">Duration:</label>
    6161                                </td>
    62                                 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'durationHour','errors')}">
    63                                     <input type="text" id="durationHour" name="durationHour" value="${fieldValue(bean:entryInstance,field:'durationHour')}" />
    64                                 </td>
    65                             </tr>
    66                        
    67                             <tr class="prop">
    68                                 <td valign="top" class="name">
    69                                     <label for="durationMinute">Duration Minute:</label>
    70                                 </td>
    71                                 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'durationMinute','errors')}">
    72                                     <input type="text" id="durationMinute" name="durationMinute" value="${fieldValue(bean:entryInstance,field:'durationMinute')}" />
    73                                 </td>
    74                             </tr>
     62
     63                                <td valign="top" class="value">
     64                                    <input class="duration ${hasErrors(bean:entryInstance,field:'durationHour','errors')}"
     65                                        type="text" id="durationHour" name="durationHour"
     66                                        value="${fieldValue(bean:entryInstance,field:'durationHour')}" />
     67                                    :
     68                                    <input class="duration ${hasErrors(bean:entryInstance,field:'durationMinute','errors')}"
     69                                        type="text" id="durationMinute" name="durationMinute"
     70                                        value="${fieldValue(bean:entryInstance,field:'durationMinute')}" />
     71                                    <g:helpBalloon code="entry.duration" />
     72                                </td>
     73                            </tr>
    7574                       
    7675                            <tr class="prop">
     
    7877                                    <label for="dateEntered">Date Entered:</label>
    7978                                </td>
    80                                 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'dateEntered','errors')}">
    81                                     <g:datePicker name="dateEntered" value="${entryInstance?.dateEntered}" ></g:datePicker>
     79                                <td valign="top" class="value">
     80                                    <g:formatDate date="${entryInstance?.dateEntered}" format="EEE, dd MMM yyyy @ HH:mm"/>
    8281                                </td>
    8382                            </tr>
     
    8786                                    <label for="enteredBy">Entered By:</label>
    8887                                </td>
    89                                 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'enteredBy','errors')}">
    90                                     <g:select optionKey="id" from="${Person.list()}" name="enteredBy.id" value="${entryInstance?.enteredBy?.id}" ></g:select>
     88                                <td valign="top" class="value">
     89                                    ${entryInstance?.enteredBy?.toString()}
    9190                                </td>
    9291                            </tr>
Note: See TracChangeset for help on using the changeset viewer.