Changeset 633 for trunk/grails-app/views/person
- Timestamp:
- Jul 19, 2010, 8:47:38 AM (14 years ago)
- Location:
- trunk/grails-app/views/person
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/person/create.gsp
r506 r633 105 105 106 106 <tr class="prop"> 107 <td valign="top" class="name"> 108 <label for="purchasingGroups">Purchasing Groups:</label> 109 </td> 110 <td valign="top" class="value ${hasErrors(bean:person,field:'purchasingGroups','errors')}"> 111 <g:helpBalloon class="helpballoon" code="person.purchasingGroups" /> 112 <custom:checkBoxList name="purchasingGroups" 113 from="${PurchasingGroup.findAllByIsActive(true)}" 114 value="${person?.purchasingGroups?.collect{it.id}}" 115 optionKey="id" 116 sortBy="name" 117 linkController="purchasingGroupDetailed" 118 linkAction="show"/> 119 <g:link controller="purchasingGroupDetailed" action="create">+Add Group</g:link> 120 </td> 121 </tr> 122 123 <tr class="prop"> 107 124 <td valign="top" class="name" align="left"> 108 125 Authorities: -
trunk/grails-app/views/person/edit.gsp
r506 r633 144 144 145 145 <tr class="prop"> 146 <td valign="top" class="name"> 147 <label for="purchasingGroups">Purchasing Groups:</label> 148 </td> 149 <td valign="top" class="value ${hasErrors(bean:person,field:'purchasingGroups','errors')}"> 150 <g:helpBalloon class="helpballoon" code="person.purchasingGroups" /> 151 <custom:checkBoxList name="purchasingGroups" 152 from="${PurchasingGroup.findAllByIsActive(true)}" 153 value="${person?.purchasingGroups?.collect{it.id}}" 154 optionKey="id" 155 sortBy="name" 156 linkController="purchasingGroupDetailed" 157 linkAction="show"/> 158 <g:link controller="purchasingGroupDetailed" action="create">+Add Group</g:link> 159 </td> 160 </tr> 161 162 <tr class="prop"> 146 163 <td valign="top" class="name" align="left"> 147 164 Authorities: -
trunk/grails-app/views/person/show.gsp
r402 r633 89 89 <td valign="top" class="value"> 90 90 <ul> 91 <g:each in="${person.personGroups}" var='group'> 92 <li>${group}</li> 91 <g:each var='group' in="${ person.personGroups.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> 92 <li> 93 <g:link controller="personGroupDetailed" 94 action="show" 95 id="${group.id}"> 96 ${group.encodeAsHTML()} 97 </g:link> 98 </li> 99 </g:each> 100 </ul> 101 </td> 102 </tr> 103 104 <tr class="prop"> 105 <td valign="top" class="name">Purchasing Groups:</td> 106 <td valign="top" class="value"> 107 <ul> 108 <g:each var='a' in="${ person.purchasingGroups.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> 109 <li> 110 <g:link controller="purchasingGroupDetailed" 111 action="show" 112 id="${a.id}"> 113 ${a.encodeAsHTML()} 114 </g:link> 115 </li> 93 116 </g:each> 94 117 </ul>
Note: See TracChangeset
for help on using the changeset viewer.