edit.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="roster.edit" default="Edit Roster" /></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="roster.list" default="Roster List" /></g:link></span>
- <span class="menuButton"><g:link class="create" action="create"><g:message code="roster.new" default="New Roster" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="roster.edit" default="Edit Roster" /></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="${roster}">
- <div class="errors">
- <g:renderErrors bean="${roster}" as="list" />
- </div>
- </g:hasErrors>
- <g:form method="post" >
- <input type="hidden" name="id" value="${roster?.id}" />
- <div class="dialog">
- <table>
- <tbody>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="rosRequestman"><g:message code="roster.rosRequestman" default="Ros Requestman" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:roster,field:'rosRequestman','errors')}">
- <g:select optionKey="id" from="${Staff.list()}" name="rosRequestman.id" value="${roster?.rosRequestman?.id}" ></g:select>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="rosFrom"><g:message code="roster.rosFrom" default="Ros From" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:roster,field:'rosFrom','errors')}">
- <g:datePicker name="rosFrom" value="${roster?.rosFrom}" ></g:datePicker>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="rosTo"><g:message code="roster.rosTo" default="Ros To" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:roster,field:'rosTo','errors')}">
- <g:datePicker name="rosTo" value="${roster?.rosTo}" ></g:datePicker>
- </td>
- </tr>
-
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="rosPlace"><g:message code="roster.rosPlace" default="Ros Place" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:roster,field:'rosPlace','errors')}">
- <input type="text" maxlength="25" id="rosPlace" name="rosPlace" value="${fieldValue(bean:roster,field:'rosPlace')}"/>
- </td>
- </tr>
-
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="rosMemo"><g:message code="roster.rosMemo" default="Ros Memo" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:roster,field:'rosMemo','errors')}">
- <textarea rows="5" cols="40" name="rosMemo">${roster?.rosMemo?.encodeAsHTML()}</textarea>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="rosCreatetime"><g:message code="roster.rosCreatetime" default="Ros Createtime" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:roster,field:'rosCreatetime','errors')}">
- ${roster?.rosCreatetime}
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="rosCreater"><g:message code="roster.rosCreater" default="Ros Creater" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:roster,field:'rosCreater','errors')}">
- ${fieldValue(bean:roster,field:'rosCreater')}
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="rosLastchange"><g:message code="roster.rosLastchange" default="Ros Lastchange" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:roster,field:'rosLastchange','errors')}">
- ${roster?.rosLastchange}
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="rosLastchanger"><g:message code="roster.rosLastchanger" default="Ros Lastchanger" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:roster,field:'rosLastchanger','errors')}">
- ${fieldValue(bean:roster,field:'rosLastchanger')}
- </td>
- </tr>
-
- </tbody>
- </table>
- </div>
- <div class="buttons">
- <input type="hidden" name="_rosRequestman" value="${params._rosRequestman}" />
- <input type="hidden" name="_rosState_id" value="${params._rosState_id}" />
- <input type="hidden" name="_rosLastchangefrom" value="${params._rosLastchangefrom}" />
- <input type="hidden" name="_rosLastchangeto" value="${params._rosLastchangeto}" />
- <input type="hidden" name="_rosDel" value="${params._rosDel}" />
- <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"><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>
- <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>