<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:meta="http://xml.zope.org/namespaces/meta"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      meta:interpolation="true"
      i18n:domain="euphorie"
      id="statistics"
      metal:use-macro="context/@@layout/macros/layout">
<head>
<metal:title fill-slot="title"><span i18n:translate="" tal:content="view/label" tal:omit-tag=""></span> -
    <span i18n:translate="" tal:content="view/label_detail" tal:omit-tag=""></span>
  </metal:title>
</head>

<body>
<metal:title fill-slot="title"><tal:title><span i18n:translate="" tal:content="view/label" tal:omit-tag=""></span> -
    <span i18n:translate="" tal:content="view/label_detail" tal:omit-tag=""></span></tal:title></metal:title>
<metal:content fill-slot="content">
    <div class="introduction">
        <p>
            Note: All reports are only 100% accurate for the month they were generated in. Any data about the past is to be treated as an indication only. In particular, numbers for a given month may decrease in subsequent reports. This includes the "Accumulated" sections in all reports as well as any report for which a reporting period more than one month in the past is selected.
        </p>
        <p>
            The reason for this is that assessments are not fully tracked over time due to data protection. Older data may be overwritten when assessments are repeatedly modified, meaning that assessments will no longer be counted for past months if they have been modified during the current month.
        </p>
    </div>
    <form class="concise statisticsParametersForm" action="${request/getURL}" enctype="${view/enctype}" method="${view/method}" id="${view/id}">
        <tal:loop_widgets repeat="widget view/widgets/values">
            <fieldset tal:attributes="id string:fieldset-${widget/id}">
                <tal:widget replace="structure widget/render" />
            </fieldset>
        </tal:loop_widgets>

        <div class="buttonBar" tal:define="actions view/actions/values|nothing" tal:condition="actions">
          <tal:action repeat="action actions" replace="structure action/render" />
        </div>
    </form>
    </metal:content>
    <metal:scripts fill-slot="scripts">
    <script type="text/javascript">
        function toggle(value) {
            if (value == 'Country') {
                jQuery('#fieldset-form-widgets-tools').hide();
                jQuery('#fieldset-form-widgets-countries').show('fast');
            } else if (value in {'Tool':true, 'OiRA Tool': true}) {
                jQuery('#fieldset-form-widgets-tools').show('fast');
                jQuery('#fieldset-form-widgets-countries').hide();
            } else {
                jQuery('#fieldset-form-widgets-tools').hide();
                jQuery('#fieldset-form-widgets-countries').hide();
            }
        }
        jQuery(document).ready(function () {
            $('button.remove.jsOnly').hide();
            var $selected = jQuery('#fieldset-form-widgets-report_type input:radio:checked');
            if ($selected.length === 0) {
                $selected = jQuery('#fieldset-form-widgets-report_type input.hidden-widget');
            }
            toggle($selected.attr('value'));
            jQuery('#fieldset-form-widgets-report_type input:radio').change(function (ev) {
                toggle(ev.target.value);
            });
        });
    </script>
    </metal:scripts>
  </body>
</html>
