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/create.gsp

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