edit.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:17k
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title><g:message code="inovice.edit" default="Edit Inovice" /></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="inovice.list" default="Inovice List" /></g:link></span>
- <span class="menuButton"><g:link class="create" action="create" params="${[_inoBuyname:params._inoBuyname,_inoBuycompany:params._inoBuycompany,_inoCargoname:params._inoCargoname,_inoLastchangefrom:params._inoLastchangefrom,_inoLastchangeto:params._inoLastchangeto,_inoDel:params._inoDel,max:params.max,sort:params.sort,offset:params.offset,order:params.order]}"><g:message code="inovice.new" default="New Inovice" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="inovice.edit" default="Edit Inovice" /></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="${inovice}">
- <div class="errors">
- <g:renderErrors bean="${inovice}" as="list" />
- </div>
- </g:hasErrors>
- <g:form method="post" >
- <input type="hidden" name="id" value="${inovice?.id}" />
- <div class="dialog">
- <table>
- <tbody>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="inoId"><g:message code="inovice.inoId" default="Ino Id" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoId','errors')}">
- <input type="text" readonly="true" maxlength="16" id="inoId" name="inoId" value="${fieldValue(bean:inovice,field:'inoId')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="inoBuyname"><g:message code="inovice.inoBuyname" default="Ino Buyname" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoBuyname','errors')}">
- <input type="text" maxlength="10" id="inoBuyname" name="inoBuyname" value="${fieldValue(bean:inovice,field:'inoBuyname')}"/>
- </td>
- <td valign="top" class="name">
- <label for="inoBuycompany"><g:message code="inovice.inoBuycompany" default="Ino Buycompany" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoBuycompany','errors')}">
- <input type="text" maxlength="25" id="inoBuycompany" name="inoBuycompany" value="${fieldValue(bean:inovice,field:'inoBuycompany')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="inoBuytel"><g:message code="inovice.inoBuytel" default="Ino Buytel" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoBuytel','errors')}">
- <input type="text" maxlength="20" id="inoBuytel" name="inoBuytel" value="${fieldValue(bean:inovice,field:'inoBuytel')}"/>
- </td>
- <td valign="top" class="name">
- <label for="inoBuyaddress"><g:message code="inovice.inoBuyaddress" default="Ino Buyaddress" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoBuyaddress','errors')}">
- <input type="text" maxlength="50" id="inoBuyaddress" name="inoBuyaddress" value="${fieldValue(bean:inovice,field:'inoBuyaddress')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="inoCargoid"><g:message code="inovice.inoCargoid" default="Ino Cargoid" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargoid','errors')}">
- <input type="text" maxlength="16" id="inoCargoid" name="inoCargoid" value="${fieldValue(bean:inovice,field:'inoCargoid')}"/>
- </td>
- <td valign="top" class="name">
- <label for="inoCargoname"><g:message code="inovice.inoCargoname" default="Ino Cargoname" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargoname','errors')}">
- <input type="text" maxlength="20" id="inoCargoname" name="inoCargoname" value="${fieldValue(bean:inovice,field:'inoCargoname')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="inoCargostandard"><g:message code="inovice.inoCargostandard" default="Ino Cargostandard" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargostandard','errors')}">
- <input type="text" maxlength="20" id="inoCargostandard" name="inoCargostandard" value="${fieldValue(bean:inovice,field:'inoCargostandard')}"/>
- </td>
- <td valign="top" class="name">
- <label for="inoCargounit"><g:message code="inovice.inoCargounit" default="Ino Cargounit" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargounit','errors')}">
- <input type="text" maxlength="20" id="inoCargounit" name="inoCargounit" value="${fieldValue(bean:inovice,field:'inoCargounit')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="inoCargonumber"><g:message code="inovice.inoCargonumber" default="Ino Cargonumber" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargonumber','errors')}">
- <input type="text" id="inoCargonumber" name="inoCargonumber" value="${fieldValue(bean:inovice,field:'inoCargonumber')}" />
- </td>
- <td valign="top" class="name">
- <label for="inoCargoprice"><g:message code="inovice.inoCargoprice" default="Ino Cargoprice" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCargoprice','errors')}">
- <input type="text" id="inoCargoprice" name="inoCargoprice" value="${fieldValue(bean:inovice,field:'inoCargoprice')}" />
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="inoSellman"><g:message code="inovice.inoSellman" default="Ino Sellman" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoSellman','errors')}">
- <input type="text" maxlength="10" id="inoSellman" name="inoSellman" value="${fieldValue(bean:inovice,field:'inoSellman')}"/>
- </td>
- <td valign="top" class="name">
- <label for="inoSellcompany"><g:message code="inovice.inoSellcompany" default="Ino Sellcompany" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoSellcompany','errors')}">
- <input type="text" maxlength="25" id="inoSellcompany" name="inoSellcompany" value="${fieldValue(bean:inovice,field:'inoSellcompany')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="inoSelltel"><g:message code="inovice.inoSelltel" default="Ino Selltel" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoSelltel','errors')}">
- <input type="text" maxlength="20" id="inoSelltel" name="inoSelltel" value="${fieldValue(bean:inovice,field:'inoSelltel')}"/>
- </td>
- <td valign="top" class="name">
- <label for="inoSellAddress"><g:message code="inovice.inoSellAddress" default="Ino Sell Address" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoSellAddress','errors')}">
- <input type="text" maxlength="50" id="inoSellAddress" name="inoSellAddress" value="${fieldValue(bean:inovice,field:'inoSellAddress')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="inoRate"><g:message code="inovice.inoRate" default="Ino Rate" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoRate','errors')}">
- <input type="text" id="inoRate" name="inoRate" value="${fieldValue(bean:inovice,field:'inoRate')}" />
- </td>
- <td valign="top" class="name" rowspan="3">
- <label for="inoMemo"><g:message code="inovice.inoMemo" default="Ino Memo" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoMemo','errors')}" rowspan="3">
- <textarea rows="5" cols="40" name="inoMemo">${inovice?.inoMemo?.encodeAsHTML()}</textarea>
- </td>
- </tr>
- <tr class="prop">
- <td valign="top" class="name">
- <label for="inoRatebefore"><g:message code="inovice.inoRatebefore" default="Ino Ratebefore" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoRatebefore','errors')}">
- <input type="text" id="inoRatebefore" name="inoRatebefore" value="${fieldValue(bean:inovice,field:'inoRatebefore')}" />
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="inoRateafte"><g:message code="inovice.inoRateafte" default="Ino Rateafte" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoRateafte','errors')}">
- <input type="text" id="inoRateafte" name="inoRateafte" value="${fieldValue(bean:inovice,field:'inoRateafte')}" />
- </td>
- </tr>
-
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="inoCreatetime"><g:message code="inovice.inoCreatetime" default="Ino Createtime" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCreatetime','errors')}">
- ${inovice?.inoCreatetime}
- </td>
- <td valign="top" class="name">
- <label for="inoCreater"><g:message code="inovice.inoCreater" default="Ino Creater" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoCreater','errors')}">
- ${fieldValue(bean:inovice,field:'inoCreater')}
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="inoLastchange"><g:message code="inovice.inoLastchange" default="Ino Lastchange" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoLastchange','errors')}">
- ${inovice?.inoLastchange}
- </td>
-
- <td valign="top" class="name">
- <label for="inoLastchanger"><g:message code="inovice.inoLastchanger" default="Ino Lastchanger" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:inovice,field:'inoLastchanger','errors')}">
- ${fieldValue(bean:inovice,field:'inoLastchanger')}
- </td>
- </tr>
-
- </tbody>
- </table>
- </div>
- <div class="buttons">
- <input type="hidden" name="_inoBuyname" value="${params._inoBuyname}" />
- <input type="hidden" name="_inoBuycompany" value="${params._inoBuycompany}" />
- <input type="hidden" name="_inoCargoname" value="${params._inoCargoname}" />
- <input type="hidden" name="_inoLastchangefrom" value="${params._inoLastchangefrom}" />
- <input type="hidden" name="_inoLastchangeto" value="${params._inoLastchangeto}" />
- <input type="hidden" name="_inoDel" value="${params._inoDel}" />
- <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>