| <%-- |
| ~ 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 |
| ~ |
| ~ https://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. |
| --%> |
| <html> |
| <head> |
| <meta name="layout" content="${layoutUi}"/> |
| <s2ui:title messageCode='spring.security.ui.requestmap.search'/> |
| </head> |
| <body> |
| <div class="body"> |
| <s2ui:formContainer type='search' beanType='requestmap' height='350'> |
| <s2ui:searchForm colspan='2'> |
| <tr> |
| <td><g:message code='requestmap.url.label' default='URL'/>:</td> |
| <td><g:textField name='url' size='50' maxlength='255' autocomplete='off' value='${url}'/></td> |
| </tr> |
| <tr> |
| <td><g:message code='requestmap.configAttribute.label' default='Config Attribute'/>:</td> |
| <td><g:textField name='configAttribute' size='50' maxlength='255' autocomplete='off' value='${configAttribute}'/></td> |
| </tr> |
| <g:if test='${hasHttpMethod}'> |
| <tr> |
| <td><g:message code='requestmap.httpMethod.label' default='HttpMethod'/>:</td> |
| <td> |
| <g:select name='httpMethod' from='${org.springframework.http.HttpMethod.values()}' value='${httpMethod}' noSelection="['null': 'All']"/> |
| </td> |
| </tr> |
| </g:if> |
| </s2ui:searchForm> |
| </s2ui:formContainer> |
| <g:if test='${searched}'> |
| <div class="list"> |
| <table> |
| <thead> |
| <tr> |
| <s2ui:sortableColumn property='url' titleDefault='URL'/> |
| <s2ui:sortableColumn property='configAttribute' titleDefault='Config Attribute'/> |
| <g:if test='${hasHttpMethod}'><s2ui:sortableColumn property='httpMethod' titleDefault='HttpMethod'/></g:if> |
| </tr> |
| </thead> |
| <tbody> |
| <g:each in='${results}' status='i' var='requestmap'> |
| <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
| <td><g:link action='edit' id='${requestmap.id}'>${uiPropertiesStrategy.getProperty(requestmap, 'url')}</g:link></td> |
| <td>${uiPropertiesStrategy.getProperty(requestmap, 'configAttribute')}</td> |
| <g:if test='${hasHttpMethod}'><td>${uiPropertiesStrategy.getProperty(requestmap, 'httpMethod')}</td></g:if> |
| </tr> |
| </g:each> |
| </tbody> |
| </table> |
| </div> |
| <s2ui:paginate total='${totalCount}'/> |
| </g:if> |
| </div> |
| <s2ui:ajaxSearch paramName='url'/> |
| <s2ui:ajaxSearch paramName='configAttribute' focus='false'/> |
| </body> |
| </html> |