<%@ page import="com.atlassian.jira.util.BrowserUtils" %> <%@ taglib prefix="ww" uri="webwork" %> <%@ taglib prefix="aui" uri="webwork" %> <%@ taglib prefix="decorator" uri="sitemesh-decorator" %> <%-- Required Attributes: * name - must be specified in order to reference the correct decorator * id - inherited by all controls within the form. No spaces, all lowercase, hyphens instead of underscores, must start with a-z Required Paramaters: * action - ACTION attribute of the form Optional Parameters: * cssClass - CSS classes added after "aui". No spaces, all lowercase, hyphens instead of underscores, must start with a-z) * method (default: post) - METHOD attribute of the form * isMultipart (bool) - sets ENCTYPE to enctype="multpart/form-data" * useCustomButtons (bool) - Hides the default div.buttons NOTE: If useCustomButtons is TRUE you must then specify buttons manually using the aui/formSubmit and aui/formCancel components * submitButtonText (see notes below) - i18n Submit button text (absence removes the button) * submitButtonName (see notes below) - the Name attribute of the submit button * submitButtonIsPrimary (bool) - Whether or not submit button should be aui-button-primary * cancelLinkURI (see notes below) - Cancel link href (absence removes the link) * cancelLinkText - i18n Cancel link text (displays if cancelLinkURI is set - defaults to 'AUI.form.cancel.link.text') * showHint - show JIRA usage hint next to the buttons Notes: You must supply either a submitButtonText or cancelLinkURI. Omitting both will result in a form without buttons. Code Example: Standard form ------------- CustomFormAction.jspa Save /browse/HSP-1 ... Advanced form ------------- CustomFormAction.jspa class-1 class-2 get true true ... Notes: See http://confluence.atlassian.com/display/AUI/Forms for more information --%> <% request.setAttribute("modifierKey", BrowserUtils.getModifierKey()); %>
" class="aui<% if (p.isPropertySet("cssClass")) { %> <% } %>" <% if (p.getBooleanProperty("isMultipart")) { %>enctype="multipart/form-data"<% } %> <% if (p.isPropertySet("id")) { %>id=""<% } %> method="">
<% boolean displayGeneralErrors = (p.isPropertySet("enableFormErrors")) ? p.getBooleanProperty("enableFormErrors") : true; %> <% if (displayGeneralErrors) { %> error

<% } %> <% if (p.getBooleanProperty("hideToken") || !p.isPropertySet("hideToken")) { %><% } %>
<% if (!p.getBooleanProperty("useCustomButtons") && (p.isPropertySet("submitButtonText") || p.isPropertySet("cancelLinkURI"))) { %> <% } %>