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="signInOut.create" default="Create SignInOut" /></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="signInOut.list" default="SignInOut List" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="signInOut.create" default="Create SignInOut" /></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="${signInOut}">
- <div class="errors">
- <g:renderErrors bean="${signInOut}" 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="sigMan"><g:message code="signInOut.sigMan" default="Sig Man" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:signInOut,field:'sigMan','errors')}">
- <g:select optionKey="id" from="${Staff.list()}" name="sigMan.id" value="${signInOut?.sigMan?.id}" ></g:select>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="sigType"><g:message code="signInOut.sigType" default="Sig Type" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:signInOut,field:'sigType','errors')}">
- <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('SignType'))}" name="sigType.id" value="${signInOut?.sigType?.id}" ></g:select>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="sigCause"><g:message code="signInOut.sigCause" default="Sig Cause" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:signInOut,field:'sigCause','errors')}">
- <textarea rows="5" cols="40" name="sigCause">${signInOut?.sigCause?.encodeAsHTML()}</textarea>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="sigMemo"><g:message code="signInOut.sigMemo" default="Sig Memo" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:signInOut,field:'sigMemo','errors')}">
- <textarea rows="5" cols="40" name="sigMemo">${signInOut?.sigMemo?.encodeAsHTML()}</textarea>
- </td>
- </tr>
-
- </tbody>
- </table>
- </div>
- <div class="buttons">
- <input type="hidden" name="_sigMan" value="${params._sigMan}" />
- <input type="hidden" name="_sigType_id" value="${params._sigType_id}" />
- <input type="hidden" name="_rosLastchangefrom" value="${params._sigTimefrom}" />
- <input type="hidden" name="_rosLastchangeto" value="${params._sigTimeto}" />
- <input type="hidden" name="_rosDel" value="${params._sigDel}" />
- <input type="hidden" name="offset" value="${params.offset}" />
- <input type="hidden" name="sort" value="${params.sort}" />
- <input type="hidden" name="order" value="${params.order}" />
- <span class="button"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></span>
- <span class="button"><input class="delete" type="button" onclick=" history.go(-1);" value="${message(code:'back', 'default':'Back')}"/> </span>
- </div>
- </g:form>
- </div>
- </body>
- </html>