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