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="quotation.edit" default="Edit Quotation" /></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="quotation.list" default="Quotation List" /></g:link></span>
- <span class="menuButton"><g:link class="create" action="create"><g:message code="quotation.new" default="New Quotation" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="quotation.edit" default="Edit Quotation" /></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="${quotation}">
- <div class="errors">
- <g:renderErrors bean="${quotation}" as="list" />
- </div>
- </g:hasErrors>
- <g:form method="post" >
- <input type="hidden" name="id" value="${quotation?.id}" />
- <div class="dialog">
- <table>
- <tbody>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="quoId"><g:message code="quotation.quoId" default="Quo Id" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoId','errors')}">
- <input type="text" maxlength="16" id="quoId" name="quoId" value="${fieldValue(bean:quotation,field:'quoId')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="quoName"><g:message code="quotation.quoName" default="Quo Name" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoName','errors')}">
- <input type="text" maxlength="10" id="quoName" name="quoName" value="${fieldValue(bean:quotation,field:'quoName')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="quoFactory"><g:message code="quotation.quoFactory" default="quoFactory" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoFactory','errors')}">
- <input type="text" maxlength="25" id="quoFactory" name="quoFactory" value="${fieldValue(bean:quotation,field:'quoFactory')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="quoNumber"><g:message code="quotation.quoNumber" default="Quo Number" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoNumber','errors')}">
- <input type="text" maxlength="20" id="quoNumber" name="quoNumber" value="${fieldValue(bean:quotation,field:'quoNumber')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="quoEffectivetime"><g:message code="quotation.quoEffectivetime" default="Quo Effectivetime" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoEffectivetime','errors')}">
- <input type="text" maxlength="10" id="quoEffectivetime" name="quoEffectivetime" value="${fieldValue(bean:quotation,field:'quoEffectivetime')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="quoPrice"><g:message code="quotation.quoPrice" default="Quo Price" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoPrice','errors')}">
- <input type="text" id="quoPrice" name="quoPrice" value="${fieldValue(bean:quotation,field:'quoPrice')}" />
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="quoMemo"><g:message code="quotation.quoMemo" default="Quo Memo" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoMemo','errors')}">
- <textarea rows="5" cols="40" name="quoMemo">${quotation?.quoMemo?.encodeAsHTML()}</textarea>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="quoCreatetime"><g:message code="quotation.quoCreatetime" default="Quo Createtime" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoCreatetime','errors')}">
- <g:datePicker name="quoCreatetime" value="${quotation?.quoCreatetime}" ></g:datePicker>
- </td>
- </tr>
-
- </tbody>
- </table>
- </div>
- <div class="buttons">
- <input type="hidden" name="_quoName" value="${params._quoName}" />
- <input type="hidden" name="_quoFactory" value="${params._quoFactory}" />
- <input type="hidden" name="_quoType_id" value="${params._quoType_id}" />
- <input type="hidden" name="_quoLastchangefrom" value="${params._quoLastchangefrom}" />
- <input type="hidden" name="_quoLastchangeto" value="${params._quoLastchangeto}" />
- <input type="hidden" name="_quoDel" value="${params._quoDel}" />
- <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>