create.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:8k
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title><g:message code="salary.create" default="Create Salary" /></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="salary.list" default="Salary List" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="salary.create" default="Create Salary" /></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="${salary}">
- <div class="errors">
- <g:renderErrors bean="${salary}" 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="salMan"><g:message code="salary.salMan" default="Sal Man" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:salary,field:'salMan','errors')}">
- <g:select optionKey="id" from="${Staff.list()}" name="salMan.id" value="${salary?.salMan?.id}" ></g:select>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="salBase"><g:message code="salary.salBase" default="Sal Base" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:salary,field:'salBase','errors')}">
- <input type="text" id="salBase" name="salBase" value="${fieldValue(bean:salary,field:'salBase')}" />
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="salPrize"><g:message code="salary.salPrize" default="Sal Prize" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:salary,field:'salPrize','errors')}">
- <input type="text" id="salPrize" name="salPrize" value="${fieldValue(bean:salary,field:'salPrize')}" />
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="salBonus"><g:message code="salary.salBonus" default="Sal Bonus" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:salary,field:'salBonus','errors')}">
- <input type="text" id="salBonus" name="salBonus" value="${fieldValue(bean:salary,field:'salBonus')}" />
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="withhold"><g:message code="salary.withhold" default="Withhold" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:salary,field:'withhold','errors')}">
- <input type="text" id="withhold" name="withhold" value="${fieldValue(bean:salary,field:'withhold')}" />
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="community"><g:message code="salary.community" default="Community" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:salary,field:'community','errors')}">
- <input type="text" id="community" name="community" value="${fieldValue(bean:salary,field:'community')}" />
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="salHard"><g:message code="salary.salHard" default="Sal Hard" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:salary,field:'salHard','errors')}">
- <input type="text" id="salHard" name="salHard" value="${fieldValue(bean:salary,field:'salHard')}" />
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="salMemo"><g:message code="salary.salMemo" default="Sal Memo" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:salary,field:'salMemo','errors')}">
- <input type="text" maxlength="200" id="salMemo" name="salMemo" value="${fieldValue(bean:salary,field:'salMemo')}"/>
- </td>
- </tr>
-
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="salPass"><g:message code="salary.salPass" default="Sal Pass" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:salary,field:'salPass','errors')}">
- <input type="text" id="salPass" name="salPass" value="${fieldValue(bean:salary,field:'salPass')}"/>
- </td>
- </tr>
-
- </tbody>
- </table>
- </div>
- <div class="buttons">
- <input type="hidden" name="_salMan" value="${params._salMan}" />
- <input type="hidden" name="_salBase" value="${params._salBase}" />
- <input type="hidden" name="_salType_id" value="${params._salType_id}" />
- <input type="hidden" name="_salLastchangefrom" value="${params._salLastchangefrom}" />
- <input type="hidden" name="_salLastchangeto" value="${params._salLastchangeto}" />
- <input type="hidden" name="_salDel" value="${params._salDel}" />
- <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>