<% import org.codehaus.groovy.grails.orm.hibernate.support.ClosureEventTriggeringInterceptor as Events %> <%=packageName%> Edit ${className}

Edit ${className}

\${flash.message}
>
<% excludedProps = ['version', 'id', Events.ONLOAD_EVENT, Events.BEFORE_DELETE_EVENT, Events.BEFORE_INSERT_EVENT, Events.BEFORE_UPDATE_EVENT] props = domainClass.properties.findAll { !excludedProps.contains(it.name) } Collections.sort(props, comparator.constructors[0].newInstance([domainClass] as Object[])) props.each { p -> cp = domainClass.constrainedProperties[p.name] display = (cp ? cp.display : true) if(display) { %> <% } } %>
${renderEditor(p)}