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

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.create" default="Create 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.         </div>
  12.         <div class="body">
  13.             <h1><g:message code="roster.create" default="Create Roster" /></h1>
  14.             <g:if test="${flash.message}">
  15.             <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
  16.             </g:if>
  17.             <g:hasErrors bean="${roster}">
  18.             <div class="errors">
  19.                 <g:renderErrors bean="${roster}" as="list" />
  20.             </div>
  21.             </g:hasErrors>
  22.             <g:form action="save" method="post" >
  23.                 <div class="dialog">
  24.                     <table>
  25.                         <tbody>
  26.                         
  27.                             <tr class="prop">
  28.                                 <td valign="top" class="name">
  29.                                     <label for="rosRequestman"><g:message code="roster.rosRequestman" default="Ros Requestman" />:</label>
  30.                                 </td>
  31.                                 <td valign="top" class="value ${hasErrors(bean:roster,field:'rosRequestman','errors')}">
  32.                                     <g:select optionKey="id" from="${Staff.list()}" name="rosRequestman.id" value="${roster?.rosRequestman?.id}" ></g:select>
  33.                                 </td>
  34.                             </tr> 
  35.                         
  36.                             <tr class="prop">
  37.                                 <td valign="top" class="name">
  38.                                     <label for="rosFrom"><g:message code="roster.rosFrom" default="Ros From" />:</label>
  39.                                 </td>
  40.                                 <td valign="top" class="value ${hasErrors(bean:roster,field:'rosFrom','errors')}">
  41.                                     <g:datePicker name="rosFrom" value="${roster?.rosFrom}" ></g:datePicker>
  42.                                 </td>
  43.                            
  44.                                 <td valign="top" class="name">
  45.                                     <label for="rosTo"><g:message code="roster.rosTo" default="Ros To" />:</label>
  46.                                 </td>
  47.                                 <td valign="top" class="value ${hasErrors(bean:roster,field:'rosTo','errors')}">
  48.                                     <g:datePicker name="rosTo" value="${roster?.rosTo}" ></g:datePicker>
  49.                                 </td>
  50.                             </tr> 
  51.                         
  52.                                                     
  53.                             <tr class="prop">
  54.                                 <td valign="top" class="name">
  55.                                     <label for="rosPlace"><g:message code="roster.rosPlace" default="Ros Place" />:</label>
  56.                                 </td>
  57.                                 <td valign="top" class="value ${hasErrors(bean:roster,field:'rosPlace','errors')}">
  58.                                     <input type="text" maxlength="25" id="rosPlace" name="rosPlace" value="${fieldValue(bean:roster,field:'rosPlace')}"/>
  59.                                 </td>
  60.                             </tr> 
  61.                         
  62.                             
  63.                         
  64.                             <tr class="prop">
  65.                                 <td valign="top" class="name">
  66.                                     <label for="rosMemo"><g:message code="roster.rosMemo" default="Ros Memo" />:</label>
  67.                                 </td>
  68.                                 <td valign="top" class="value ${hasErrors(bean:roster,field:'rosMemo','errors')}">
  69.                                     <textarea rows="5" cols="40" name="rosMemo">${roster?.rosMemo?.encodeAsHTML()}</textarea>
  70.                                 </td>
  71.                             </tr> 
  72.                         
  73.                         </tbody>
  74.                     </table>
  75.                 </div>
  76.                 <div class="buttons">
  77.                     <input type="hidden" name="_rosRequestman" value="${params._rosRequestman}" />
  78.                     <input type="hidden" name="_rosState_id" value="${params._rosState_id}" />
  79.                     <input type="hidden" name="_rosLastchangefrom" value="${params._rosLastchangefrom}" />
  80.                     <input type="hidden" name="_rosLastchangeto" value="${params._rosLastchangeto}" />
  81.                     <input type="hidden" name="_rosDel" value="${params._rosDel}" />
  82.                     <input type="hidden" name="offset" value="${params.offset}" />
  83.                     <input type="hidden" name="sort" value="${params.sort}" />
  84.                     <input type="hidden" name="order" value="${params.order}" /> 
  85.                     <span class="button"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></span>
  86.                     <span class="button"><input  class="delete" type="button" onclick=" history.go(-1);" value="${message(code:'back', 'default':'Back')}"/> </span>
  87.                 </div>
  88.             </g:form>
  89.         </div>
  90.     </body>
  91. </html>