| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <!-- $Id$ --> |
| |
| <page:page |
| xmlns:jx="http://apache.org/cocoon/templates/jx/1.0" |
| xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" |
| xmlns="http://www.w3.org/1999/xhtml" |
| xmlns:i18n="http://apache.org/cocoon/i18n/2.1" |
| > |
| |
| <page:body> |
| <jx:import uri="fallback://lenya/modules/usecase/templates/tabs.jx"/> |
| <div id="contentblock1" class="lenya-tab"> |
| |
| <h1><i18n:text>IP Ranges</i18n:text></h1> |
| |
| <table class="lenya-table-noborder"> |
| <tr> |
| <td colspan="2"> |
| <jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/> |
| </td> |
| </tr> |
| </table> |
| |
| <div style="margin-bottom: 10px"> |
| <form method="GET" id="form-add_iprange"> |
| <input type="hidden" name="lenya.usecase" value="admin.addIPRange"/> |
| <input i18n:attr="value" type="submit" value="Add IP Range" name="input-add_iprange"/> |
| </form> |
| </div> |
| |
| <table cellspacing="0" class="lenya-table-list-noborder"> |
| <tr> |
| <th><i18n:text>IP Range ID</i18n:text></th> |
| <th><i18n:text>Name</i18n:text></th> |
| <th><i18n:text>Groups</i18n:text></th> |
| <th><i18n:text>Actions</i18n:text></th> |
| </tr> |
| <jx:forEach var="ipRange" items="${usecase.getParameter('ipRanges')}"> |
| <tr> |
| <td style="vertical-align: middle"> |
| <a href="${usecase.getSourceURL()}?lenya.usecase=admin.ipRange&ipRangeId=${ipRange.getId()}"><jx:out value="${ipRange.getId()}"/></a> |
| </td> |
| <td style="vertical-align: middle"> |
| <jx:out value="${ipRange.getName()}"/> |
| </td> |
| <td style="vertical-align: middle"> |
| <jx:if test="${ipRange.getGroups().size() == 0}"><span style="color: #999999">--</span></jx:if> |
| <jx:forEach var="group" items="${ipRange.getGroups()}"> |
| <a href="${usecase.getSourceURL()}?lenya.usecase=admin.groupProfile&groupId=${group.getId()}"><jx:out value="${group.getId()}"/></a> |
| </jx:forEach> |
| </td> |
| <td style="vertical-align: middle"> |
| <form method="GET" id="form-delete_iprange"> |
| <input type="hidden" name="lenya.usecase" value="admin.deleteIPRange"/> |
| <input name="ipRangeId" type="hidden" value="${ipRange.getId()}"/> |
| <input i18n:attr="value" type="submit" value="Delete" name="input-delete_iprange"/> |
| </form> |
| </td> |
| </tr> |
| </jx:forEach> |
| </table> |
| |
| </div> |
| </page:body> |
| </page:page> |