<%@ page import="com.atlassian.jira.bc.JiraServiceContext" %> <%@ page import="com.atlassian.jira.bc.JiraServiceContextImpl" %> <%@ page import="com.atlassian.jira.security.JiraAuthenticationContext" %> <%@ page import="com.atlassian.plugin.webresource.WebResourceManager" %> <%@ page import="com.atlassian.jira.component.ComponentAccessor" %> <%@ page import="com.atlassian.jira.bc.user.search.UserSearchService" %> <%-- -- userselect.jsp -- -- Required Parameters: -- * label - The description that will be used to identfy the control. -- * name - The name of the attribute to put and pull the result from. -- * formname - The name of the form on which the control is to be placed. This is so the value can be returned -- * userMode - What mode of users should be returned. 1 = All users 2= Assignable Users etc -- Optional Parameters: -- * imageName - determines what the image of the userselect will be called -- * labelposition - determines were the label will be place in relation -- to the control. Default is to the left of the control. -- * size - SIZE parameter of the HTML INPUT tag. -- * maxlength - MAXLENGTH parameter of the HTML INPUT tag. -- * disabled - DISABLED parameter of the HTML INPUT tag. -- * readonly - READONLY parameter of the HTML INPUT tag. -- * onkeyup - onkeyup parameter of the HTML INPUT tag. -- * onfocus - onfocus parameter of the HTML INPUT tag. -- * onchange - onkeyup parameter of the HTML INPUT tag. -- * tabindex - tabindex parameter of the HTML INPUT tag. --%> <%-- Multi-Select User Picker -- set parameter 'multiSelect' to true to enable multi-select -- Required Parameters: -- * col - The textarea number of columns to display. -- * row - The textarea number of rows to display. -- * name - The name of the form on which the control is to be placed. This is so the value can be returned -- * formname - The name of the form on which the control is to be placed. This is so the value can be returned -- * userMode - What mode of users should be returned. 1 = All users 2= Assignable Users etc -- * multiSelect - Enables selection of multiple users --%> <%-- NOTE - ANY CHANGES TO THIS FILE - ALSO UPDATE pickertable.vm --%> <%@ taglib uri="webwork" prefix="ww" %> <% // Only include extra web resources (css, js) if Ajax Issue Picker turned on JiraAuthenticationContext authenticationContext = ComponentAccessor.getJiraAuthenticationContext(); JiraServiceContext ctx = new JiraServiceContextImpl(authenticationContext.getUser()); UserSearchService searchService = ComponentAccessor.getComponentOfType(UserSearchService.class); boolean canPerformAjaxSearch = searchService.canPerformAjaxSearch(ctx); WebResourceManager webResourceManager = ComponentAccessor.getWebResourceManager(); webResourceManager.requireResource("jira.webresources:autocomplete"); %> <%-- Use the ID if specified, otherwise fall back to use name. This is to avoid issues with dots "." inside names breaking JS --%>
" class="hidden user-picker-params"> "> "> "> truefalse"> <% if (canPerformAjaxSearch) { %><% } %>
_container"> " id="" size="" maxlength="" value="" DISABLED READONLY onkeyup="" tabindex="" onchange="" onfocus="" style="" class="" /> "> "> <% if (canPerformAjaxSearch) { %>
_results" class="ajax_results">
<% } %>