Ignore:
Timestamp:
Jul 19, 2010, 8:47:38 AM (14 years ago)
Author:
gav
Message:

Domain change: Add PurchasingGroup?.
Logic and views to suite.

File:
1 edited

Legend:

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

    r441 r633  
    3737                            <tr class="prop">
    3838                                <td valign="top" class="name">
     39                                    <label for="purchasingGroup">Purchasing Group:</label>
     40                                </td>
     41                                <td valign="top" class="value ${hasErrors(bean:costCodeInstance,field:'purchasingGroup','errors')}">
     42                                    <g:select optionKey="id"
     43                                                    from="${PurchasingGroup.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}"
     44                                                    name="purchasingGroup.id"
     45                                                    value="${costCodeInstance?.purchasingGroup?.id}" >
     46                                    </g:select>
     47                                    <p>
     48                                        <g:link controller="purchasingGroupDetailed" action="create">+Add Group</g:link>
     49                                    </p>
     50                                </td>
     51                            </tr>
     52                       
     53                            <tr class="prop">
     54                                <td valign="top" class="name">
    3955                                    <label for="description">Description:</label>
    4056                                </td>
Note: See TracChangeset for help on using the changeset viewer.