<html xmlns="http://www.w3.org/1999/xhtml"
      xml:lang="en"
      lang="en"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
      metal:use-macro="here/main_template/macros/master"
      i18n:domain="producepublish">

      <metal:fill fill-slot="main">

        <div class="warning" tal:condition="context/getResourceOnFilesystem" i18n:translate="warning_template_not_exportable">
            This template uses a file-system based registered resource directory (<span tal:replace="context/getResourceOnFilesystem" />).
            <br/>
            Export is disabled.
        </div>

        <fieldset tal:condition="not: context/getResourceOnFilesystem"> 
            <legend i18n:translate="label_export_resources_to_zip">Export resources to ZIP file</legend>
            <div class="formHelp" i18n:translate="help_export_resources_to_zip_form">Download resources as ZIP </div>                                    
            <form tal:attributes="action string:${context/absolute_url}/@@export_resource">
                <br/>                                
                <input type="submit" name="export" class="context" value="Export resources" i18n:attributes="value label_export_resources"/> &nbsp;
            </form>
        </fieldset>

    </metal:fill>
</html>
