<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one or more
  ~ contributor license agreements.  See the NOTICE file distributed with
  ~ this work for additional information regarding copyright ownership.
  ~ The ASF licenses this file to You under the Apache License, Version 2.0
  ~ (the "License"); you may not use this file except in compliance with
  ~ the License.  You may obtain a copy of the License at
  ~
  ~    http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  ~
  -->

<div layout="column" flex="100" class="md-padding-left">
    <md-checkbox ng-model="ctrl.accuracySelected" aria-label="ctrl.qualities[0].label">
        {{qualities[0].label}}
    </md-checkbox>
    <div ng-if="ctrl.accuracySelected" class="md-padding-left">
        <div layout="row" flex="70">

            <div flex="50">
                <md-input-container>
                    <label>Quantity Value</label>
                    <input ng-model="ctrl.element.description" required ng-disabled="ctrl.disabled">
                </md-input-container>
            </div>
            <div flex="50">
                <measurement-unit disabled="ctrl.disabled" property="ctrl.property.properties.measurementUnit"
                                  style="width:100%;"/>
            </div>
        </div>
    </div>
    <md-checkbox ng-model="ctrl.precisionSelected" aria-label="ctrl.qualities[1].label">
        {{ctrl.qualities[1].label}}
    </md-checkbox>
    <div ng-if="ctrl.precisionSelected" class="md-padding-left">
        <div layout="row" flex="70">

            <div flex="50">
                <md-input-container>
                    <label>Quantity Value</label>
                    <input ng-model="ctrl.element.description" required ng-disabled="ctrl.disabled">
                </md-input-container>
            </div>
            <div flex="50">
                <measurement-unit disabled="ctrl.disabled" property="ctrl.property.properties.measurementUnit"
                                  style="width:100%;"/>
            </div>
        </div>
    </div>
    <md-checkbox ng-model="ctrl.resolutionSelected" aria-label="ctrl.qualities[2].label">
        {{ctrl.qualities[2].label}}
    </md-checkbox>
    <div ng-if="ctrl.resolutionSelected" class="md-padding-left">
        <div layout="row" flex="70">
            <div flex="50">
                <md-input-container>
                    <label>Quantity Value</label>
                    <input ng-model="ctrl.element.description" required ng-disabled="ctrl.disabled">
                </md-input-container>
            </div>
            <div flex="50">
                <measurement-unit disabled="ctrl.disabled" property="ctrl.property.properties.measurementUnit"
                                  style="width:100%;"/>
            </div>
        </div>
    </div>
</div>