<div class="no-print">
    <h4 class="hidden-xs" ng-if="remotesToDisplay.value != 3">Sensors <small>(Remote {{remote}})</small></h4>
    <h4 ng-click="isCollapsed = !isCollapsed" ng-show="remotesToDisplay.value == 3" class="pointer" ng-class="{'visible-xs': remotesToDisplay.value != 3}">
        <button class="btn btn-default btn-xs pull-right" ng-show="!isCollapsed" title="Click to collapse">&#8722;</button>
        <button class="btn btn-default btn-xs pull-right" ng-show="isCollapsed" title="Click to expand">+</button>
        Sensors <small>(Remote {{remote}})</small>
    </h4>

    <div class="sensor-list" collapse="isCollapsed">
        <div class="checkbox animate-show" title="Sensor code {{sensor.code}}"
             ng-repeat="sensor in fixedConfigService.sensors[remote] | orderBy:'desc'">

            <!--ng-show="sensor.available"-->

            <input type="checkbox" ng-checked="sensor.checked" ng-disabled="!sensor.available"
                   ng-click="fixedConfigService.sensorChecked(remote, sensor)" value="{{sensor.code}}" id="Remote{{remote}}-Sensor{{sensor.code}}" />
            <label ng-class="{'disabled': !sensor.available, 'available': sensor.sampleRate}" for="Remote{{remote}}-Sensor{{sensor.code}}">{{sensor.desc}}</label>
            <span ng-if="sensor.sampleRate || sensor.checked" title="Sample rate">({{sensor.sampleRate}} Hz)</span>

            <!-- Header 3V vs 3V3 selector -->
            <span class="dropdown" is-open="status.isopen" dropdown
                  ng-if="20 < sensor.code && sensor.code < 24 && (currentConfig() == 8 || currentConfig() == 12)  && rfFwVersion() > 255">
                <a href class="dropdown-toggle" dropdown-toggle>
                    {{currentConfig() == 8 ? '3.0V' : '3.3V'}}
                </a>
                <ul class="dropdown-menu" ng-if="IOLab.isNewAcquisition()" style="min-width: 80px;">
                    <li><a href="" ng-click="selectConfig(remote, 8); status.isopen = false">3.0V</a></li>
                    <li><a href="" ng-click="selectConfig(remote, 12); status.isopen = false">3.3V</a></li>
                </ul>
            </span>

            <div ng-repeat="subChart in sensor.subCharts" ng-if="sensor.checked" style="margin-left: 20px;">
                <input type="checkbox" ng-checked="subChart.checked"
                       ng-click="fixedConfigService.sensorChecked(remote, sensor, subChart.coordinate)" id="remote-{{remote}}-subChart{{subChart.coordinate}}" />
                <label for="remote-{{remote}}-subChart{{subChart.coordinate}}">{{subChart.desc}}</label>
            </div>
        </div>
    </div>
</div>