Ignore:
Timestamp:
Feb 1, 2010, 10:09:46 AM (15 years ago)
Author:
gav
Message:

Add a create site link to asset tree taglib if there are no sites yet.
Add a create department link to section create and edit views.

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

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/sectionDetailed/create.gsp

    r273 r308  
    5959                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'department','errors')}">
    6060                                    <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${sectionInstance?.department?.id}" ></g:select>
     61                                    <p>
     62                                        <g:link controller="departmentDetailed" action="create">Add Department</g:link>
     63                                    </p>
    6164                                </td>
    6265                            </tr>
  • trunk/grails-app/views/sectionDetailed/edit.gsp

    r288 r308  
    7878                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'department','errors')}">
    7979                                    <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${sectionInstance?.department?.id}" ></g:select>
     80                                    <p>
     81                                        <g:link controller="departmentDetailed" action="create">Add Department</g:link>
     82                                    </p>
    8083                                </td>
    8184                            </tr>
Note: See TracChangeset for help on using the changeset viewer.