<%@ page import="java.util.*"%>
<%@ taglib uri="webwork" prefix="webwork" %>
<%@ taglib uri="sitemesh-page" prefix="page" %>

<html>
<head>
	<title><webwork:text name="'bulkedit.title'"/></title>
</head>
<script language="javascript">
    function cellHover(cell)
    {
        cell.oldClassName = cell.className;
        cell.className = 'rowHover';
        cell.onmouseout = function()
        {
            this.className = this.oldClassName;
        }
    }

    function selectCellRadioBox(cell)
    {
        document.forms['bulkmove_choosecollection'].elements[cell.id].checked = true;
    }
</script>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="ffffff">
<tr>
    <td width=200 valign=top bgcolor=f0f0f0>
        <jsp:include page="/secure/views/bulkedit/bulkedit_leftpane.jsp" flush="false" />
    </td>
    <td valign=top>
        <table cellspacing=0 cellpadding=10 border=0 width="100%"><tr><td>
        <page:applyDecorator name="jirapanel">
            <page:param name="title"><webwork:text name="'bulk.move.selection'"/></page:param>
            <page:param name="autoSelectFirst">false</page:param>
            <page:param name="action">IssueNavigator.jspa</page:param>
            <page:param name="width">100%</page:param>
            <page:param name="description"><webwork:text name="'bulkedit.step1'"/></page:param>
            <webwork:text name="'bulk.move.selection.desc1'">
                <webwork:param name="'value0'"><b></webwork:param>
                <webwork:param name="'value1'"></b></webwork:param>
            </webwork:text>
            <br>
            <webwork:text name="'bulk.move.selection.desc2'" />
        </page:applyDecorator>
        </td></tr>
        <tr><td>
        <form name="bulkmove_choosecollection" action="BulkMoveDetails.jspa" method="POST">
        <%@include file="bulkchooseaction_submit_buttons.jsp"%>
        <p>
            <table class="grid">
                <tr class="rowNormal" onmouseover="cellHover(this)" onclick="selectCellRadioBox(this)" id="parent">
                    <%-- radio button cell --%>
                    <td width="5%" align=center><input type="radio" name="collection" value="parent" id="parent"></td>
                    <td width="25%" align="left"><webwork:text name="'bulk.move.selection.parents'" /></td>
                    <td align="left"><webwork:text name="'bulk.move.selection.parents.desc'" /></td>
                </tr>
                <webwork:property value="/subTaskTypesAvailable">
                    <tr class="rowAlternate" <webwork:if test=". == true"> onmouseover="cellHover(this)" onclick="selectCellRadioBox(this)" </webwork:if> id="subtask">
                        <%-- radio button cell --%>
                        <webwork:if test=". == true">
                            <td width="5%" align=center><input type="radio" name="collection" value="subtask" id="subtask"></td>
                            <td width="25%" align="left" ><webwork:text name="'bulk.move.selection.subtasks'" /></td>
                            <td  align="left" ><webwork:text name="'bulk.move.selection.subtasks.desc'" /></td>
                        </webwork:if>
                        <webwork:else>
                            <td bgcolor="f0f0f0">N/A</td>
                            <td bgcolor="ffffff" width="25%" align="left" ><webwork:text name="'bulk.move.selection.subtasks'" /></td>
                            <td bgcolor="f0f0f0" align="left" ><webwork:text name="'bulk.move.selection.nosubtasks.desc'" /></td>
                        </webwork:else>
                    </tr>
                </webwork:property>
            </table>
            <p>
            <%@include file="bulkchooseaction_submit_buttons.jsp"%>
        </form>
        </td></tr>
        </table>
    </td>
</tr>
</table>
</body>
</html>