Changeset 25 for trunk/src/grails-app/views/entry/create.gsp
- Timestamp:
- Jan 20, 2009, 8:08:17 PM (16 years ago)
- File:
-
- 1 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>
Note: See TracChangeset
for help on using the changeset viewer.