2 ~ Licensed to the Apache Software Foundation (ASF) under one
3 ~ or more contributor license agreements. See the NOTICE file
4 ~ distributed with this work for additional information
5 ~ regarding copyright ownership. The ASF licenses this file
6 ~ to you under the Apache License, Version 2.0 (the
7 ~ "License"); you may not use this file except in compliance
8 ~ with the License. You may obtain a copy of the License at
10 ~ http://www.apache.org/licenses/LICENSE-2.0
12 ~ Unless required by applicable law or agreed to in writing,
13 ~ software distributed under the License is distributed on an
14 ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 ~ KIND, either express or implied. See the License for the
16 ~ specific language governing permissions and limitations
20 <%@ page contentType="text/html; charset=UTF-8" %>
21 <%@ taglib prefix="s" uri="/struts-tags" %>
22 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
23 <%@ taglib prefix="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
27 <title>Admin: Edit Remote Repository</title>
29 <script type="text/javascript" src="<c:url value='/js/jquery-1.6.1.min.js'/>"></script>
34 <h1>Admin: Edit Remote Repository</h1>
38 <div id="contentArea">
41 <s:form method="post" action="editRemoteRepository!commit" namespace="/admin" validate="false">
42 <s:hidden name="repository.id"/>
43 <%@ include file="/WEB-INF/jsp/admin/include/remoteRepositoryForm.jspf" %>
44 <s:submit value="Update Repository"/>
46 <redback:ifAuthorized permission="archiva-run-indexer">
47 <form id="downloadRemoteForm" name="downloadRemoteForm">
48 <input type="hidden" value="${repoid}" id="repoid"/>
49 Now: <input type="checkbox" name="now"/><br/>
50 Full download: <input type="checkbox" name="fullDownload" /><br/>
51 <input type="button" onclick="downloadRemote();" value="Download Remote Index" />
54 </redback:ifAuthorized>
59 <script type="text/javascript">
60 function downloadRemote() {
62 url: "${pageContext.request.contextPath}/restServices/archivaServices/repositoriesService/scheduleDownloadRemoteIndex",
63 data: "repositoryId="+document.getElementById("downloadRemoteForm").repoid.value+"&now="+document.getElementById("downloadRemoteForm").now.checked+"&fullDownload="+document.getElementById("downloadRemoteForm").fullDownload.checked ,
70 document.getElementById("editRemoteRepository_repository_name").focus();