<div class="greyboxfilled" style="height:200px; width:601px; margin: 0 auto;">
    <div style="float:left; width:300px;">
        <div class=formtitle>$action.getText('not.member.of.groups')</div>

        <div style="padding:5px;">
            #if ($action.nonMemberGroups.size() > 0)
                #tag ("Select" "name='groupsToJoin'" "list=nonMemberGroups" "multiple='true'" "size=8" "theme='notable'" "template='select.vm'")
                <br/>
                #tag ("Submit" "name='join'" "value='join.groups'" "theme='notable'" "template='submit.vm'")
            #else
                $action.getText('member.of.all.groups')
            #end
        </div>

    </div>
    <div style="float:left; width:1px; height:100%; background-color:#FFF"></div>
    <div style="float:right; width:300px;">

        <div class="formtitle">$action.getText('member.of.groups')</div>
        <div style="padding:5px;">
            #if ($action.readOnlyGroups.size() > 0)
                #foreach ($readOnlyGroup in $action.readOnlyGroups)
                    <strong>$readOnlyGroup</strong><br>
                #end
            #end

            #if ($action.memberGroups.size() > 0)
                #tag ("Select" "name='groupsToLeave'" "list=memberGroups" "multiple='true'" "size=8" "theme='notable'" "template='select.vm'")
                <br/>
                #tag ("Submit" "name='leave'" "value='leave.groups'" "theme='notable'" "template='submit.vm'")
            #else
                #if ($action.readOnlyGroups.isEmpty()) $action.getText('member.of.no.groups') #end
            #end

            #if ($action.readOnlyGroups.size() > 0)<p><strong>Note:</strong> Groups in bold are read-only groups</p>#end
        </div>

    </div>
</div>    
#tag ("Hidden" "name='username'" "value=username")
