create.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="code.create" default="Create Code" /></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="code.list" default="Code List" /></g:link></span>
  11.         </div>
  12.         <div class="body">
  13.             <h1><g:message code="code.create" default="Create Code" /></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="${code}">
  18.             <div class="errors">
  19.                 <g:renderErrors bean="${code}" 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="codName"><g:message code="code.codName" default="Cod Name" />:</label>
  30.                                 </td>
  31.                                 <td valign="top" class="value ${hasErrors(bean:code,field:'codName','errors')}">
  32.                                     <input type="text" maxlength="20" id="codName" name="codName" value="${fieldValue(bean:code,field:'codName')}"/>
  33.                                 </td>
  34.                             </tr> 
  35.                         
  36.                             <tr class="prop">
  37.                                 <td valign="top" class="name">
  38.                                     <label for="codValue1"><g:message code="code.codValue1" default="Cod Value1" />:</label>
  39.                                 </td>
  40.                                 <td valign="top" class="value ${hasErrors(bean:code,field:'codValue1','errors')}">
  41.                                     <input type="text" maxlength="40" id="codValue1" name="codValue1" value="${fieldValue(bean:code,field:'codValue1')}"/>
  42.                                 </td>
  43.                             </tr> 
  44.                         
  45.                             <tr class="prop">
  46.                                 <td valign="top" class="name">
  47.                                     <label for="codValue2"><g:message code="code.codValue2" default="Cod Value2" />:</label>
  48.                                 </td>
  49.                                 <td valign="top" class="value ${hasErrors(bean:code,field:'codValue2','errors')}">
  50.                                     <textarea rows="5" cols="40" name="codValue2">${code?.codValue2?.encodeAsHTML()}</textarea>
  51.                                 </td>
  52.                             </tr> 
  53.                         
  54.                             <tr class="prop">
  55.                                 <td valign="top" class="name">
  56.                                     <label for="codValue3"><g:message code="code.codValue3" default="Cod Value3" />:</label>
  57.                                 </td>
  58.                                 <td valign="top" class="value ${hasErrors(bean:code,field:'codValue3','errors')}">
  59.                                     <input type="text" maxlength="40" id="codValue3" name="codValue3" value="${fieldValue(bean:code,field:'codValue3')}"/>
  60.                                 </td>
  61.                             </tr> 
  62.                         
  63.                             <tr class="prop">
  64.                                 <td valign="top" class="name">
  65.                                     <label for="codValue4"><g:message code="code.codValue4" default="Cod Value4" />:</label>
  66.                                 </td>
  67.                                 <td valign="top" class="value ${hasErrors(bean:code,field:'codValue4','errors')}">
  68.                                     <input type="text" maxlength="40" id="codValue4" name="codValue4" value="${fieldValue(bean:code,field:'codValue4')}"/>
  69.                                 </td>
  70.                             </tr> 
  71.                         
  72.                             <tr class="prop">
  73.                                 <td valign="top" class="name">
  74.                                     <label for="ckind"><g:message code="code.ckind" default="Ckind" />:</label>
  75.                                 </td>
  76.                                 <td valign="top" class="value ${hasErrors(bean:code,field:'ckind','errors')}">
  77.                                     <g:select optionKey="id" from="${Ckind.list()}" name="ckind.id" value="${code?.ckind?.id}" ></g:select>
  78.                                 </td>
  79.                             </tr> 
  80.                         
  81.                         </tbody>
  82.                     </table>
  83.                 </div>
  84.                 <div class="buttons">
  85.                     <span class="button"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></span>
  86.                 </div>
  87.             </g:form>
  88.         </div>
  89.     </body>
  90. </html>