blob: c2243e649dd9d9e1d9b34142f069857123b58706 [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="/struts-tags" prefix="s" %>
<%@ taglib uri="http://www.extremecomponents.org" prefix="ec" %>
<html>
<s:i18n name="localization.Continuum">
<head>
<title><s:text name="projectGroup.edit.page.title"/></title>
</head>
<body>
<div id="axial" class="h3">
<h3><s:text name="projectGroup.edit.section.title"/></h3>
<div class="axial">
<s:form action="saveProjectGroup" method="post" validate="true">
<s:if test="projectInCOQueue">
<div class="label">
<p><s:text name="project.in.checkout.queue.error"/></p>
</div>
</s:if>
<s:if test="hasActionErrors()">
<div class="errormessage">
<s:actionerror/>
</div>
</s:if>
<s:if test="hasActionMessages()">
<div class="warningmessage">
<s:actionmessage/>
</div>
</s:if>
<table>
<s:hidden name="projectGroupId"/>
<s:textfield label="%{getText('projectGroup.name.label')}" name="name" requiredLabel="true" disabled="%{projectInCOQueue}" size="100"/>
<s:textfield label="%{getText('projectGroup.groupId.label')}" disabled="true" name="projectGroup.groupId" size="100"/>
<s:textfield label="%{getText('projectGroup.description.label')}" name="description" disabled="%{projectInCOQueue}" size="100"/>
<s:select label="%{getText('projectGroup.repository.label')}" name="repositoryId" list="repositories"
listKey="id" listValue="name" disabled="%{disabledRepositories}"/>
<s:textfield label="%{getText('projectGroup.url.label')}" name="url" disabled="%{projectInCOQueue}" size="100"/>
</table>
<s:if test="projectList.size() > 0">
<h3><s:text name="projectGroup.edit.section.projects.title"/></h3>
<div class="eXtremeTable">
<table id="projects_table" border="1" cellspacing="2" cellpadding="3" class="tableRegion" width="100%">
<thead>
<tr>
<td class="tableHeader"><s:text name="projectGroup.edit.project.name"/></td>
<td class="tableHeader"><s:text name="projectGroup.edit.move.to.group"/></td>
</tr>
</thead>
<tbody class="tableBody">
<s:iterator value="projectList" status="rowCounter">
<tr class="<s:if test="#rowCounter.odd == true">odd</s:if><s:else>even</s:else>">
<td><s:select cssStyle="width:200px" label="%{name}" name="projects[%{id}]" list="projectGroups" value="%{projectGroup.id}" disabled="%{projectInCOQueue}"/></td>
</tr>
</s:iterator>
</tbody>
</table>
</div>
</s:if>
<div class="functnbar3">
<s:if test="!projectInCOQueue">
<s:submit value="%{getText('save')}" theme="simple"/>
<input type="button" name="Cancel" value="<s:text name='cancel'/>" onclick="history.back();"/>
</s:if>
<s:else>
<input type="button" value="<s:text name="back"/>" onClick="history.go(-1)">
</s:else>
</div>
</s:form>
</div>
</div>
</body>
</s:i18n>
</html>