]> source.dussan.org Git - archiva.git/blob
7aa2a818da5dd89982d264175df07b6b93c7c047
[archiva.git] /
1 <%--
2   ~
3   ~ Licensed under the Apache License, Version 2.0 (the "License");
4   ~ you may not use this file except in compliance with the License.
5   ~ You may obtain a copy of the License at
6   ~
7   ~      http://www.apache.org/licenses/LICENSE-2.0
8   ~
9   ~ Unless required by applicable law or agreed to in writing, software
10   ~ distributed under the License is distributed on an "AS IS" BASIS,
11   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12   ~ See the License for the specific language governing permissions and
13   ~ limitations under the License.
14   --%>
15
16 <%@ taglib prefix="s" uri="/struts-tags"%>
17 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
18
19 <html>
20 <s:i18n name="org.apache.archiva.redback.struts2.default">
21 <head>
22   <title><s:text name="operation.list.page.title"/></title>
23 </head>
24
25 <body>
26
27 <%@ include file="/WEB-INF/jsp/redback/include/rbacListNavigation.jsp" %>
28
29 <h2><s:text name="operation.list.section.title"/></h2>
30
31 <%@ include file="/WEB-INF/jsp/redback/include/formValidationResults.jsp" %>
32
33 <s:form action="operations!remove" method="post" theme="simple">
34
35   <table>
36
37     <c:choose>
38       <c:when test="${!empty allOperations}">
39         <thead>
40           <tr>
41             <th>&nbsp;</th>
42             <th><s:text name="name"/></th>
43             <th><s:text name="description"/></th>
44           </tr>
45         </thead>
46         
47         <c:forEach var="operation" items="${allOperations}">
48           <tr>
49             <td>
50               <s:checkbox name="selectedOperations" fieldValue="%{operation.name}" />
51             </td>
52             <td>
53               <s:url id="operationUrl" action="operation-edit">
54                 <s:param name="operationName">${operation.name}</s:param>
55               </s:url>
56               <s:a href="%{operationUrl}"><c:out value="${operation.name}" /></s:a>
57             </td>
58             <td>
59               <c:out value="${operation.description}" />
60             </td>
61           </tr>
62         </c:forEach>
63       </c:when>
64       <c:otherwise>
65         <p><em><s:text name="operation.list.no.operations.available"/></em></p>
66       </c:otherwise>
67     </c:choose>
68     
69     <tr>
70       <td colspan="3">
71         <s:submit value="%{getText('remove.selected.roles')}" />
72       </td>
73     </tr>
74
75   </table>
76   
77 </s:form>
78
79 </body>
80 </s:i18n>
81 </html>