blob: b539735c6a91918e969e1557d3ff2945fd419517 [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" %>
<html>
<s:i18n name="localization.Continuum">
<head>
<title><s:text name="buildAgent.page.title"/></title>
</head>
<body>
<div class="app">
<div id="axial" class="h3">
<h3><s:text name="buildAgent.section.title"/></h3>
<div class="axial">
<s:form action="saveBuildAgent" method="post" validate="true">
<c:if test="${!empty actionErrors}">
<div class="errormessage">
<s:iterator value="actionErrors">
<p><s:property/></p>
</s:iterator>
</div>
</c:if>
<table>
<s:hidden name="type"/>
<c:choose>
<c:when test="${type=='new'}">
<s:textfield label="%{getText('buildAgent.url.label')}" name="buildAgent.url" requiredLabel="true" size="100"/>
</c:when>
<c:otherwise>
<s:hidden name="buildAgent.url"/>
<s:textfield label="%{getText('buildAgent.url.label')}" name="buildAgent.url" requiredLabel="true" disabled="true" size="100"/>
</c:otherwise>
</c:choose>
<s:textfield label="%{getText('buildAgent.description.label')}" name="buildAgent.description" size="100"/>
<s:checkbox label="%{getText('buildAgent.enabled.label')}" name="buildAgent.enabled" value="buildAgent.enabled" fieldValue="true"/>
</table>
<div class="functnbar3">
<s:submit value="%{getText('save')}" theme="simple"/>
<input type="button" name="Cancel" value="<s:text name='cancel'/>" onclick="history.back();"/>
</div>
</s:form>
</div>
</div>
</div>
</s:i18n>
</html>