#** 
 * Required context variables:
 *
 * $displayTree      - if true then display the tree select form; otherwise do not show it
 * $action           - the WebWork Action presenting this view
 * $formAction       - the value for the export form's action attribute
 * $includeComments  - a variable indicating whether the include comments checkbox should be ticked.
*#
<p>
    $action.getText("text.description.export.space.html")
<p>

#if ($displayTree)
    <div align="center">
        <table class="grid" width="100%">
            <form name="exportspaceform" method="post" action="$formAction">
                #form_xsrfToken()
                <tr align="left">
                    <td align="right" valign="top" ><strong>$action.getText("misc-settings")</strong></td>
                    <td>
                        <input type="checkbox" name="includeComments" style="vertical-align: middle" id="includeComments" value="true" #if( ${includeComments.toString()} == "true" )checked="checked"#end/>
                        <label for="includeComments">$action.getText("include-comments")</label><br>
                    </td>
                </tr>

                #if( $spaceManager.getPages($space, false).size() > 0 )
                    <tr align="left">
                        <td colspan="2" class="infocell">
                        $action.getText("select.export.pages")
                        </td>
                    </tr>
                    <tr align="left">
                        <td align="right" valign="top"><strong>$action.getText("pages.to.be.exported")</strong></td>
                        <td>
                        #parse ("/importexport/includes/export-spacetree-checkboxes.vm")
                        </td>
                    </tr>
                #end

                <tr>
                    <td colspan="2" align="center">
                        <input type="hidden" name="synchronous" value="false"/>
                        <input type="hidden" name="exportType" value="TYPE_HTML" />
                        #tag ("Submit" "name='confirm'" "value='export.name'" "theme='notable'" )
                        #tag ("Submit" "name='cancel'" "value='cancel.name'" "theme='notable'" )
                    </td>
                </tr>
            </form>
        </table>
    </div>
#end