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="ckind.edit" default="Edit 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.             <span class="menuButton"><g:link class="create" action="create"><g:message code="ckind.new" default="New Ckind" /></g:link></span>
  12.         </div>
  13.         <div class="body">
  14.             <h1><g:message code="ckind.edit" default="Edit Ckind" /></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="${ckind}">
  19.             <div class="errors">
  20.                 <g:renderErrors bean="${ckind}" as="list" />
  21.             </div>
  22.             </g:hasErrors>
  23.             <g:form method="post" >
  24.                 <input type="hidden" name="id" value="${ckind?.id}" />
  25.                 <div class="dialog">
  26.                     <table>
  27.                         <tbody>
  28.                         
  29.                             <tr class="prop">
  30.                                 <td valign="top" class="name">
  31.                                     <label for="ckiName"><g:message code="ckind.ckiName" default="Cki Name" />:</label>
  32.                                 </td>
  33.                                 <td valign="top" class="value ${hasErrors(bean:ckind,field:'ckiName','errors')}">
  34.                                     <input type="text" maxlength="20" id="ckiName" name="ckiName" value="${fieldValue(bean:ckind,field:'ckiName')}"/>
  35.                                 </td>
  36.                             </tr> 
  37.                         
  38.                             <tr class="prop">
  39.                                 <td valign="top" class="name">
  40.                                     <label for="ckiFlag"><g:message code="ckind.ckiFlag" default="Cki Flag" />:</label>
  41.                                 </td>
  42.                                 <td valign="top" class="value ${hasErrors(bean:ckind,field:'ckiFlag','errors')}">
  43.                                     <input type="text" maxlength="20" id="ckiFlag" name="ckiFlag" value="${fieldValue(bean:ckind,field:'ckiFlag')}"/>
  44.                                 </td>
  45.                             </tr> 
  46.                         
  47.                             <tr class="prop">
  48.                                 <td valign="top" class="name">
  49.                                     <label for="ckiState"><g:message code="ckind.ckiState" default="Cki State" />:</label>
  50.                                 </td>
  51.                                 <td valign="top" class="value ${hasErrors(bean:ckind,field:'ckiState','errors')}">
  52.                                     <input type="text" maxlength="20" id="ckiState" name="ckiState" value="${fieldValue(bean:ckind,field:'ckiState')}"/>
  53.                                 </td>
  54.                             </tr> 
  55.                         
  56.                             <tr class="prop">
  57.                                 <td valign="top" class="name">
  58.                                     <label for="ckimemo"><g:message code="ckind.ckimemo" default="Ckimemo" />:</label>
  59.                                 </td>
  60.                                 <td valign="top" class="value ${hasErrors(bean:ckind,field:'ckimemo','errors')}">
  61.                                     <textarea rows="5" cols="40" name="ckimemo">${ckind?.ckimemo?.encodeAsHTML()}</textarea>
  62.                                 </td>
  63.                             </tr> 
  64.                         
  65.                             <tr class="prop">
  66.                                 <td valign="top" class="name">
  67.                                     <label for="codes"><g:message code="ckind.codes" default="Codes" />:</label>
  68.                                 </td>
  69.                                 <td valign="top" class="value ${hasErrors(bean:ckind,field:'codes','errors')}">
  70.                                     
  71. <ul>
  72. <g:each var="c" in="${ckind?.codes?}">
  73.     <li><g:link controller="code" action="show" id="${c.id}">${c}</g:link></li>
  74. </g:each>
  75. </ul>
  76. <g:link controller="code" params="["ckind.id":ckind?.id]" action="create">Add Code</g:link>
  77.                                 </td>
  78.                             </tr> 
  79.                         
  80.                         </tbody>
  81.                     </table>
  82.                 </div>
  83.                 <div class="buttons">
  84.                     <span class="button"><g:actionSubmit class="save" action="Update" value="${message(code:'update', 'default':'Update')}" /></span>
  85.                     <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>
  86.                 </div>
  87.             </g:form>
  88.         </div>
  89.     </body>
  90. </html>