create.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="line.create" default="Create Line" /></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="line.list" default="Line List" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="line.create" default="Create Line" /></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="${lineInstance}">
- <div class="errors">
- <g:renderErrors bean="${lineInstance}" 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="line_nb"><g:message code="line.line_nb" default="Linenb" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:line,field:'line_nb','errors')}">
- <input type="text" id="line_nb" name="line_nb" value="${fieldValue(bean:line,field:'line_nb')}" />
- </td>
- <td valign="top" class="name">
- <label for="line_name"><g:message code="line.line_name" default="Linename" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:line,field:'line_name','errors')}">
- <input type="text" id="line_name" name="line_name" value="${fieldValue(bean:line,field:'line_name')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="com_nb"><g:message code="line.com_nb" default="Comnb" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:line,field:'com_nb','errors')}">
- <input type="text" id="com_nb" name="com_nb" value="${fieldValue(bean:line,field:'com_nb')}" />
- </td>
- <td valign="top" class="name">
- <label for="baudrate"><g:message code="line.baudrate" default="Baudrate" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:line,field:'baudrate','errors')}">
- <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('BvType'))}" name="baudrate.id" value="${rtu?.baudrate?.id}" ></g:select>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="halfDuplex"><g:message code="line.halfDuplex" default="Half Duplex" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:line,field:'halfDuplex','errors')}">
- <g:checkBox name='halfDuplex' value="${line?.halfDuplex}" ></g:checkBox>
- </td>
- <td valign="top" class="name">
- <label for="initString"><g:message code="line.initString" default="Init String" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:line,field:'initString','errors')}">
- <input type="text" id="initString" name="initString" value="${fieldValue(bean:line,field:'initString')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="line_type"><g:message code="line.line_type" default="Linetype" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:line,field:'line_type','errors')}">
- <g:checkBox name='line_type' value="${line?.line_type}" ></g:checkBox>
- </td>
- <td valign="top" class="name">
- <label for="max_repeats"><g:message code="line.max_repeats" default="Maxrepeats" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:line,field:'max_repeats','errors')}">
- <input type="text" id="max_repeats" name="max_repeats" value="${fieldValue(bean:line,field:'max_repeats')}" />
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="timeBetweenDiff"><g:message code="line.timeBetweenDiff" default="Time Between Diff" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:line,field:'timeBetweenDiff','errors')}">
- <input type="text" id="timeBetweenDiff" name="timeBetweenDiff" value="${fieldValue(bean:line,field:'timeBetweenDiff')}" />
- </td>
- <td valign="top" class="name">
- <label for="timeBetweenSame"><g:message code="line.timeBetweenSame" default="Time Between Same" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:line,field:'timeBetweenSame','errors')}">
- <input type="text" id="timeBetweenSame" name="timeBetweenSame" value="${fieldValue(bean:line,field:'timeBetweenSame')}" />
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="toneDial"><g:message code="line.toneDial" default="Tone Dial" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:line,field:'toneDial','errors')}">
- <g:checkBox name='toneDial' value="${line?.toneDial}" ></g:checkBox>
- </td>
- </tr>
-
- </tbody>
- </table>
- </div>
- <div class="buttons">
- <span class="button"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></span>
- </div>
- </g:form>
- </div>
- </body>
- </html>