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="roster.edit" default="Edit Roster" /></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="roster.list" default="Roster List" /></g:link></span>
  11.             <span class="menuButton"><g:link class="create" action="create"><g:message code="roster.new" default="New Roster" /></g:link></span>
  12.         </div>
  13.         <div class="body">
  14.             <h1><g:message code="roster.edit" default="Edit Roster" /></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="${roster}">
  19.             <div class="errors">
  20.                 <g:renderErrors bean="${roster}" as="list" />
  21.             </div>
  22.             </g:hasErrors>
  23.             <g:form method="post" >
  24.                 <input type="hidden" name="id" value="${roster?.id}" />
  25.                 <div class="dialog">
  26.                     <table>
  27.                         <tbody>
  28.                         
  29.                             <tr class="prop">
  30.                                 <td valign="top" class="name">
  31.                                     <label for="rosRequestman"><g:message code="roster.rosRequestman" default="Ros Requestman" />:</label>
  32.                                 </td>
  33.                                 <td valign="top" class="value ${hasErrors(bean:roster,field:'rosRequestman','errors')}">
  34.                                     <g:select optionKey="id" from="${Staff.list()}" name="rosRequestman.id" value="${roster?.rosRequestman?.id}" ></g:select>
  35.                                 </td>
  36.                             </tr> 
  37.                         
  38.                             <tr class="prop">
  39.                                 <td valign="top" class="name">
  40.                                     <label for="rosFrom"><g:message code="roster.rosFrom" default="Ros From" />:</label>
  41.                                 </td>
  42.                                 <td valign="top" class="value ${hasErrors(bean:roster,field:'rosFrom','errors')}">
  43.                                     <g:datePicker name="rosFrom" value="${roster?.rosFrom}" ></g:datePicker>
  44.                                 </td>
  45.                             </tr> 
  46.                         
  47.                             <tr class="prop">
  48.                                 <td valign="top" class="name">
  49.                                     <label for="rosTo"><g:message code="roster.rosTo" default="Ros To" />:</label>
  50.                                 </td>
  51.                                 <td valign="top" class="value ${hasErrors(bean:roster,field:'rosTo','errors')}">
  52.                                     <g:datePicker name="rosTo" value="${roster?.rosTo}" ></g:datePicker>
  53.                                 </td>
  54.                             </tr> 
  55.                         
  56.                                                 
  57.                             <tr class="prop">
  58.                                 <td valign="top" class="name">
  59.                                     <label for="rosPlace"><g:message code="roster.rosPlace" default="Ros Place" />:</label>
  60.                                 </td>
  61.                                 <td valign="top" class="value ${hasErrors(bean:roster,field:'rosPlace','errors')}">
  62.                                     <input type="text" maxlength="25" id="rosPlace" name="rosPlace" value="${fieldValue(bean:roster,field:'rosPlace')}"/>
  63.                                 </td>
  64.                             </tr> 
  65.                         
  66.                                                    
  67.                             <tr class="prop">
  68.                                 <td valign="top" class="name">
  69.                                     <label for="rosMemo"><g:message code="roster.rosMemo" default="Ros Memo" />:</label>
  70.                                 </td>
  71.                                 <td valign="top" class="value ${hasErrors(bean:roster,field:'rosMemo','errors')}">
  72.                                     <textarea rows="5" cols="40" name="rosMemo">${roster?.rosMemo?.encodeAsHTML()}</textarea>
  73.                                 </td>
  74.                             </tr> 
  75.                         
  76.                             <tr class="prop">
  77.                                 <td valign="top" class="name">
  78.                                     <label for="rosCreatetime"><g:message code="roster.rosCreatetime" default="Ros Createtime" />:</label>
  79.                                 </td>
  80.                                 <td valign="top" class="value ${hasErrors(bean:roster,field:'rosCreatetime','errors')}">
  81.                                     ${roster?.rosCreatetime}
  82.                                 </td>
  83.                             </tr> 
  84.                         
  85.                             <tr class="prop">
  86.                                 <td valign="top" class="name">
  87.                                     <label for="rosCreater"><g:message code="roster.rosCreater" default="Ros Creater" />:</label>
  88.                                 </td>
  89.                                 <td valign="top" class="value ${hasErrors(bean:roster,field:'rosCreater','errors')}">
  90.                                     ${fieldValue(bean:roster,field:'rosCreater')}
  91.                                 </td>
  92.                             </tr> 
  93.                         
  94.                             <tr class="prop">
  95.                                 <td valign="top" class="name">
  96.                                     <label for="rosLastchange"><g:message code="roster.rosLastchange" default="Ros Lastchange" />:</label>
  97.                                 </td>
  98.                                 <td valign="top" class="value ${hasErrors(bean:roster,field:'rosLastchange','errors')}">
  99.                                     ${roster?.rosLastchange}
  100.                                 </td>
  101.                             </tr> 
  102.                         
  103.                             <tr class="prop">
  104.                                 <td valign="top" class="name">
  105.                                     <label for="rosLastchanger"><g:message code="roster.rosLastchanger" default="Ros Lastchanger" />:</label>
  106.                                 </td>
  107.                                 <td valign="top" class="value ${hasErrors(bean:roster,field:'rosLastchanger','errors')}">
  108.                                     ${fieldValue(bean:roster,field:'rosLastchanger')}
  109.                                 </td>
  110.                             </tr> 
  111.                         
  112.                         </tbody>
  113.                     </table>
  114.                 </div>
  115.                 <div class="buttons">
  116.                     <input type="hidden" name="_rosRequestman" value="${params._rosRequestman}" />
  117.                     <input type="hidden" name="_rosState_id" value="${params._rosState_id}" />
  118.                     <input type="hidden" name="_rosLastchangefrom" value="${params._rosLastchangefrom}" />
  119.                     <input type="hidden" name="_rosLastchangeto" value="${params._rosLastchangeto}" />
  120.                     <input type="hidden" name="_rosDel" value="${params._rosDel}" />
  121.                     <input type="hidden" name="offset" value="${params.offset}" />
  122.                     <input type="hidden" name="sort" value="${params.sort}" />
  123.                     <input type="hidden" name="order" value="${params.order}" /> 
  124.                     <span class="button"><g:actionSubmit class="save" action="Update" value="${message(code:'update', 'default':'Update')}" /></span>
  125.                     <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>
  126.                     <span class="button"><input  class="delete" type="button" onclick=" history.go(-1);" value="${message(code:'back', 'default':'Back')}"/> </span>
  127.                 </div>
  128.             </g:form>
  129.         </div>
  130.     </body>
  131. </html>