edit.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:9k
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title><g:message code="rtu.edit" default="Edit Rtu" /></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="rtuInstance.list" default="Rtu List" /></g:link></span>
- <span class="menuButton"><g:link class="create" action="create"><g:message code="rtuInstance.new" default="New Rtu" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="rtu.edit" default="Edit Rtu" /></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="${rtu}">
- <div class="errors">
- <g:renderErrors bean="${rtu}" as="list" />
- </div>
- </g:hasErrors>
- <g:form method="post" >
- <input type="hidden" name="id" value="${rtu?.id}" />
- <div class="dialog">
- <table>
- <tbody>
- <tr class="prop">
- <td valign="top" class="name">
- <label for="rtu_nb"><g:message code="rtu.rtu_nb" default="Rtunb" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:rtu,field:'rtu_nb','errors')}">
- <input type="text" id="rtu_nb" name="rtu_nb" value="${fieldValue(bean:rtu,field:'rtu_nb')}" />
- </td>
- <td valign="top" class="name">
- <label for="rtu_name"><g:message code="rtu.rtu_name" default="Rtuname" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:rtu,field:'rtu_name','errors')}">
- <input type="text" id="rtu_name" name="rtu_name" value="${fieldValue(bean:rtu,field:'rtu_name')}"/>
- </td>
- </tr>
- <tr class="prop">
- <td valign="top" class="name">
- <label for="rtu_type"><g:message code="rtu.rtu_type" default="rtu_type" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:rtu,field:'rtu_type','errors')}">
- <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('RtuType'))}" name="rtu_type.id" value="${rtu?.rtu_type?.id}" noSelection="['null':'']"></g:select>
- </td>
- <td valign="top" class="name">
- <label for="line_nb"><g:message code="rtu.line_nb" default="Linenb" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:rtu,field:'line_nb','errors')}">
- <input type="text" id="line_nb" name="line_nb" value="${fieldValue(bean:rtu,field:'line_nb')}" />
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="password_type"><g:message code="rtu.password_type" default="Passwordtype" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:rtu,field:'password_type','errors')}">
- <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('PswdType'))}" name="password_type.id" value="${rtu?.password_type?.id}" noSelection="['null':'']"></g:select>
- </td>
- <td valign="top" class="name">
- <label for="password"><g:message code="rtu.password" default="Password" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:rtu,field:'password','errors')}">
- <input type="text" id="password" name="password" value="${fieldValue(bean:rtu,field:'password')}"/>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="phone_nb"><g:message code="rtu.phone_nb" default="Phonenb" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:rtu,field:'phone_nb','errors')}">
- <input type="text" id="phone_nb" name="phone_nb" value="${fieldValue(bean:rtu,field:'phone_nb')}"/>
- </td>
- <td valign="top" class="name">
- <label for="rtuoverride"><g:message code="rtu.rtuoverride" default="Rtuoverride" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:rtu,field:'rtuoverride','errors')}">
- <g:checkBox name='rtuoverride' value="${rtu?.rtuoverride}" ></g:checkBox>
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="rtusync"><g:message code="rtu.rtusync" default="Rtusync" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:rtu,field:'rtusync','errors')}">
- <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('SyncType'))}" name="rtusync.id" value="${rtu?.rtusync?.id}" noSelection="['null':'']"></g:select>
- </td>
- <td valign="top" class="name">
- <label for="send_block_time"><g:message code="rtu.send_block_time" default="Sendblocktime" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:rtu,field:'send_block_time','errors')}">
- <input type="text" id="send_block_time" name="send_block_time" value="${fieldValue(bean:rtu,field:'send_block_time')}" />
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="station_nb"><g:message code="rtu.station_nb" default="Stationnb" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:rtu,field:'station_nb','errors')}">
- <input type="text" id="station_nb" name="station_nb" value="${fieldValue(bean:rtu,field:'station_nb')}"/>
- </td>
- <td valign="top" class="name">
- <label for="stay_in_db"><g:message code="rtu.stay_in_db" default="Stayindb" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:rtu,field:'stay_in_db','errors')}">
- <input type="text" id="stay_in_db" name="stay_in_db" value="${fieldValue(bean:rtu,field:'stay_in_db')}" />
- </td>
- </tr>
-
- <tr class="prop">
- <td valign="top" class="name">
- <label for="sync_window"><g:message code="rtu.sync_window" default="Syncwindow" />:</label>
- </td>
- <td valign="top" class="value ${hasErrors(bean:rtu,field:'sync_window','errors')}">
- <input type="text" id="sync_window" name="sync_window" value="${fieldValue(bean:rtu,field:'sync_window')}" />
- </td>
- </tr>
-
- </tbody>
- </table>
- </div>
- <div class="buttons">
- <span class="button"><g:actionSubmit class="save" action="Update" value="${message(code:'update', 'default':'Update')}" /></span>
- <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>
- </div>
- </g:form>
- </div>
- </body>
- </html>