{namespace JIRA.Templates.Fields.Pickers.User} /** * Renders a Picker component for a single user. * * See initSingleUserPickers.js for how the component is initialized. * * @param field (Map) a map representation of the Field rendering this template. Contains: * - id (String) the id of the element for use by JavaScript * - name (String the name of the form field, for submission * @param? type (String) the type of Component this should be registered as, e.g. single-user-picker - HACK * @param? options (List) list of Map representations of SelectChild instances * @param? inputText (String) text indicating what the user should enter in the field (e.g. "Select an Assignee") * @param? editValue (String) the value to be displayed instead of the selected option (e.g. for invalid values) * @param? showDropdownButton (boolean) true if this user picker should should show a suggestion dropdown button * @param? userType (String) an optional type of User for this picker, e.g. "assignee" * @param? containerClass (String) an optional class or space-sepaarated classes to add to the picker container * @param? additionalAttributes (String) additional attributes that will be added to the parent element */ {template .single} {/template} /** * Renders a single User option element. * * @param optionName (String) the username * @param displayName (String) the display name for this user - full name or username as necessary * @param avatarURL (String) the URL of the user's avatar * @param? emailAddress (String) the email address for this user * @param? loggedInUser (boolean) true if this option refers to the currently-logged-in user * @param? selected (boolean) true if this option is the one currently chosen for the