<% import grails.persistence.Event %> <% import org.codehaus.groovy.grails.plugins.PluginManagerHolder %> <%=packageName%> <g:message code="default.create.label" args="[entityName]" />

\${flash.message}
>
<% excludedProps = Event.allEvents.toList() << 'version' << 'id' << 'dateCreated' << 'lastUpdated' persistentPropNames = domainClass.persistentProperties*.name props = domainClass.properties.findAll { persistentPropNames.contains(it.name) && !excludedProps.contains(it.name) } Collections.sort(props, comparator.constructors[0].newInstance([domainClass] as Object[])) display = true boolean hasHibernate = PluginManagerHolder.pluginManager.hasGrailsPlugin('hibernate') props.each { p -> if (!Collection.class.isAssignableFrom(p.type)) { if (hasHibernate) { cp = domainClass.constrainedProperties[p.name] display = (cp ? cp.display : true) } if (display) { %> <% } } } %>
${renderEditor(p)}