{extends 'layout_view.tpl'} {block name="title"} {title}{$title|escape}{/title} {/block} {block name="content"} {include file='access/include_items.tpl'}
{include file='access/include_hidden.tpl'}
{if $prefs.jquery_select2 !== 'y'}
{tr}Use Ctrl+Click or Command+Click to select multiple options{/tr}
{/if} {jq} $("input[name=add_remove]").change(function () { var userGroups = $("#select_groups").data("usergroups"), mode = false; if ($(this).prop("checked") && userGroups) { if ($(this).val() === "add") { // filter the group list to ones this user is not in mode = true; } $("option", "#select_groups").each(function () { if ($.inArray($(this).val(), userGroups) > -1) { $(this).prop("disabled", mode).css("opacity", mode ? .3 : 1); } else { $(this).prop("disabled", ! mode).css("opacity", ! mode ? .3 : 1); } }); $("#select_groups").trigger("change.select2"); } }).change(); {/jq}
{include file='access/include_extra_fields.tpl'} {include file='access/include_submit.tpl'}
{/block}