create.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:7k
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title><g:message code="quotation.create" default="Create 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>
- </div>
- <div class="body">
- <h1><g:message code="quotation.create" default="Create 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 action="save" method="post" >
- <div class="dialog">
- <table>
- <tbody>
-
- <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="quoType"><g:message code="quotation.quoType" default="Quo Type" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:quotation,field:'quoType','errors')}">
- <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('ProductType'))}" name="quoType.id" value="${quotation?.quoType?.id}" ></g:select>
- </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"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></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>