blob: 198502ecb9fd0ca90698ca15ec9beda6a1e96b56 [file] [log] [blame]
<?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: user.jx 164231 2005-04-22 12:56:59Z jwkaltz $ -->
<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 Range Profile</i18n:text></h1>
<jx:set var="ipRange" value="${usecase.getParameter('ipRange')}"/>
<table class="lenya-table-noborder">
<tr>
<td colspan="2">
<jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/>
</td>
</tr>
<tr>
<td class="lenya-entry-caption"><i18n:text>IP Range ID</i18n:text>:</td>
<td><jx:out value="${usecase.getParameter('ipRangeId')}"/></td>
</tr>
<tr>
<td class="lenya-entry-caption"><i18n:text>Name</i18n:text>:</td>
<td><jx:out value="${ipRange.getName()}"/></td>
</tr>
<tr>
<td valign="top" class="lenya-entry-caption"><i18n:text>Description</i18n:text>:</td>
<td>
<jx:out value="${ipRange.getDescription()}"/>
</td>
</tr>
<tr>
<td valign="top" class="lenya-entry-caption"><i18n:text>Network Address</i18n:text>:</td>
<td>
<jx:out value="${ipRange.getNetworkAddress().getHostAddress()}"/>
</td>
</tr>
<tr>
<td valign="top" class="lenya-entry-caption"><i18n:text>Subnet Mask</i18n:text>:</td>
<td>
<jx:out value="${ipRange.getSubnetMask().getHostAddress()}"/>
</td>
</tr>
<tr>
<td/>
<td>
<form id="form-iprange_edit_profile">
<input type="hidden" name="lenya.usecase" value="admin.ipRangeProfile"/>
<input type="hidden" name="ipRangeId" value="${ipRange.getId()}"/>
<input i18n:attr="value" type="submit" value="Edit Profile" name="input-iprange_edit_profile"/>
</form>
</td>
</tr>
<tr>
<td class="lenya-entry-caption"><i18n:text>Groups</i18n:text>:</td>
<td>
<jx:set var="groups" value="${ipRange.getGroups()}"/>
<jx:if test="${groups.size() == 0}"><i18n:text>No groups assigned</i18n:text></jx:if>
<jx:forEach var="group" items="${groups}">
<a href="${usecase.getSourceURL()}?lenya.usecase=admin.group&amp;groupId=${group.getId()}"><jx:out value="${group.getId()}"/></a>
</jx:forEach>
</td>
</tr>
<tr>
<td/>
<td>
<form id="form-iprange_edit_group_affiliation">
<input type="hidden" name="lenya.usecase" value="admin.ipRangeGroups"/>
<input type="hidden" name="ipRangeId" value="${ipRange.getId()}"/>
<input i18n:attr="value" type="submit" value="Edit Group Affiliation" name="input-iprange_edit_group_affiliation"/>
</form>
</td>
</tr>
<tr>
<td/>
<td>
<form id="form-iprange_cancel">
<input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
<input type="hidden" name="lenya.usecase" value="${request.getParameter('lenya.usecase')}"/>
<input i18n:attr="value" type="submit" name="cancel" value="Cancel"/>
</form>
</td>
</tr>
</table>
</div>
</page:body>
</page:page>