<%@ page import="com.atlassian.jira.util.BrowserUtils"%> <%@ page import="org.apache.commons.lang.StringUtils"%> <%@ taglib uri="webwork" prefix="webwork" %> <%@ taglib uri="sitemesh-decorator" prefix="decorator" %> <%-- PARAMETERS: (all are optional) action - the URI to submit this form too submitName - the name of the submit button cancelURI - the location to redirect to for the cancel button (no cancel button if this isn't present) leftButtons - any other buttons to put to the left of the submit button buttons - any other buttons to put next to the submit button autoSelectFirst - unless this is present and "false", the first element of the form will be selected automatically using JavaScript title - a title for this form (HTML) notable - if this is specified, JIRA form will not output a border table (HTML) width - the width of the border table (HTML) multipart - if this parameter is present, the form will be a multipart form helpURL - the URL of a help link related to this form helpURLFragment - the #fragment identifier to append to the helpURL. Value must include the # columns - the number of columns the underlying form will have method - the method of the form to submit (get or post) --%> <% // Set some defaults String columns = (p.isPropertySet("columns")) ? p.getProperty("columns") : "2"; request.setAttribute("modifierKey", BrowserUtils.getModifierKey()); %> <% if (StringUtils.isNotBlank(p.getProperty("labelWidth"))) { %> <% } %> <% if (p.isPropertySet("action")) { %>
" method="" name="" <% if (p.isPropertySet("onsubmit")) { %>onsubmit="" <% } else { %>onsubmit="if (this.submitted) return false; this.submitted = true; return true"<% } %> <% if (p.isPropertySet("multipart")) { %> ENCTYPE="multipart/form-data"<% } %><% if (p.isPropertySet("autocomplete")) { %> autocomplete=""<% } %>> <% } %> <% if (!p.isPropertySet("notable")) { %> maxWidth<%}%>" <% if (p.isPropertySet("jiraformId")) { %>id=""<%}%> <% if (p.isPropertySet("width") && !p.getProperty("width").equals("100%")){%>width=""<%}%>> <% } %> <% if (p.isPropertySet("title") && StringUtils.isNotBlank(p.getProperty("title"))) { %> <% } %> <% if (StringUtils.isNotBlank(p.getProperty("description"))) { %> <% } %> <% if (StringUtils.isNotBlank(p.getProperty("instructions"))) { %> <% } %> <%-- formwide error messages --%> <% if (p.isPropertySet("wizard") && "true".equalsIgnoreCase(p.getProperty("wizard"))) { %> <% } else if (p.isPropertySet("cancelURI") || p.isPropertySet("buttons") || p.isPropertySet("submitName") || p.isPropertySet("leftButtons")){%> <% } %> <%-- Forward the return url --%> <% if (!p.isPropertySet("notable")) { %>
<% if (p.isPropertySet("pretitle")) { %> <% } if (p.isPropertySet("localHelpAction")) { String action = p.getProperty("localHelpAction"); %> Help <% } if (p.isPropertySet("helpURL")) { String helpUrl = "'" + p.getProperty("helpURL") + "'"; String helpURLFragment = ""; if (p.isPropertySet("helpURLFragment")) helpURLFragment = p.getProperty("helpURLFragment"); %> <%= helpURLFragment %> <% } %>

<% if (p.isPropertySet("wizard") && "true".equalsIgnoreCase(p.getProperty("wizard"))) { %> ( )<%}%>


<% if (!p.isPropertySet("finishButton")) { %> <% } else { request.setAttribute("nextLabel", p.getProperty("finishButton")); } %> " /> " accesskey="N" class="hiddenButton" /> " accesskey="P" disabled="disabled" /> " accesskey="" title=" " /> <% if (p.isPropertySet("buttons")) { %> <% } %> <% if (p.isPropertySet("cancelURI")) { %> " title=" ( + )" type="button" name="" value="" onclick="location.href=''" /> <% } %>
<% if (p.isPropertySet("leftButtons")) { %> <% } %> <% if (StringUtils.isNotBlank(p.getProperty("submitName"))) { %> " id="" value="" <% if (StringUtils.isBlank(p.getProperty("submitAccessKey"))) { %> accesskey="" title=" " <% } else {%> accesskey="" title=" ( + )" <%}%> <% if (p.isPropertySet("onclicksubmit")) { %>onclick=""<% } %> class="spaced" /> <% } %> <% if (p.isPropertySet("buttons")) { %> <% } %> <% if (p.isPropertySet("cancelURI")) { %> " title=" ( + )" name="" value="" onclick="location.href=''" /> <% } %>
<% } %> <% if (p.isPropertySet("action")) { %> <%-- This enables the first element of the form to be automatically selected. Always on unless autoSelectFirst=false --%> <% if (!p.isPropertySet("autoSelectFirst") || !p.getProperty("autoSelectFirst").equals("false")) { %> <% } %> <% } %>