Ignore:
Timestamp:
Feb 23, 2010, 2:07:15 PM (14 years ago)
Author:
gav
Message:

Add contacts to Person, Supplier, Manufacturer and Site.

File:
1 edited

Legend:

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

    r397 r402  
    6666                            <tr class="prop">
    6767                                <td valign="top" class="name">
     68                                    <label for="addresses">Contact:</label>
     69                                </td>
     70                                <td valign="top" class="value">
     71                                    <ul>
     72                                    <g:each var="i" in="${supplierInstance?.contacts}">
     73                                        <li><g:link controller="contactDetailed" action="show" id="${i.id}">
     74                                            ${i?.encodeAsHTML()}
     75                                        </g:link></li>
     76                                    </g:each>
     77                                    </ul>
     78                                    <g:link controller="contactDetailed" params="['supplier.id':supplierInstance?.id]" action="create">+Add Contact</g:link>
     79                                </td>
     80                            </tr>
     81
     82                            <tr class="prop">
     83                                <td valign="top" class="name">
    6884                                    <label for="addresses">Addresses:</label>
    6985                                </td>
     
    7692                                    </g:each>
    7793                                    </ul>
    78                                     <g:link controller="addressDetailed" params="['supplier.id':supplierInstance?.id]" action="create">Add Address</g:link>
     94                                    <g:link controller="addressDetailed" params="['supplier.id':supplierInstance?.id]" action="create">+Add Address</g:link>
    7995                                </td>
    8096                            </tr>
Note: See TracChangeset for help on using the changeset viewer.