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

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="ckind.create" default="Create Ckind" /></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="ckind.list" default="Ckind List" /></g:link></span>
  11.         </div>
  12.         <div class="body">
  13.             <h1><g:message code="ckind.create" default="Create Ckind" /></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="${ckind}">
  18.             <div class="errors">
  19.                 <g:renderErrors bean="${ckind}" 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="ckiName"><g:message code="ckind.ckiName" default="Cki Name" />:</label>
  30.                                 </td>
  31.                                 <td valign="top" class="value ${hasErrors(bean:ckind,field:'ckiName','errors')}">
  32.                                     <input type="text" maxlength="20" id="ckiName" name="ckiName" value="${fieldValue(bean:ckind,field:'ckiName')}"/>
  33.                                 </td>
  34.                             </tr> 
  35.                         
  36.                             <tr class="prop">
  37.                                 <td valign="top" class="name">
  38.                                     <label for="ckiFlag"><g:message code="ckind.ckiFlag" default="Cki Flag" />:</label>
  39.                                 </td>
  40.                                 <td valign="top" class="value ${hasErrors(bean:ckind,field:'ckiFlag','errors')}">
  41.                                     <input type="text" maxlength="20" id="ckiFlag" name="ckiFlag" value="${fieldValue(bean:ckind,field:'ckiFlag')}"/>
  42.                                 </td>
  43.                             </tr> 
  44.                         
  45.                             <tr class="prop">
  46.                                 <td valign="top" class="name">
  47.                                     <label for="ckiState"><g:message code="ckind.ckiState" default="Cki State" />:</label>
  48.                                 </td>
  49.                                 <td valign="top" class="value ${hasErrors(bean:ckind,field:'ckiState','errors')}">
  50.                                     <input type="text" maxlength="20" id="ckiState" name="ckiState" value="${fieldValue(bean:ckind,field:'ckiState')}"/>
  51.                                 </td>
  52.                             </tr> 
  53.                         
  54.                             <tr class="prop">
  55.                                 <td valign="top" class="name">
  56.                                     <label for="ckimemo"><g:message code="ckind.ckimemo" default="Ckimemo" />:</label>
  57.                                 </td>
  58.                                 <td valign="top" class="value ${hasErrors(bean:ckind,field:'ckimemo','errors')}">
  59.                                     <textarea rows="5" cols="40" name="ckimemo">${ckind?.ckimemo?.encodeAsHTML()}</textarea>
  60.                                 </td>
  61.                             </tr> 
  62.                         
  63.                         </tbody>
  64.                     </table>
  65.                 </div>
  66.                 <div class="buttons">
  67.                     <span class="button"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></span>
  68.                 </div>
  69.             </g:form>
  70.         </div>
  71.     </body>
  72. </html>