create.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.create" default="Create 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="rtu.list" default="Rtu List" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="rtu.create" default="Create 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="${rtuInstance}">
- <div class="errors">
- <g:renderErrors bean="${rtuInstance}" as="list" />
- </div>
- </g:hasErrors>
- <g:form action="save" method="post" >
- <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:'type','errors')}">
- <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('RtuType'))}" name="rtu_type.id" value="${rtu?.rtu_type?.id}" ></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')}">
- <g:select optionKey="id" from="${Line.list()}" name="line_nb.id" value="${rtu?.line_nb?.id}" ></g:select>
- </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}" ></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}" ></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"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></span>
- </div>
- </g:form>
- </div>
- </body>
- </html>