Changeset 93 for trunk/src/grails-app/views/taskModification/edit.gsp
- Timestamp:
- Mar 29, 2009, 11:56:11 PM (16 years ago)
- Location:
- trunk/src/grails-app/views/taskModification
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grails-app/views/taskModification/edit.gsp
r66 r93 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Edit Modification</title>7 <title>Edit TaskModification</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> Modification List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New Modification</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">TaskModification List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New TaskModification</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Edit Modification</h1>16 <h1>Edit TaskModification</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> 19 19 </g:if> 20 <g:hasErrors bean="${ modificationInstance}">20 <g:hasErrors bean="${taskModificationInstance}"> 21 21 <div class="errors"> 22 <g:renderErrors bean="${ modificationInstance}" as="list" />22 <g:renderErrors bean="${taskModificationInstance}" as="list" /> 23 23 </div> 24 24 </g:hasErrors> 25 25 <g:form method="post" > 26 <input type="hidden" name="id" value="${modificationInstance?.id}" /> 26 <input type="hidden" name="id" value="${taskModificationInstance?.id}" /> 27 <input type="hidden" name="version" value="${taskModificationInstance?.version}" /> 27 28 <div class="dialog"> 28 29 <table> … … 33 34 <label for="person">Person:</label> 34 35 </td> 35 <td valign="top" class="value ${hasErrors(bean: modificationInstance,field:'person','errors')}">36 <g:select optionKey="id" from="${Person.list()}" name="person.id" value="${ modificationInstance?.person?.id}" ></g:select>36 <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'person','errors')}"> 37 <g:select optionKey="id" from="${Person.list()}" name="person.id" value="${taskModificationInstance?.person?.id}" ></g:select> 37 38 </td> 38 39 </tr> … … 40 41 <tr class="prop"> 41 42 <td valign="top" class="name"> 42 <label for=" modificationType">Modification Type:</label>43 <label for="taskModificationType">Task Modification Type:</label> 43 44 </td> 44 <td valign="top" class="value ${hasErrors(bean: modificationInstance,field:'modificationType','errors')}">45 <g:select optionKey="id" from="${ ModificationType.list()}" name="modificationType.id" value="${modificationInstance?.modificationType?.id}" ></g:select>45 <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'taskModificationType','errors')}"> 46 <g:select optionKey="id" from="${TaskModificationType.list()}" name="taskModificationType.id" value="${taskModificationInstance?.taskModificationType?.id}" ></g:select> 46 47 </td> 47 48 </tr> … … 51 52 <label for="task">Task:</label> 52 53 </td> 53 <td valign="top" class="value ${hasErrors(bean: modificationInstance,field:'task','errors')}">54 <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${ modificationInstance?.task?.id}" ></g:select>54 <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'task','errors')}"> 55 <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${taskModificationInstance?.task?.id}" ></g:select> 55 56 </td> 56 57 </tr> … … 60 61 <label for="date">Date:</label> 61 62 </td> 62 <td valign="top" class="value ${hasErrors(bean: modificationInstance,field:'date','errors')}">63 <g:datePicker name="date" value="${ modificationInstance?.date}" ></g:datePicker>63 <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'date','errors')}"> 64 <g:datePicker name="date" value="${taskModificationInstance?.date}" ></g:datePicker> 64 65 </td> 65 66 </tr> … … 69 70 <label for="comment">Comment:</label> 70 71 </td> 71 <td valign="top" class="value ${hasErrors(bean: modificationInstance,field:'comment','errors')}">72 <input type="text" id="comment" name="comment" value="${fieldValue(bean: modificationInstance,field:'comment')}"/>72 <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'comment','errors')}"> 73 <input type="text" id="comment" name="comment" value="${fieldValue(bean:taskModificationInstance,field:'comment')}"/> 73 74 </td> 74 75 </tr>
Note: See TracChangeset
for help on using the changeset viewer.