<%@ taglib uri="/spring" prefix="spring" %>

<div id="roleEditor" class="editor">
    <table cellpadding="0" cellspacing="0" border="0" style="height:100%;width:100%">
        <tr>
            <td>
                <div id="roleEditorToolbar" class="toolbar">
                    <input id="saveItemBtn" type="button" class="toolbarBtn fl" style="float:left;"
                           value="<spring:message code="jsp.userManager.userEditor.save"/>" />
                    <input id="cancelEditBtn" type="button" class="toolbarBtn fl" style="float:left;"
                           value="<spring:message code="jsp.userManager.userEditor.cancel"/>" />
                    <%--<div class="cb"></div>--%>
                </div>
            </td>
        </tr>
        <tr>
            <td style="height:100%" class="panelBorder">
                <div id="roleEditorContentContainer" class="editorContentContainer">
                    <div id="roleEditorContent">
                        <div id="roleEditorRoleDetails">
                            <div>
                                <div class="fl">
                                    <div class="fieldLabel">&nbsp;</div>
                                    <div id="roleEditorRoleNameValidator" class="validator"></div>
                                </div>
                                <div class="inputZone fl">
                                    <div class="fieldLabel"><spring:message code="jsp.roleManager.roleEditor.roleName"/></div>
                                    <input id="roleEditorRoleNameInput" type="text" maxlength="100" class="new_tabletextfieldorlist textInput editorInput lastTextInput"/>
                                </div>

                                <div class="cb"></div>
                            </div>

                            <div id="roleEditorValidationSummary" class="alertText validationSummary editorValidationSummary fieldSpace"> </div>

                            <div class="validator fl"></div>
                            <div class="fieldSpace fl">
                                <span id="roleEditorUsersCount" class="userDetailsTitle"></span>&nbsp;
                                <span class="userDetailsTitle"><spring:message code="jsp.roleManager.roleEditor.users"/>
                                    (<a id="editUsersBtn" href="#null"><spring:message code="jsp.roleManager.roleEditor.changeUsers"/></a>)
                                </span>
                            </div>
                            <div class="cb"></div>
                        </div>

                        <div class="validator fl"></div>
                        <div id="roleEditorUsers" style="width:230px; height:200px;" class="fl"></div>
                        <div class="cb"></div>
                    </div>
                </div>
            </td>
        </tr>
    </table>

</div>

<div id="userAssigner" style="position:absolute;display:none;" class="assigner">
    <table class="dialogFrame" cellspacing="0px" cellpadding="0px">
        <tr><td>
            <div class="dialogHeader" onmousedown="dialogOnMouseDown(event);">
                <div class="dialogHeaderTitle"><spring:message code="jsp.roleManager.roleEditor.userEditor.title"/></div>
            </div>
        </td></tr>
        <tr><td class="dialogContent" valign="top">

            <div class="assignerListZone" style="float:left;">
                <span class="fieldLabel"><spring:message code="jsp.roleManager.roleEditor.userEditor.available"/></span><input type="text" style="visibility:hidden; width:20px;" class="assignerAssignedTo" value=""/>
                <div id="assignerAvailableItems" class="assignerSpace assignerList" ></div>
            </div>

            <div class="assignerAddRemoveBtnZone" style="float:left;">
                <center>

                    <div id="assignerAddBtn" class="swapButton right up" ></div><div><br/><br/></div>
                    <div id="assignerRemoveBtn" class="swapButton left up" ></div>

                </center>
            </div>

            <div class="assignerListZone" style="float:left;">
                <span class="fieldLabel"><spring:message code="jsp.roleManager.roleEditor.userEditor.assigned"/></span><input type="text" id="assignerAssignedTo" class="assignerAssignedTo" value=""/>
                <div id="assignerAssignedItems" class="assignerSpace assignerList" ></div>
            </div>
        </td></tr>
        <tr><td class="dialogButtonPanel" align="right">
            <div style="float:left;"><input id="assignerRevert" type="button" value="<spring:message code="jsp.roleManager.roleEditor.userEditor.revert"/>" class="dialogButton"/></div>
            <div style="float:right;"><input  id="assignerDone" type="button" value="<spring:message code="jsp.roleManager.roleEditor.userEditor.done"/>" class="dialogButton"/></div>
            <span style="clear:both;"/>
        </td></tr>
    </table>
</div>

