create.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="code.create" default="Create Code" /></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="code.list" default="Code List" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="code.create" default="Create Code" /></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="${code}">
- <div class="errors">
- <g:renderErrors bean="${code}" 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="codName"><g:message code="code.codName" default="Cod Name" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:code,field:'codName','errors')}">
- <input type="text" maxlength="20" id="codName" name="codName" value="${fieldValue(bean:code,field:'codName')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="codValue1"><g:message code="code.codValue1" default="Cod Value1" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:code,field:'codValue1','errors')}">
- <input type="text" maxlength="40" id="codValue1" name="codValue1" value="${fieldValue(bean:code,field:'codValue1')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="codValue2"><g:message code="code.codValue2" default="Cod Value2" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:code,field:'codValue2','errors')}">
- <textarea rows="5" cols="40" name="codValue2">${code?.codValue2?.encodeAsHTML()}</textarea>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="codValue3"><g:message code="code.codValue3" default="Cod Value3" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:code,field:'codValue3','errors')}">
- <input type="text" maxlength="40" id="codValue3" name="codValue3" value="${fieldValue(bean:code,field:'codValue3')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="codValue4"><g:message code="code.codValue4" default="Cod Value4" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:code,field:'codValue4','errors')}">
- <input type="text" maxlength="40" id="codValue4" name="codValue4" value="${fieldValue(bean:code,field:'codValue4')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="ckind"><g:message code="code.ckind" default="Ckind" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:code,field:'ckind','errors')}">
- <g:select optionKey="id" from="${Ckind.list()}" name="ckind.id" value="${code?.ckind?.id}" ></g:select>
- </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>