create.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:4k
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title><g:message code="ckind.create" default="Create 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>
- </div>
- <div class="body">
- <h1><g:message code="ckind.create" default="Create 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 action="save" method="post" >
- <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>
-
- </tbody>
- </table>
- </div>
- <div class="buttons">
- <span class="button"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></span>
- </div>
- </g:form>
- </div>
- </body>
- </html>