edit.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:5k
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title><g:message code="ckind.edit" default="Edit Ckind" /></title>
- </head>
- <body>
- <div class="nav">
- <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
- <span class="menuButton"><g:link class="list" action="list"><g:message code="ckind.list" default="Ckind List" /></g:link></span>
- <span class="menuButton"><g:link class="create" action="create"><g:message code="ckind.new" default="New Ckind" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="ckind.edit" default="Edit Ckind" /></h1>
- <g:if test="${flash.message}">
- <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
- </g:if>
- <g:hasErrors bean="${ckind}">
- <div class="errors">
- <g:renderErrors bean="${ckind}" as="list" />
- </div>
- </g:hasErrors>
- <g:form method="post" >
- <input type="hidden" name="id" value="${ckind?.id}" />
- <div class="dialog">
- <table>
- <tbody>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="ckiName"><g:message code="ckind.ckiName" default="Cki Name" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:ckind,field:'ckiName','errors')}">
- <input type="text" maxlength="20" id="ckiName" name="ckiName" value="${fieldValue(bean:ckind,field:'ckiName')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="ckiFlag"><g:message code="ckind.ckiFlag" default="Cki Flag" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:ckind,field:'ckiFlag','errors')}">
- <input type="text" maxlength="20" id="ckiFlag" name="ckiFlag" value="${fieldValue(bean:ckind,field:'ckiFlag')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="ckiState"><g:message code="ckind.ckiState" default="Cki State" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:ckind,field:'ckiState','errors')}">
- <input type="text" maxlength="20" id="ckiState" name="ckiState" value="${fieldValue(bean:ckind,field:'ckiState')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="ckimemo"><g:message code="ckind.ckimemo" default="Ckimemo" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:ckind,field:'ckimemo','errors')}">
- <textarea rows="5" cols="40" name="ckimemo">${ckind?.ckimemo?.encodeAsHTML()}</textarea>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="codes"><g:message code="ckind.codes" default="Codes" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:ckind,field:'codes','errors')}">
-
- <ul>
- <g:each var="c" in="${ckind?.codes?}">
- <li><g:link controller="code" action="show" id="${c.id}">${c}</g:link></li>
- </g:each>
- </ul>
- <g:link controller="code" params="["ckind.id":ckind?.id]" action="create">Add Code</g:link>
- </td>
- </tr>
-
- </tbody>
- </table>
- </div>
- <div class="buttons">
- <span class="button"><g:actionSubmit class="save" action="Update" value="${message(code:'update', 'default':'Update')}" /></span>
- <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>
- </div>
- </g:form>
- </div>
- </body>
- </html>