edit.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:5k
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title><g:message code="system_menu.edit" default="Edit 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>
- <span class="menuButton"><g:link class="create" action="create"><g:message code="system_menu.new" default="New System_menu" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="system_menu.edit" default="Edit 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 method="post" >
- <input type="hidden" name="id" value="${system_menu?.id}" />
- <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="childrens"><g:message code="system_menu.childrens" default="Childrens" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:system_menu,field:'childrens','errors')}">
-
- <ul>
- <g:each var="c" in="${system_menu?.childrens?}">
- <li><g:link controller="system_menu" action="show" id="${c.id}">${c}</g:link></li>
- </g:each>
- </ul>
- <g:link controller="system_menu" params="["system_menu.id":system_menu?.id]" action="create">Add System_menu</g:link>
- </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"><g:actionSubmit class="save" action="Update" value="${message(code:'update', 'default':'Update')}" /></span>
- <span class="button"><g:actionSubmit class="delete" onclick="return confirm('${message(code:'delete.confirm', 'default':'Are you sure?')}');" action="Delete" value="${message(code:'delete', 'default':'Delete')}" /></span>
- </div>
- </g:form>
- </div>
- </body>
- </html>