blob: 646e15b5435a58f56453ec495e2c46db60bfb917 [file] [log] [blame]
<%--
~ 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.
--%>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<s:i18n name="localization.Continuum">
<html>
<head>
<title><s:text name="add.m2.project.page.title"/></title>
</head>
<body>
<div class="app">
<div id="axial" class="h3">
<h3><s:text name="add.m2.project.section.title"/></h3>
<div class="axial">
<s:form method="post" action="addMavenTwoProject.action" name="addMavenTwoProject" enctype="multipart/form-data">
<c:if test="${!empty actionErrors || !empty errorMessages}">
<div class="errormessage">
<s:iterator value="actionErrors">
<p><s:property/></p>
</s:iterator>
<c:forEach items="${errorMessages}" var="errorMessage">
<p><c:out value="${errorMessage}"/></p>
</c:forEach>
</div>
</c:if>
<table>
<tbody>
<s:textfield label="%{getText('add.m2.project.m2PomUrl.label')}" requiredLabel="true" name="m2PomUrl" size="100">
<s:param name="after">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><s:text name="add.m2.project.m2PomUrl.username.label"/>: </td>
<td><input type="text" name="scmUsername" size="20" id="addMavenTwoProject_scmUsername"/></td>
</tr>
<tr>
<td><s:text name="add.m2.project.m2PomUrl.password.label"/>: </td>
<td><input type="password" name="scmPassword" size="20" id="addMavenTwoProject_scmPassword"/></td>
</tr>
</tbody>
<tr>
<td></td>
<td><s:checkbox label="%{getText('projectEdit.project.scmUseCache.label')}" name="scmUseCache"/></td>
</tr>
</table>
<p><s:text name="add.m2.project.m2PomUrl.message"/></p>
</s:param>
</s:textfield>
<s:label>
<s:param name="after"><strong><s:text name="or"/></strong></s:param>
</s:label>
<s:file label="%{getText('add.m2.project.m2PomFile.label')}" name="m2PomFile" size="100">
<s:param name="after"><p><s:text name="add.m2.project.m2PomFile.message"/></p></s:param>
</s:file>
<c:choose>
<c:when test="${disableGroupSelection == true}">
<s:hidden name="selectedProjectGroup"/>
<s:hidden name="disableGroupSelection"/>
<s:textfield label="%{getText('add.m2.project.projectGroup')}" name="projectGroupName" disabled="true" size="100"/>
</c:when>
<c:otherwise>
<s:select label="%{getText('add.m2.project.projectGroup')}" name="selectedProjectGroup"
list="projectGroups" listKey="id" listValue="name"/>
</c:otherwise>
</c:choose>
<s:label>
<s:param name="after">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><input name="checkoutOption" type="radio" value="checkoutInSeparateDirectories" checked /></td>
<td><s:text name="add.m2.project.checkoutInSeparateDirectories"/></td>
</tr>
<tr>
<td><input name="checkoutOption" type="radio" value="checkoutInSingleDirectory"/></td>
<td><s:text name="add.m2.project.checkoutInSingleDirectory"/></td>
</tr>
<tr>
<td><input name="checkoutOption" type="radio" value="nonRecursiveProject"/></td>
<td><s:text name="add.m2.project.nonRecursiveProject"/></td>
</tr>
</tbody>
</table>
</s:param>
</s:label>
<s:select label="%{getText('add.m2.project.buildDefinitionTemplate')}" name="buildDefinitionTemplateId"
list="buildDefinitionTemplates" listKey="id" listValue="name" headerKey="-1"
headerValue="%{getText('add.m2.project.defaultBuildDefinition')}"/>
</tbody>
</table>
<div class="functnbar3">
<s:submit value="%{getText('add')}" theme="simple"/>
<input type="button" name="Cancel" value="<s:text name='cancel'/>" onclick="history.back();"/>
</div>
</s:form>
</div>
</div>
</div>
</body>
</html>
</s:i18n>