edit.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:5k
源码类别:

PlugIns编程

开发平台:

Java

  1. <html>
  2.     <head>
  3.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  4.         <meta name="layout" content="main" />
  5.         <title><g:message code="system_menu.edit" default="Edit System_menu" /></title>
  6.     </head>
  7.     <body>
  8.         <div class="nav">
  9.             <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
  10.             <span class="menuButton"><g:link class="list" action="list"><g:message code="system_menu.list" default="System_menu List" /></g:link></span>
  11.             <span class="menuButton"><g:link class="create" action="create"><g:message code="system_menu.new" default="New System_menu" /></g:link></span>
  12.         </div>
  13.         <div class="body">
  14.             <h1><g:message code="system_menu.edit" default="Edit System_menu" /></h1>
  15.             <g:if test="${flash.message}">
  16.             <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
  17.             </g:if>
  18.             <g:hasErrors bean="${system_menu}">
  19.             <div class="errors">
  20.                 <g:renderErrors bean="${system_menu}" as="list" />
  21.             </div>
  22.             </g:hasErrors>
  23.             <g:form method="post" >
  24.                 <input type="hidden" name="id" value="${system_menu?.id}" />
  25.                 <div class="dialog">
  26.                     <table>
  27.                         <tbody>
  28.                         
  29.                             <tr class="prop">
  30.                                 <td valign="top" class="name">
  31.                                     <label for="parent"><g:message code="system_menu.parent" default="Parent" />:</label>
  32.                                 </td>
  33.                                 <td valign="top" class="value ${hasErrors(bean:system_menu,field:'parent','errors')}">
  34.                                     <g:select optionKey="id" from="${System_menu.list()}" name="parent.id" value="${system_menu?.parent?.id}" noSelection="['null':'']"></g:select>
  35.                                 </td>
  36.                             </tr> 
  37.                         
  38.                             <tr class="prop">
  39.                                 <td valign="top" class="name">
  40.                                     <label for="childrens"><g:message code="system_menu.childrens" default="Childrens" />:</label>
  41.                                 </td>
  42.                                 <td valign="top" class="value ${hasErrors(bean:system_menu,field:'childrens','errors')}">
  43.                                     
  44. <ul>
  45. <g:each var="c" in="${system_menu?.childrens?}">
  46.     <li><g:link controller="system_menu" action="show" id="${c.id}">${c}</g:link></li>
  47. </g:each>
  48. </ul>
  49. <g:link controller="system_menu" params="["system_menu.id":system_menu?.id]" action="create">Add System_menu</g:link>
  50.                                 </td>
  51.                             </tr> 
  52.                         
  53.                             <tr class="prop">
  54.                                 <td valign="top" class="name">
  55.                                     <label for="description"><g:message code="system_menu.description" default="Description" />:</label>
  56.                                 </td>
  57.                                 <td valign="top" class="value ${hasErrors(bean:system_menu,field:'description','errors')}">
  58.                                     <input type="text" id="description" name="description" value="${fieldValue(bean:system_menu,field:'description')}"/>
  59.                                 </td>
  60.                             </tr> 
  61.                         
  62.                             <tr class="prop">
  63.                                 <td valign="top" class="name">
  64.                                     <label for="name"><g:message code="system_menu.name" default="Name" />:</label>
  65.                                 </td>
  66.                                 <td valign="top" class="value ${hasErrors(bean:system_menu,field:'name','errors')}">
  67.                                     <input type="text" id="name" name="name" value="${fieldValue(bean:system_menu,field:'name')}"/>
  68.                                 </td>
  69.                             </tr> 
  70.                         
  71.                         </tbody>
  72.                     </table>
  73.                 </div>
  74.                 <div class="buttons">
  75.                     <span class="button"><g:actionSubmit class="save" action="Update" value="${message(code:'update', 'default':'Update')}" /></span>
  76.                     <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>
  77.                 </div>
  78.             </g:form>
  79.         </div>
  80.     </body>
  81. </html>