Changeset 272


Ignore:
Timestamp:
Jan 15, 2010, 12:03:58 PM (14 years ago)
Author:
gav
Message:

Regenerate department views.

Location:
trunk/grails-app/views/department
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/department/edit.gsp

    r268 r272  
    7474                            <tr class="prop">
    7575                                <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">
    7692                                    <label for="sections">Sections:</label>
    7793                                </td>
  • trunk/grails-app/views/department/show.gsp

    r268 r272  
    6464                   
    6565                        <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">
    6679                            <td valign="top" class="name">Sections:</td>
    6780                           
Note: See TracChangeset for help on using the changeset viewer.