Changeset 402 for trunk/grails-app/views/person
- Timestamp:
- Feb 23, 2010, 2:07:15 PM (15 years ago)
- Location:
- trunk/grails-app/views/person
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/person/edit.gsp
r399 r402 85 85 <tr class="prop"> 86 86 <td valign="top" class="name"> 87 <label for="addresses">Contact:</label> 88 </td> 89 <td valign="top" class="value"> 90 <ul> 91 <g:each var="i" in="${person?.contacts}"> 92 <li><g:link controller="contactDetailed" action="show" id="${i.id}"> 93 ${i?.encodeAsHTML()} 94 </g:link></li> 95 </g:each> 96 </ul> 97 <g:link controller="contactDetailed" params="['person.id':person?.id]" action="create">+Add Contact</g:link> 98 </td> 99 </tr> 100 101 <tr class="prop"> 102 <td valign="top" class="name"> 87 103 <label for="addresses">Addresses:</label> 88 104 </td> 89 105 <td valign="top" class="value"> 90 106 <ul> 91 <g:each var="i" in="${person?.addresses ?}">107 <g:each var="i" in="${person?.addresses}"> 92 108 <li><g:link controller="addressDetailed" action="show" id="${i.id}"> 93 109 ${i?.encodeAsHTML()} … … 95 111 </g:each> 96 112 </ul> 97 <g:link controller="addressDetailed" params="['person.id':person?.id]" action="create"> Add Address</g:link>113 <g:link controller="addressDetailed" params="['person.id':person?.id]" action="create">+Add Address</g:link> 98 114 </td> 99 115 </tr> -
trunk/grails-app/views/person/show.gsp
r399 r402 47 47 <td valign="top" class="name">Description:</td> 48 48 <td valign="top" class="value">${person.description?.encodeAsHTML()}</td> 49 </tr> 50 51 <tr class="prop"> 52 <td valign="top" class="name">Contact:</td> 53 54 <td valign="top" class="value"> 55 <ul> 56 <g:each var="i" in="${person.contacts}"> 57 <li><g:link controller="contactDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 58 </g:each> 59 </ul> 60 </td> 61 49 62 </tr> 50 63
Note: See TracChangeset
for help on using the changeset viewer.