edit.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:9k
源码类别:

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="rtu.edit" default="Edit Rtu" /></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="rtuInstance.list" default="Rtu List" /></g:link></span>
  11.             <span class="menuButton"><g:link class="create" action="create"><g:message code="rtuInstance.new" default="New Rtu" /></g:link></span>
  12.         </div>
  13.         <div class="body">
  14.             <h1><g:message code="rtu.edit" default="Edit Rtu" /></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="${rtu}">
  19.             <div class="errors">
  20.                 <g:renderErrors bean="${rtu}" as="list" />
  21.             </div>
  22.             </g:hasErrors>
  23.             <g:form method="post" >
  24.                 <input type="hidden" name="id" value="${rtu?.id}" />
  25.                 <div class="dialog">
  26.                     <table>
  27.                         <tbody>
  28.                             <tr class="prop">
  29.                                 <td valign="top" class="name">
  30.                                     <label for="rtu_nb"><g:message code="rtu.rtu_nb" default="Rtunb" />:</label>
  31.                                 </td>
  32.                                 <td valign="top" class="value ${hasErrors(bean:rtu,field:'rtu_nb','errors')}">
  33.                                     <input type="text" id="rtu_nb" name="rtu_nb" value="${fieldValue(bean:rtu,field:'rtu_nb')}" />
  34.                                 </td>
  35.                                 <td valign="top" class="name">
  36.                                     <label for="rtu_name"><g:message code="rtu.rtu_name" default="Rtuname" />:</label>
  37.                                 </td>
  38.                                 <td valign="top" class="value ${hasErrors(bean:rtu,field:'rtu_name','errors')}">
  39.                                     <input type="text" id="rtu_name" name="rtu_name" value="${fieldValue(bean:rtu,field:'rtu_name')}"/>
  40.                                 </td>
  41.                             </tr>
  42.                             <tr class="prop">
  43.                                 <td valign="top" class="name">
  44.                                     <label for="rtu_type"><g:message code="rtu.rtu_type" default="rtu_type" />:</label>
  45.                                 </td>
  46.                                 <td valign="top" class="value ${hasErrors(bean:rtu,field:'rtu_type','errors')}">
  47.                                      <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('RtuType'))}" name="rtu_type.id" value="${rtu?.rtu_type?.id}" noSelection="['null':'']"></g:select>
  48.                                 </td>
  49.                                 <td valign="top" class="name">
  50.                                     <label for="line_nb"><g:message code="rtu.line_nb" default="Linenb" />:</label>
  51.                                 </td>
  52.                                 <td valign="top" class="value ${hasErrors(bean:rtu,field:'line_nb','errors')}">
  53.                                     <input type="text" id="line_nb" name="line_nb" value="${fieldValue(bean:rtu,field:'line_nb')}" />
  54.                                 </td>
  55.                             </tr>
  56.                         
  57.                             <tr class="prop">
  58.                               <td valign="top" class="name">
  59.                                   <label for="password_type"><g:message code="rtu.password_type" default="Passwordtype" />:</label>
  60.                               </td>
  61.                               <td valign="top" class="value ${hasErrors(bean:rtu,field:'password_type','errors')}">
  62.                                    <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('PswdType'))}" name="password_type.id" value="${rtu?.password_type?.id}" noSelection="['null':'']"></g:select>
  63.                               </td>
  64.                               <td valign="top" class="name">
  65.                                     <label for="password"><g:message code="rtu.password" default="Password" />:</label>
  66.                                 </td>
  67.                                 <td valign="top" class="value ${hasErrors(bean:rtu,field:'password','errors')}">
  68.                                     <input type="text" id="password" name="password" value="${fieldValue(bean:rtu,field:'password')}"/>
  69.                                 </td>
  70.                             </tr>
  71.                         
  72.                             <tr class="prop">
  73.                                 <td valign="top" class="name">
  74.                                     <label for="phone_nb"><g:message code="rtu.phone_nb" default="Phonenb" />:</label>
  75.                                 </td>
  76.                                 <td valign="top" class="value ${hasErrors(bean:rtu,field:'phone_nb','errors')}">
  77.                                     <input type="text" id="phone_nb" name="phone_nb" value="${fieldValue(bean:rtu,field:'phone_nb')}"/>
  78.                                 </td>
  79.                                 <td valign="top" class="name">
  80.                                     <label for="rtuoverride"><g:message code="rtu.rtuoverride" default="Rtuoverride" />:</label>
  81.                                 </td>
  82.                                 <td valign="top" class="value ${hasErrors(bean:rtu,field:'rtuoverride','errors')}">
  83.                                  <g:checkBox name='rtuoverride' value="${rtu?.rtuoverride}" ></g:checkBox>
  84.                                 </td>
  85.                             </tr>
  86.                         
  87.                             <tr class="prop">
  88.                                 <td valign="top" class="name">
  89.                                     <label for="rtusync"><g:message code="rtu.rtusync" default="Rtusync" />:</label>
  90.                                 </td>
  91.                                 <td valign="top" class="value ${hasErrors(bean:rtu,field:'rtusync','errors')}">
  92.                                      <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('SyncType'))}" name="rtusync.id" value="${rtu?.rtusync?.id}" noSelection="['null':'']"></g:select>
  93.                                 </td>
  94.                                 <td valign="top" class="name">
  95.                                     <label for="send_block_time"><g:message code="rtu.send_block_time" default="Sendblocktime" />:</label>
  96.                                 </td>
  97.                                 <td valign="top" class="value ${hasErrors(bean:rtu,field:'send_block_time','errors')}">
  98.                                     <input type="text" id="send_block_time" name="send_block_time" value="${fieldValue(bean:rtu,field:'send_block_time')}" />
  99.                                 </td>
  100.                             </tr>
  101.                         
  102.                             <tr class="prop">
  103.                                 <td valign="top" class="name">
  104.                                     <label for="station_nb"><g:message code="rtu.station_nb" default="Stationnb" />:</label>
  105.                                 </td>
  106.                                 <td valign="top" class="value ${hasErrors(bean:rtu,field:'station_nb','errors')}">
  107.                                     <input type="text" id="station_nb" name="station_nb" value="${fieldValue(bean:rtu,field:'station_nb')}"/>
  108.                                 </td>
  109.                                 <td valign="top" class="name">
  110.                                     <label for="stay_in_db"><g:message code="rtu.stay_in_db" default="Stayindb" />:</label>
  111.                                 </td>
  112.                                 <td valign="top" class="value ${hasErrors(bean:rtu,field:'stay_in_db','errors')}">
  113.                                     <input type="text" id="stay_in_db" name="stay_in_db" value="${fieldValue(bean:rtu,field:'stay_in_db')}" />
  114.                                 </td>
  115.                             </tr>
  116.                         
  117.                             <tr class="prop">
  118.                                 <td valign="top" class="name">
  119.                                     <label for="sync_window"><g:message code="rtu.sync_window" default="Syncwindow" />:</label>
  120.                                 </td>
  121.                                 <td valign="top" class="value ${hasErrors(bean:rtu,field:'sync_window','errors')}">
  122.                                     <input type="text" id="sync_window" name="sync_window" value="${fieldValue(bean:rtu,field:'sync_window')}" />
  123.                                 </td>
  124.                             </tr>
  125.                         
  126.                         </tbody>
  127.                     </table>
  128.                 </div>
  129.                 <div class="buttons">
  130.                     <span class="button"><g:actionSubmit class="save" action="Update" value="${message(code:'update', 'default':'Update')}" /></span>
  131.                     <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>
  132.                 </div>
  133.             </g:form>
  134.         </div>
  135.     </body>
  136. </html>