list.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:3k
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title><g:message code="line.list" default="Line List" /></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="create" action="create"><g:message code="line.new" default="New Line" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="line.list" default="Line List" /></h1>
- <g:if test="${flash.message}">
- <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
- </g:if>
- <div class="list">
- <table>
- <thead>
- <tr>
-
- <g:sortableColumn property="id" title="Id" titleKey="line.id" />
-
- <g:sortableColumn property="baudrate" title="Baudrate" titleKey="line.baudrate" />
-
- <g:sortableColumn property="com_nb" title="Comnb" titleKey="line.com_nb" />
-
- <g:sortableColumn property="halfDuplex" title="Half Duplex" titleKey="line.halfDuplex" />
-
- <g:sortableColumn property="initString" title="Init String" titleKey="line.initString" />
-
- <g:sortableColumn property="line_name" title="Linename" titleKey="line.line_name" />
-
- </tr>
- </thead>
- <tbody>
- <g:each in="${lineInstanceList}" status="i" var="lineInstance">
- <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
-
- <td><g:link action="show" id="${lineInstance.id}">${lineInstance.id?.encodeAsHTML()}</g:link></td>
-
- <td>${lineInstance.baudrate?.encodeAsHTML()}</td>
-
- <td>${lineInstance.com_nb?.encodeAsHTML()}</td>
-
- <td>${lineInstance.halfDuplex?.encodeAsHTML()}</td>
-
- <td>${lineInstance.initString?.encodeAsHTML()}</td>
-
- <td>${lineInstance.line_name?.encodeAsHTML()}</td>
-
- </tr>
- </g:each>
- </tbody>
- </table>
- </div>
- <div class="paginateButtons">
- <g:paginate total="${Line.count()}" />
- </div>
- </div>
- </body>
- </html>