create.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:3k
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title><g:message code="system_menu.create" default="Create System_menu" /></title>
- </head>
- <body>
- <div class="nav">
- <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
- <span class="menuButton"><g:link class="list" action="list"><g:message code="system_menu.list" default="System_menu List" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="system_menu.create" default="Create System_menu" /></h1>
- <g:if test="${flash.message}">
- <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
- </g:if>
- <g:hasErrors bean="${system_menu}">
- <div class="errors">
- <g:renderErrors bean="${system_menu}" as="list" />
- </div>
- </g:hasErrors>
- <g:form action="save" method="post" >
- <div class="dialog">
- <table>
- <tbody>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="parent"><g:message code="system_menu.parent" default="Parent" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:system_menu,field:'parent','errors')}">
- <g:select optionKey="id" from="${System_menu.list()}" name="parent.id" value="${system_menu?.parent?.id}" noSelection="['null':'']"></g:select>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="description"><g:message code="system_menu.description" default="Description" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:system_menu,field:'description','errors')}">
- <input type="text" id="description" name="description" value="${fieldValue(bean:system_menu,field:'description')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="name"><g:message code="system_menu.name" default="Name" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:system_menu,field:'name','errors')}">
- <input type="text" id="name" name="name" value="${fieldValue(bean:system_menu,field:'name')}"/>
- </td>
- </tr>
-
- </tbody>
- </table>
- </div>
- <div class="buttons">
- <span class="button"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></span>
- </div>
- </g:form>
- </div>
- </body>
- </html>