<%@ include file="/common/taglibs.jsp" %>

<head>
    <meta name="menu" content="admin"/>
</head>
<s:form method="post" action="users/%{id}">
    <s:hidden name="_method" value="delete"/>
    <c:set var="panelContent">
       <div class="Pane">
       		<h2><fmt:message key="heading.user.delete.reassign"/></h2>
	        <s:if test="%{userAssignedToIssues}">
	            <span class="Field MediumField">
	                <s:select name="reAssignToUser" list="userList" listKey="id" listValue="fullName"
	                          label="%{getText('label.user.reassigntouser')}" required="true" theme="xhtml"/>
	            </span>
	        </s:if>
	        <s:if test="%{userCreatorOfIssues}">
	            <span class="Field MediumField">
	                <s:select name="reCreateByUser" list="userList" listKey="id" listValue="fullName"
	                          label="%{getText('label.user.recreatebyuser')}" required="true" theme="xhtml"/>
	            </span>
	        </s:if>
	        <s:if test="%{userOwnerOfProjects}">
	            <span class="Field MediumField">
	                <s:select name="reAssignProjectOwner" list="userList" listKey="id" listValue="fullName"
	                          label="%{getText('label.user.reassignprojectowner')}" required="true" theme="xhtml"/>
	            </span>
	        </s:if>
	        <div class="Actions">
			    <ul>
			    	<li><s:submit key="action.delete"/></li>
			    </ul>
		    </div>
	   </div>
    </c:set>

    <div class="LeftPanel">
        <c:import url="/WEB-INF/pages/includes/administration/menu/default.jsp">
            <c:param name="pageName" value="Users"/>
            <c:param name="content" value="${panelContent}"/>
        </c:import>
    </div>

</s:form>