blob: 7ffad9f40db796c740e72a8a2a8b44d079ff2e42 [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="/webwork" prefix="ww" %>
<%@ taglib uri="continuum" prefix="c1" %>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<ww:i18n name="localization.Continuum">
<html>
<head>
<title>
<ww:if test="projectType == \"shell\"">
<ww:text name="add.shell.project.page.title"/>
</ww:if>
<ww:else>
<ww:text name="add.ant.project.page.title"/>
</ww:else>
</title>
</head>
<body>
<div class="app">
<div id="axial" class="h3">
<h3>
<ww:if test="projectType == \"shell\"">
<ww:text name="add.shell.project.section.title"/>
</ww:if>
<ww:else>
<ww:text name="add.ant.project.section.title"/>
</ww:else>
</h3>
<div class="axial">
<ww:form method="post" action="addProject" validate="true">
<c:if test="${!empty actionErrors}">
<div class="errormessage">
<c:forEach items="${actionErrors}" var="actionError">
<p><ww:text name="${actionError}"/></p>
</c:forEach>
</div>
</c:if>
<table>
<tbody>
<ww:textfield label="%{getText('projectName.label')}" name="projectName" required="true">
<ww:param name="desc"><p><ww:text name="projectName.message"/></p></ww:param>
</ww:textfield>
<ww:textfield label="%{getText('projectVersion.label')}" name="projectVersion" required="true">
<ww:param name="desc"><p><ww:text name="projectVersion.message"/></p></ww:param>
</ww:textfield>
<ww:textfield label="%{getText('projectScmUrl.label')}" name="projectScmUrl" required="true">
<ww:param name="desc"><p><ww:text name="projectScmUrl.message"/></p></ww:param>
</ww:textfield>
<ww:textfield label="%{getText('projectScmUsername.label')}" name="projectScmUsername">
<ww:param name="desc"><p><ww:text name="projectScmUsername.message"/></p></ww:param>
</ww:textfield>
<ww:password label="%{getText('projectScmPassword.label')}" name="projectScmPassword">
<ww:param name="desc"><p><ww:text name="projectScmPassword.message"/></p></ww:param>
</ww:password>
<ww:textfield label="%{getText('projectScmTag.label')}" name="projectScmTag">
<ww:param name="desc"><p><ww:text name="projectScmTag.message"/></p></ww:param>
</ww:textfield>
<ww:checkbox label="%{getText('projectScmUseCache.label')}" name="projectScmUseCache"/>
<ww:if test="disableGroupSelection == true">
<ww:hidden name="selectedProjectGroup"/>
<ww:hidden name="disableGroupSelection"/>
<ww:textfield label="%{getText('projectGroup.name.label')}" name="projectGroupName" disabled="true"/>
</ww:if>
<ww:else>
<ww:select label="%{getText('projectGroup.name.label')}" name="selectedProjectGroup" list="projectGroups" listKey="id" listValue="name"/>
</ww:else>
<ww:select label="%{getText('add.project.buildDefinitionTemplate')}" name="buildDefinitionTemplateId"
list="buildDefinitionTemplates" listKey="id" listValue="name" headerKey="-1"
headerValue="%{getText('add.project.defaultBuildDefinition')}"/>
</tbody>
</table>
<input type="hidden" name="projectType" value="<ww:property value="projectType"/>">
<div class="functnbar3">
<c1:submitcancel value="%{getText('add')}" cancel="%{getText('cancel')}"/>
</div>
</ww:form>
</div>
</div>
</div>
</body>
</html>
</ww:i18n>