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