create.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="line.create" default="Create Line" /></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="line.list" default="Line List" /></g:link></span>
  11.         </div>
  12.         <div class="body">
  13.             <h1><g:message code="line.create" default="Create Line" /></h1>
  14.             <g:if test="${flash.message}">
  15.             <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
  16.             </g:if>
  17.             <g:hasErrors bean="${lineInstance}">
  18.             <div class="errors">
  19.                 <g:renderErrors bean="${lineInstance}" as="list" />
  20.             </div>
  21.             </g:hasErrors>
  22.             <g:form action="save" method="post" >
  23.                 <div class="dialog">
  24.                     <table>
  25.                         <tbody>
  26.                             <tr class="prop">
  27.                                 <td valign="top" class="name">
  28.                                     <label for="line_nb"><g:message code="line.line_nb" default="Linenb" />:</label>
  29.                                 </td>
  30.                                 <td valign="top" class="value ${hasErrors(bean:line,field:'line_nb','errors')}">
  31.                                     <input type="text" id="line_nb" name="line_nb" value="${fieldValue(bean:line,field:'line_nb')}" />
  32.                                 </td>
  33.                                 <td valign="top" class="name">
  34.                                     <label for="line_name"><g:message code="line.line_name" default="Linename" />:</label>
  35.                                 </td>
  36.                                 <td valign="top" class="value ${hasErrors(bean:line,field:'line_name','errors')}">
  37.                                     <input type="text" id="line_name" name="line_name" value="${fieldValue(bean:line,field:'line_name')}"/>
  38.                                 </td>
  39.                             </tr>
  40.                         
  41.                             <tr class="prop">
  42.                                 <td valign="top" class="name">
  43.                                     <label for="com_nb"><g:message code="line.com_nb" default="Comnb" />:</label>
  44.                                 </td>
  45.                                 <td valign="top" class="value ${hasErrors(bean:line,field:'com_nb','errors')}">
  46.                                     <input type="text" id="com_nb" name="com_nb" value="${fieldValue(bean:line,field:'com_nb')}" />
  47.                                 </td>
  48.                                 <td valign="top" class="name">
  49.                                     <label for="baudrate"><g:message code="line.baudrate" default="Baudrate" />:</label>
  50.                                 </td>
  51.                                 <td valign="top" class="value ${hasErrors(bean:line,field:'baudrate','errors')}">
  52.                                     <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('BvType'))}" name="baudrate.id" value="${rtu?.baudrate?.id}" ></g:select>
  53.                                 </td>
  54.                             </tr> 
  55.                         
  56.                             <tr class="prop">
  57.                                 <td valign="top" class="name">
  58.                                     <label for="halfDuplex"><g:message code="line.halfDuplex" default="Half Duplex" />:</label>
  59.                                 </td>
  60.                                 <td valign="top" class="value ${hasErrors(bean:line,field:'halfDuplex','errors')}">
  61.                                     <g:checkBox name='halfDuplex' value="${line?.halfDuplex}" ></g:checkBox>
  62.                                 </td>
  63.                                 <td valign="top" class="name">
  64.                                     <label for="initString"><g:message code="line.initString" default="Init String" />:</label>
  65.                                 </td>
  66.                                 <td valign="top" class="value ${hasErrors(bean:line,field:'initString','errors')}">
  67.                                     <input type="text" id="initString" name="initString" value="${fieldValue(bean:line,field:'initString')}"/>
  68.                                 </td>
  69.                             </tr>
  70.                         
  71.                             <tr class="prop">
  72.                                 <td valign="top" class="name">
  73.                                     <label for="line_type"><g:message code="line.line_type" default="Linetype" />:</label>
  74.                                 </td>
  75.                                 <td valign="top" class="value ${hasErrors(bean:line,field:'line_type','errors')}">
  76.                                     <g:checkBox name='line_type' value="${line?.line_type}" ></g:checkBox>
  77.                                 </td>
  78.                                 <td valign="top" class="name">
  79.                                     <label for="max_repeats"><g:message code="line.max_repeats" default="Maxrepeats" />:</label>
  80.                                 </td>
  81.                                 <td valign="top" class="value ${hasErrors(bean:line,field:'max_repeats','errors')}">
  82.                                     <input type="text" id="max_repeats" name="max_repeats" value="${fieldValue(bean:line,field:'max_repeats')}" />
  83.                                 </td>
  84.                             </tr>
  85.                         
  86.                             <tr class="prop">
  87.                                 <td valign="top" class="name">
  88.                                     <label for="timeBetweenDiff"><g:message code="line.timeBetweenDiff" default="Time Between Diff" />:</label>
  89.                                 </td>
  90.                                 <td valign="top" class="value ${hasErrors(bean:line,field:'timeBetweenDiff','errors')}">
  91.                                     <input type="text" id="timeBetweenDiff" name="timeBetweenDiff" value="${fieldValue(bean:line,field:'timeBetweenDiff')}" />
  92.                                 </td>
  93.                                 <td valign="top" class="name">
  94.                                     <label for="timeBetweenSame"><g:message code="line.timeBetweenSame" default="Time Between Same" />:</label>
  95.                                 </td>
  96.                                 <td valign="top" class="value ${hasErrors(bean:line,field:'timeBetweenSame','errors')}">
  97.                                     <input type="text" id="timeBetweenSame" name="timeBetweenSame" value="${fieldValue(bean:line,field:'timeBetweenSame')}" />
  98.                                 </td>
  99.                             </tr>
  100.                         
  101.                             <tr class="prop">
  102.                                 <td valign="top" class="name">
  103.                                     <label for="toneDial"><g:message code="line.toneDial" default="Tone Dial" />:</label>
  104.                                 </td>
  105.                                 <td valign="top" class="value ${hasErrors(bean:line,field:'toneDial','errors')}">
  106.                                     <g:checkBox name='toneDial' value="${line?.toneDial}" ></g:checkBox>
  107.                                 </td>
  108.                             </tr> 
  109.                         
  110.                         </tbody>
  111.                     </table>
  112.                 </div>
  113.                 <div class="buttons">
  114.                     <span class="button"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></span>
  115.                 </div>
  116.             </g:form>
  117.         </div>
  118.     </body>
  119. </html>