Changeset 39 for trunk/src/grails-app/views/entry/edit.gsp
- Timestamp:
- Jan 27, 2009, 11:02:59 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grails-app/views/entry/edit.gsp
r25 r39 31 31 <tr class="prop"> 32 32 <td valign="top" class="name"> 33 <label for="task">Task:</label> 34 </td> 35 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'task','errors')}"> 36 <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${entryInstance?.task?.id}" ></g:select> 37 </td> 38 </tr> 39 40 <tr class="prop"> 41 <td valign="top" class="name"> 33 42 <label for="comments">Comments:</label> 34 43 </td> … … 49 58 <tr class="prop"> 50 59 <td valign="top" class="name"> 51 <label for="duration ">Duration:</label>60 <label for="durationHours">Duration Hours:</label> 52 61 </td> 53 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'duration','errors')}"> 54 <input type="text" id="duration" name="duration" value="${fieldValue(bean:entryInstance,field:'duration')}" /> 62 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'durationHours','errors')}"> 63 <input type="text" id="durationHours" name="durationHours" value="${fieldValue(bean:entryInstance,field:'durationHours')}" /> 64 </td> 65 </tr> 66 67 <tr class="prop"> 68 <td valign="top" class="name"> 69 <label for="durationMinutes">Duration Minutes:</label> 70 </td> 71 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'durationMinutes','errors')}"> 72 <input type="text" id="durationMinutes" name="durationMinutes" value="${fieldValue(bean:entryInstance,field:'durationMinutes')}" /> 55 73 </td> 56 74 </tr> … … 74 92 </tr> 75 93 76 <tr class="prop">77 <td valign="top" class="name">78 <label for="persons">Persons:</label>79 </td>80 <td valign="top" class="value ${hasErrors(bean:entryInstance,field:'persons','errors')}">81 82 <ul>83 <g:each var="p" in="${entryInstance?.persons?}">84 <li><g:link controller="person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>85 </g:each>86 </ul>87 <g:link controller="person" params="['entry.id':entryInstance?.id]" action="create">Add Person</g:link>88 89 </td>90 </tr>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 101 94 </tbody> 102 95 </table>
Note: See TracChangeset
for help on using the changeset viewer.