edit.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:8k
源码类别:

PlugIns编程

开发平台:

Java

  1. <html>
  2.     <head>
  3.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  4.         <meta name="layout" content="main" />
  5.         <title><g:message code="signInOut.edit" default="Edit SignInOut" /></title>
  6.     </head>
  7.     <body>
  8.         <div class="nav">
  9.             <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
  10.             <span class="menuButton"><g:link class="list" action="list"><g:message code="signInOut.list" default="SignInOut List" /></g:link></span>
  11.             <span class="menuButton"><g:link class="create" action="create" params="${[_sigMan:params._sigMan,_sigType_id:params._sigType_id,_sigTimefrom:params._sigTimefrom,_sigTimeto:params._sigTimeto,_sigDel:params._sigDel,max:params.max,sort:params.sort,offset:params.offset,order:params.order]}"><g:message code="signInOut.new" default="New SignInOut" /></g:link></span>
  12.         </div>
  13.         <div class="body">
  14.             <h1><g:message code="signInOut.edit" default="Edit SignInOut" /></h1>
  15.             <g:if test="${flash.message}">
  16.             <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
  17.             </g:if>
  18.             <g:hasErrors bean="${signInOut}">
  19.             <div class="errors">
  20.                 <g:renderErrors bean="${signInOut}" as="list" />
  21.             </div>
  22.             </g:hasErrors>
  23.             <g:form method="post" >
  24.                 <input type="hidden" name="id" value="${signInOut?.id}" />
  25.                 <div class="dialog">
  26.                     <table>
  27.                         <tbody>
  28.                         
  29.                             <tr class="prop">
  30.                                 <td valign="top" class="name">
  31.                                     <label for="sigMan"><g:message code="signInOut.sigMan" default="Sig Man" />:</label>
  32.                                 </td>
  33.                                 <td valign="top" class="value ${hasErrors(bean:signInOut,field:'sigMan','errors')}">
  34.                                     <g:select optionKey="id" from="${Staff.list()}" name="sigMan.id" value="${signInOut?.sigMan?.id}" ></g:select>
  35.                                 </td>
  36.                             </tr> 
  37.                         
  38.                             <tr class="prop">
  39.                                 <td valign="top" class="name">
  40.                                     <label for="sigTime"><g:message code="signInOut.sigTime" default="Sig Time" />:</label>
  41.                                 </td>
  42.                                 <td valign="top" class="value ${hasErrors(bean:signInOut,field:'sigTime','errors')}">
  43.                                     <g:datePicker name="sigTime" value="${signInOut?.sigTime}" ></g:datePicker>
  44.                                 </td>
  45.                             </tr> 
  46.                         
  47.                             <tr class="prop">
  48.                                 <td valign="top" class="name">
  49.                                     <label for="sigType"><g:message code="signInOut.sigType" default="Sig Type" />:</label>
  50.                                 </td>
  51.                                 <td valign="top" class="value ${hasErrors(bean:signInOut,field:'sigType','errors')}">
  52.                                     <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('SignType'))}" name="sigType.id" value="${signInOut?.sigType?.id}" ></g:select>
  53.                                 </td>
  54.                             </tr> 
  55.                         
  56.                             <tr class="prop">
  57.                                 <td valign="top" class="name">
  58.                                     <label for="sigCause"><g:message code="signInOut.sigCause" default="Sig Cause" />:</label>
  59.                                 </td>
  60.                                 <td valign="top" class="value ${hasErrors(bean:signInOut,field:'sigCause','errors')}">
  61.                                     <textarea rows="5" cols="40" name="sigCause">${signInOut?.sigCause?.encodeAsHTML()}</textarea>
  62.                                 </td>
  63.                             </tr> 
  64.                         
  65.                             <tr class="prop">
  66.                                 <td valign="top" class="name">
  67.                                     <label for="sigMemo"><g:message code="signInOut.sigMemo" default="Sig Memo" />:</label>
  68.                                 </td>
  69.                                 <td valign="top" class="value ${hasErrors(bean:signInOut,field:'sigMemo','errors')}">
  70.                                     <textarea rows="5" cols="40" name="sigMemo">${signInOut?.sigMemo?.encodeAsHTML()}</textarea>
  71.                                 </td>
  72.                             </tr> 
  73.                         
  74.                             <tr class="prop">
  75.                                 <td valign="top" class="name">
  76.                                     <label for="sigCreatetime"><g:message code="signInOut.sigCreatetime" default="Sig Createtime" />:</label>
  77.                                 </td>
  78.                                 <td valign="top" class="value ${hasErrors(bean:signInOut,field:'sigCreatetime','errors')}">
  79.                                     ${signInOut?.sigCreatetime}
  80.                                 </td>
  81.                             </tr> 
  82.                         
  83.                             <tr class="prop">
  84.                                 <td valign="top" class="name">
  85.                                     <label for="sigCreater"><g:message code="signInOut.sigCreater" default="Sig Creater" />:</label>
  86.                                 </td>
  87.                                 <td valign="top" class="value ${hasErrors(bean:signInOut,field:'sigCreater','errors')}">
  88.                                     ${fieldValue(bean:signInOut,field:'sigCreater')}
  89.                                 </td>
  90.                             </tr> 
  91.                         
  92.                             <tr class="prop">
  93.                                 <td valign="top" class="name">
  94.                                     <label for="sigLastchange"><g:message code="signInOut.sigLastchange" default="Sig Lastchange" />:</label>
  95.                                 </td>
  96.                                 <td valign="top" class="value ${hasErrors(bean:signInOut,field:'sigLastchange','errors')}">
  97.                                     ${signInOut?.sigLastchange}
  98.                                 </td>
  99.                             </tr> 
  100.                         
  101.                             <tr class="prop">
  102.                                 <td valign="top" class="name">
  103.                                     <label for="sigLastchanger"><g:message code="signInOut.sigLastchanger" default="Sig Lastchanger" />:</label>
  104.                                 </td>
  105.                                 <td valign="top" class="value ${hasErrors(bean:signInOut,field:'sigLastchanger','errors')}">
  106.                                     ${fieldValue(bean:signInOut,field:'sigLastchanger')}
  107.                                 </td>
  108.                             </tr> 
  109.                        
  110.                         
  111.                         </tbody>
  112.                     </table>
  113.                 </div>
  114.                 <div class="buttons">
  115.                     <input type="hidden" name="_sigMan" value="${params._sigMan}" />
  116.                     <input type="hidden" name="_sigType_id" value="${params._sigType_id}" />
  117.                     <input type="hidden" name="_rosLastchangefrom" value="${params._sigTimefrom}" />
  118.                     <input type="hidden" name="_rosLastchangeto" value="${params._sigTimeto}" />
  119.                     <input type="hidden" name="_rosDel" value="${params._sigDel}" />
  120.                     <input type="hidden" name="offset" value="${params.offset}" />
  121.                     <input type="hidden" name="sort" value="${params.sort}" />
  122.                     <input type="hidden" name="order" value="${params.order}" />
  123.                     <span class="button"><g:actionSubmit class="save" action="Update" value="${message(code:'update', 'default':'Update')}" /></span>
  124.                     <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>
  125.                 </div>
  126.             </g:form>
  127.         </div>
  128.     </body>
  129. </html>