コード例 #1
0
ファイル: addsensor.php プロジェクト: ICHydro/anaconda
?>
</button>
                            </div>  
                            <div class="col-lg-12">
                                <hr>
                            </div>  

                            <div class="col-lg-4">
                                <?php 
echo \Yii::t('app', 'UNITS');
?>
                            </div>  
                            <div class="col-lg-8">
                                <?php 
echo Html::activeRadioList($model, 'units', ['mm' => 'mm', 'inch' => 'inch'], ['class' => 'btn-group', 'data' => ['toggle' => 'buttons'], 'item' => function ($index, $label, $name, $checked, $value) {
    return '<label class="btn btn-default">' . Html::radio($name, $checked, ['value' => $value]) . $label . '</label>';
}]);
?>
                            </div>  
                            <div class="col-lg-12">
                                <hr>
                            </div>

                            <div class="col-lg-4">
                                <?php 
echo \Yii::t('app', 'OBSERVED PROPERTY');
?>
                            </div>  
                            <div class="col-lg-8">
                                <?php 
echo Html::activeDropDownList($model, 'property', ['Observation 1' => 'Observation 1', 'Observation 2' => 'Observation 2', 'Observation 3' => 'Observation 3', 'Observation 4' => 'Observation 4']);