| <?xml version="1.0" encoding="UTF-8"?> |
| <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>Add IP Range</i18n:text></h1> |
| |
| <form id="form-add_ip_range"> |
| <input type="hidden" name="lenya.continuation" value="${continuation.id}"/> |
| <input type="hidden" name="lenya.usecase" value="${request.getParameter('lenya.usecase')}"/> |
| |
| <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><input type="text" name="ipRangeId" class="lenya-form-entry" value="${request.getParameter('ipRangeId')}"/></td> |
| </tr> |
| |
| <tr> |
| <td class="lenya-entry-caption"><i18n:text>Name</i18n:text></td> |
| <td><input type="text" name="name" class="lenya-form-entry" value="${request.getParameter('name')}"/></td> |
| </tr> |
| <tr> |
| <td valign="top" class="lenya-entry-caption"><i18n:text>Description</i18n:text></td> |
| <td> |
| <textarea name="description" class="lenya-form-entry"> |
| <jx:out value="${request.getParameter('description')}"/> |
| </textarea> |
| </td> |
| </tr> |
| |
| <tr> |
| <td class="lenya-entry-caption"><i18n:text>Network Address</i18n:text></td> |
| <td> |
| <jx:forEach var="part" items="${usecase.getParameter('partNumbers')}"> |
| <jx:choose> |
| <jx:when test="${usecase.getParameter('networkAddress-' + part).isValid()}"> |
| <input type="text" name="networkAddress-${part}" size="3" maxlength="3" |
| value="${usecase.getParameter('networkAddress-' + part).getValue()}" |
| style="text-align: right"/> |
| </jx:when> |
| <jx:otherwise> |
| <input type="text" name="networkAddress-${part}" size="3" maxlength="3" |
| value="${usecase.getParameter('networkAddress-' + part).getValue()}" |
| style="background-color: #FF9999; text-align: right;"/> |
| </jx:otherwise> |
| </jx:choose> |
| </jx:forEach> |
| </td> |
| </tr> |
| <tr> |
| <td class="lenya-entry-caption"><i18n:text>Subnet Mask</i18n:text></td> |
| <td> |
| <jx:forEach var="part" items="${usecase.getParameter('partNumbers')}"> |
| <jx:choose> |
| <jx:when test="${usecase.getParameter('subnetMask-' + part).isValid()}"> |
| <input type="text" name="subnetMask-${part}" size="3" maxlength="3" |
| value="${usecase.getParameter('subnetMask-' + part).getValue()}" |
| style="text-align: right"/> |
| </jx:when> |
| <jx:otherwise> |
| <input type="text" name="subnetMask-${part}" size="3" maxlength="3" |
| value="${usecase.getParameter('subnetMask-' + part).getValue()}" |
| style="background-color: #FF9999; text-align: right;"/> |
| </jx:otherwise> |
| </jx:choose> |
| </jx:forEach> |
| </td> |
| </tr> |
| |
| <tr> |
| <td/> |
| <td> |
| <input i18n:attr="value" type="submit" name="submit" value="Add"/> |
| <input i18n:attr="value" type="submit" name="cancel" value="Cancel"/> |
| </td> |
| </tr> |
| </table> |
| </form> |
| </div> |
| </page:body> |
| </page:page> |