{{!--
/*
 * Your installation or use of this SugarCRM file is subject to the applicable
 * terms available at
 * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
 * If you do not agree to all of the applicable terms or do not have the
 * authority to bind the entity as an authorized representative, then do not
 * install or use this SugarCRM file.
 *
 * Copyright (C) SugarCRM Inc. All rights reserved.
 */
--}}
<div class="accordion-heading">
    <a id='{{name}}Title' class="accordion-toggle" data-help-id="{{name}}" data-toggle="collapse" data-parent="#config-accordion" href="#{{name}}Collapse"></a>
</div>
<div id="{{name}}Collapse" class="accordion-body collapse">
    <div class="accordion-inner">
        <!--TODO-sfa remove this once the ability to map buckets when they get changed is implemented (SFA-215).-->
        <p><em>{{str "LBL_FORECASTS_CONFIG_RANGES_SETUP_NOTICE" "Forecasts"}}</em></p>
        <p>{{str "LBL_FORECASTS_CONFIG_RANGES_OPTIONS" "Forecasts" this}}</p>
        {{#with forecastRangesField}}
            {{#eachOptions options}}
                <fieldset class="{{{key}}}Fields">
                    <p>
                        <input type="radio" name="{{../name}}" value="{{{key}}}" {{#eq key ../value}}checked{{/eq}} {{#if ../../disableRanges}}disabled="true"{{/if}}>
                        <b>{{value}}</b>
                    </p>
                    <div id="{{{key}}}_ranges" class="options {{#notEq key ../value}}hide{{/notEq}}"></div>
                </fieldset>
            {{/eachOptions}}
        {{/with}}
    </div>
</div>
