Changeset 25 for trunk/src/grails-app/views/entry
- Timestamp:
- Jan 20, 2009, 8:08:17 PM (16 years ago)
- Location:
- trunk/src/grails-app/views/entry
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grails-app/views/entry/create.gsp
r21 r25 29 29 <tr class="prop"> 30 30 <td valign="top" class="name"> 31 <label for="comments">Comments:</label> 32 </td> 33 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'comments','errors')}"> 34 <textarea rows="5" cols="40" name="comments">${fieldValue(bean:entryInstance, field:'comments')}</textarea> 35 </td> 36 </tr> 37 38 <tr class="prop"> 39 <td valign="top" class="name"> 40 <label for="date">Date:</label> 41 </td> 42 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'date','errors')}"> 43 <g:datePicker name="date" value="${entryInstance?.date}" ></g:datePicker> 44 </td> 45 </tr> 46 47 <tr class="prop"> 48 <td valign="top" class="name"> 49 <label for="duration">Duration:</label> 50 </td> 51 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'duration','errors')}"> 52 <input type="text" id="duration" name="duration" value="${fieldValue(bean:entryInstance,field:'duration')}" /> 53 </td> 54 </tr> 55 56 <tr class="prop"> 57 <td valign="top" class="name"> 58 <label for="entryType">Entry Type:</label> 59 </td> 60 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'entryType','errors')}"> 61 <g:select optionKey="id" from="${EntryType.list()}" name="entryType.id" value="${entryInstance?.entryType?.id}" ></g:select> 62 </td> 63 </tr> 64 65 <tr class="prop"> 66 <td valign="top" class="name"> 31 67 <label for="person">Person:</label> 32 68 </td> … … 45 81 </tr> 46 82 47 <tr class="prop">48 <td valign="top" class="name">49 <label for="dateTime">Date Time:</label>50 </td>51 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'dateTime','errors')}">52 <g:datePicker name="dateTime" value="${entryInstance?.dateTime}" noSelection="['':'']"></g:datePicker>53 </td>54 </tr>55 56 <tr class="prop">57 <td valign="top" class="name">58 <label for="duration">Duration:</label>59 </td>60 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'duration','errors')}">61 <input type="text" id="duration" name="duration" value="${fieldValue(bean:entryInstance,field:'duration')}" />62 </td>63 </tr>64 65 <tr class="prop">66 <td valign="top" class="name">67 <label for="comments">Comments:</label>68 </td>69 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'comments','errors')}">70 <input type="text" id="comments" name="comments" value="${fieldValue(bean:entryInstance,field:'comments')}"/>71 </td>72 </tr>73 74 83 </tbody> 75 84 </table> -
trunk/src/grails-app/views/entry/edit.gsp
r21 r25 31 31 <tr class="prop"> 32 32 <td valign="top" class="name"> 33 <label for=" person">Person:</label>33 <label for="comments">Comments:</label> 34 34 </td> 35 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:' person','errors')}">36 < g:select optionKey="id" from="${Person.list()}" name="person.id" value="${entryInstance?.person?.id}" ></g:select>35 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'comments','errors')}"> 36 <textarea rows="5" cols="40" name="comments">${fieldValue(bean:entryInstance, field:'comments')}</textarea> 37 37 </td> 38 38 </tr> … … 40 40 <tr class="prop"> 41 41 <td valign="top" class="name"> 42 <label for=" task">Task:</label>42 <label for="date">Date:</label> 43 43 </td> 44 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'task','errors')}"> 45 <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${entryInstance?.task?.id}" ></g:select> 46 </td> 47 </tr> 48 49 <tr class="prop"> 50 <td valign="top" class="name"> 51 <label for="dateTime">Date Time:</label> 52 </td> 53 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'dateTime','errors')}"> 54 <g:datePicker name="dateTime" value="${entryInstance?.dateTime}" noSelection="['':'']"></g:datePicker> 44 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'date','errors')}"> 45 <g:datePicker name="date" value="${entryInstance?.date}" ></g:datePicker> 55 46 </td> 56 47 </tr> … … 67 58 <tr class="prop"> 68 59 <td valign="top" class="name"> 69 <label for=" comments">Comments:</label>60 <label for="entryType">Entry Type:</label> 70 61 </td> 71 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'comments','errors')}"> 72 <input type="text" id="comments" name="comments" value="${fieldValue(bean:entryInstance,field:'comments')}"/> 62 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'entryType','errors')}"> 63 <g:select optionKey="id" from="${EntryType.list()}" name="entryType.id" value="${entryInstance?.entryType?.id}" ></g:select> 64 </td> 65 </tr> 66 67 <tr class="prop"> 68 <td valign="top" class="name"> 69 <label for="person">Person:</label> 70 </td> 71 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'person','errors')}"> 72 <g:select optionKey="id" from="${Person.list()}" name="person.id" value="${entryInstance?.person?.id}" ></g:select> 73 73 </td> 74 74 </tr> … … 90 90 </tr> 91 91 92 <tr class="prop"> 93 <td valign="top" class="name"> 94 <label for="task">Task:</label> 95 </td> 96 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'task','errors')}"> 97 <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${entryInstance?.task?.id}" ></g:select> 98 </td> 99 </tr> 100 92 101 </tbody> 93 102 </table> -
trunk/src/grails-app/views/entry/list.gsp
r21 r25 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <th>Person</th> 27 28 <th>Task</th> 29 30 <g:sortableColumn property="dateTime" title="Date Time" /> 26 <g:sortableColumn property="comments" title="Comments" /> 27 28 <g:sortableColumn property="date" title="Date" /> 31 29 32 30 <g:sortableColumn property="duration" title="Duration" /> 33 31 34 <g:sortableColumn property="comments" title="Comments" /> 35 32 <th>Entry Type</th> 33 34 <th>Person</th> 35 36 36 </tr> 37 37 </thead> … … 42 42 <td><g:link action="show" id="${entryInstance.id}">${fieldValue(bean:entryInstance, field:'id')}</g:link></td> 43 43 44 <td>${fieldValue(bean:entryInstance, field:' person')}</td>44 <td>${fieldValue(bean:entryInstance, field:'comments')}</td> 45 45 46 <td>${fieldValue(bean:entryInstance, field:'task')}</td> 47 48 <td>${fieldValue(bean:entryInstance, field:'dateTime')}</td> 46 <td>${fieldValue(bean:entryInstance, field:'date')}</td> 49 47 50 48 <td>${fieldValue(bean:entryInstance, field:'duration')}</td> 51 49 52 <td>${fieldValue(bean:entryInstance, field:'comments')}</td> 50 <td>${fieldValue(bean:entryInstance, field:'entryType')}</td> 51 52 <td>${fieldValue(bean:entryInstance, field:'person')}</td> 53 53 54 54 </tr> -
trunk/src/grails-app/views/entry/show.gsp
r21 r25 31 31 32 32 <tr class="prop"> 33 <td valign="top" class="name"> Person:</td>33 <td valign="top" class="name">Comments:</td> 34 34 35 <td valign="top" class="value"> <g:link controller="person" action="show" id="${entryInstance?.person?.id}">${entryInstance?.person?.encodeAsHTML()}</g:link></td>35 <td valign="top" class="value">${fieldValue(bean:entryInstance, field:'comments')}</td> 36 36 37 37 </tr> 38 38 39 39 <tr class="prop"> 40 <td valign="top" class="name"> Task:</td>40 <td valign="top" class="name">Date:</td> 41 41 42 <td valign="top" class="value"><g:link controller="task" action="show" id="${entryInstance?.task?.id}">${entryInstance?.task?.encodeAsHTML()}</g:link></td> 43 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name">Date Time:</td> 48 49 <td valign="top" class="value">${fieldValue(bean:entryInstance, field:'dateTime')}</td> 42 <td valign="top" class="value">${fieldValue(bean:entryInstance, field:'date')}</td> 50 43 51 44 </tr> … … 59 52 60 53 <tr class="prop"> 61 <td valign="top" class="name"> Comments:</td>54 <td valign="top" class="name">Entry Type:</td> 62 55 63 <td valign="top" class="value">${fieldValue(bean:entryInstance, field:'comments')}</td> 56 <td valign="top" class="value"><g:link controller="entryType" action="show" id="${entryInstance?.entryType?.id}">${entryInstance?.entryType?.encodeAsHTML()}</g:link></td> 57 58 </tr> 59 60 <tr class="prop"> 61 <td valign="top" class="name">Person:</td> 62 63 <td valign="top" class="value"><g:link controller="person" action="show" id="${entryInstance?.person?.id}">${entryInstance?.person?.encodeAsHTML()}</g:link></td> 64 64 65 65 </tr> … … 69 69 70 70 <td valign="top" class="value">${fieldValue(bean:entryInstance, field:'persons')}</td> 71 72 </tr> 73 74 <tr class="prop"> 75 <td valign="top" class="name">Task:</td> 76 77 <td valign="top" class="value"><g:link controller="task" action="show" id="${entryInstance?.task?.id}">${entryInstance?.task?.encodeAsHTML()}</g:link></td> 71 78 72 79 </tr>
Note: See TracChangeset
for help on using the changeset viewer.