Changeset 272 for trunk/grails-app
- Timestamp:
- Jan 15, 2010, 12:03:58 PM (15 years ago)
- Location:
- trunk/grails-app/views/department
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/department/edit.gsp
r268 r272 74 74 <tr class="prop"> 75 75 <td valign="top" class="name"> 76 <label for="persons">Persons:</label> 77 </td> 78 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'persons','errors')}"> 79 80 <ul> 81 <g:each var="p" in="${departmentInstance?.persons?}"> 82 <li><g:link controller="person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li> 83 </g:each> 84 </ul> 85 <g:link controller="person" params="['department.id':departmentInstance?.id]" action="create">Add Person</g:link> 86 87 </td> 88 </tr> 89 90 <tr class="prop"> 91 <td valign="top" class="name"> 76 92 <label for="sections">Sections:</label> 77 93 </td> -
trunk/grails-app/views/department/show.gsp
r268 r272 64 64 65 65 <tr class="prop"> 66 <td valign="top" class="name">Persons:</td> 67 68 <td valign="top" style="text-align:left;" class="value"> 69 <ul> 70 <g:each var="p" in="${departmentInstance.persons}"> 71 <li><g:link controller="person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li> 72 </g:each> 73 </ul> 74 </td> 75 76 </tr> 77 78 <tr class="prop"> 66 79 <td valign="top" class="name">Sections:</td> 67 80
Note: See TracChangeset
for help on using the changeset viewer.