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="quotation.edit" default="Edit Quotation" /></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="quotation.list" default="Quotation List" /></g:link></span>
  11.             <span class="menuButton"><g:link class="create" action="create"><g:message code="quotation.new" default="New Quotation" /></g:link></span>
  12.         </div>
  13.         <div class="body">
  14.             <h1><g:message code="quotation.edit" default="Edit Quotation" /></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="${quotation}">
  19.             <div class="errors">
  20.                 <g:renderErrors bean="${quotation}" as="list" />
  21.             </div>
  22.             </g:hasErrors>
  23.             <g:form method="post" >
  24.                 <input type="hidden" name="id" value="${quotation?.id}" />
  25.                 <div class="dialog">
  26.                     <table>
  27.                         <tbody>
  28.                         
  29.                             <tr class="prop">
  30.                                 <td valign="top" class="name">
  31.                                     <label for="quoId"><g:message code="quotation.quoId" default="Quo Id" />:</label>
  32.                                 </td>
  33.                                 <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoId','errors')}">
  34.                                     <input type="text" maxlength="16" id="quoId" name="quoId" value="${fieldValue(bean:quotation,field:'quoId')}"/>
  35.                                 </td>
  36.                             </tr> 
  37.                         
  38.                             <tr class="prop">
  39.                                 <td valign="top" class="name">
  40.                                     <label for="quoName"><g:message code="quotation.quoName" default="Quo Name" />:</label>
  41.                                 </td>
  42.                                 <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoName','errors')}">
  43.                                     <input type="text" maxlength="10" id="quoName" name="quoName" value="${fieldValue(bean:quotation,field:'quoName')}"/>
  44.                                 </td>
  45.                             </tr> 
  46.                         
  47.                             <tr class="prop">
  48.                                 <td valign="top" class="name">
  49.                                     <label for="quoFactory"><g:message code="quotation.quoFactory" default="quoFactory" />:</label>
  50.                                 </td>
  51.                                 <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoFactory','errors')}">
  52.                                     <input type="text" maxlength="25" id="quoFactory" name="quoFactory" value="${fieldValue(bean:quotation,field:'quoFactory')}"/>
  53.                                 </td>
  54.                             </tr> 
  55.                         
  56.                             <tr class="prop">
  57.                                 <td valign="top" class="name">
  58.                                     <label for="quoNumber"><g:message code="quotation.quoNumber" default="Quo Number" />:</label>
  59.                                 </td>
  60.                                 <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoNumber','errors')}">
  61.                                     <input type="text" maxlength="20" id="quoNumber" name="quoNumber" value="${fieldValue(bean:quotation,field:'quoNumber')}"/>
  62.                                 </td>
  63.                             </tr> 
  64.                         
  65.                             <tr class="prop">
  66.                                 <td valign="top" class="name">
  67.                                     <label for="quoEffectivetime"><g:message code="quotation.quoEffectivetime" default="Quo Effectivetime" />:</label>
  68.                                 </td>
  69.                                 <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoEffectivetime','errors')}">
  70.                                     <input type="text" maxlength="10" id="quoEffectivetime" name="quoEffectivetime" value="${fieldValue(bean:quotation,field:'quoEffectivetime')}"/>
  71.                                 </td>
  72.                             </tr> 
  73.                         
  74.                             <tr class="prop">
  75.                                 <td valign="top" class="name">
  76.                                     <label for="quoPrice"><g:message code="quotation.quoPrice" default="Quo Price" />:</label>
  77.                                 </td>
  78.                                 <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoPrice','errors')}">
  79.                                     <input type="text" id="quoPrice" name="quoPrice" value="${fieldValue(bean:quotation,field:'quoPrice')}" />
  80.                                 </td>
  81.                             </tr> 
  82.                         
  83.                             <tr class="prop">
  84.                                 <td valign="top" class="name">
  85.                                     <label for="quoMemo"><g:message code="quotation.quoMemo" default="Quo Memo" />:</label>
  86.                                 </td>
  87.                                 <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoMemo','errors')}">
  88.                                     <textarea rows="5" cols="40" name="quoMemo">${quotation?.quoMemo?.encodeAsHTML()}</textarea>
  89.                                 </td>
  90.                             </tr> 
  91.                         
  92.                             <tr class="prop">
  93.                                 <td valign="top" class="name">
  94.                                     <label for="quoCreatetime"><g:message code="quotation.quoCreatetime" default="Quo Createtime" />:</label>
  95.                                 </td>
  96.                                 <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoCreatetime','errors')}">
  97.                                     <g:datePicker name="quoCreatetime" value="${quotation?.quoCreatetime}" ></g:datePicker>
  98.                                 </td>
  99.                             </tr>
  100.                         
  101.                         </tbody>
  102.                     </table>
  103.                 </div>
  104.                 <div class="buttons">
  105.                     <input type="hidden" name="_quoName" value="${params._quoName}" />
  106.                     <input type="hidden" name="_quoFactory" value="${params._quoFactory}" />
  107.                     <input type="hidden" name="_quoType_id" value="${params._quoType_id}" />
  108.                     <input type="hidden" name="_quoLastchangefrom" value="${params._quoLastchangefrom}" />
  109.                     <input type="hidden" name="_quoLastchangeto" value="${params._quoLastchangeto}" />
  110.                     <input type="hidden" name="_quoDel" value="${params._quoDel}" />
  111.                     <input type="hidden" name="offset" value="${params.offset}" />
  112.                     <input type="hidden" name="sort" value="${params.sort}" />
  113.                     <input type="hidden" name="order" value="${params.order}" /> 
  114.                     <span class="button"><g:actionSubmit class="save" action="Update" value="${message(code:'update', 'default':'Update')}" /></span>
  115.                     <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>
  116.                     <span class="button"><input  class="delete" type="button" onclick=" history.go(-1);" value="${message(code:'back', 'default':'Back')}"/> </span>
  117.                 </div>
  118.             </g:form>
  119.         </div>
  120.     </body>
  121. </html>