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

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.create" default="Create 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.         </div>
  12.         <div class="body">
  13.             <h1><g:message code="system_menu.create" default="Create System_menu" /></h1>
  14.             <g:if test="${flash.message}">
  15.             <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
  16.             </g:if>
  17.             <g:hasErrors bean="${system_menu}">
  18.             <div class="errors">
  19.                 <g:renderErrors bean="${system_menu}" as="list" />
  20.             </div>
  21.             </g:hasErrors>
  22.             <g:form action="save" method="post" >
  23.                 <div class="dialog">
  24.                     <table>
  25.                         <tbody>
  26.                         
  27.                             <tr class="prop">
  28.                                 <td valign="top" class="name">
  29.                                     <label for="parent"><g:message code="system_menu.parent" default="Parent" />:</label>
  30.                                 </td>
  31.                                 <td valign="top" class="value ${hasErrors(bean:system_menu,field:'parent','errors')}">
  32.                                     <g:select optionKey="id" from="${System_menu.list()}" name="parent.id" value="${system_menu?.parent?.id}" noSelection="['null':'']"></g:select>
  33.                                 </td>
  34.                             </tr> 
  35.                         
  36.                             <tr class="prop">
  37.                                 <td valign="top" class="name">
  38.                                     <label for="description"><g:message code="system_menu.description" default="Description" />:</label>
  39.                                 </td>
  40.                                 <td valign="top" class="value ${hasErrors(bean:system_menu,field:'description','errors')}">
  41.                                     <input type="text" id="description" name="description" value="${fieldValue(bean:system_menu,field:'description')}"/>
  42.                                 </td>
  43.                             </tr> 
  44.                         
  45.                             <tr class="prop">
  46.                                 <td valign="top" class="name">
  47.                                     <label for="name"><g:message code="system_menu.name" default="Name" />:</label>
  48.                                 </td>
  49.                                 <td valign="top" class="value ${hasErrors(bean:system_menu,field:'name','errors')}">
  50.                                     <input type="text" id="name" name="name" value="${fieldValue(bean:system_menu,field:'name')}"/>
  51.                                 </td>
  52.                             </tr> 
  53.                         
  54.                         </tbody>
  55.                     </table>
  56.                 </div>
  57.                 <div class="buttons">
  58.                     <span class="button"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></span>
  59.                 </div>
  60.             </g:form>
  61.         </div>
  62.     </body>
  63. </html>