<h1 class="page-header"><?php echo $this->pageTitle; ?></h1>

<div class="row">
    <div class="col-md-12">
        <?php $this->widget('Flash', array('flashes' => Yii::app()->user->getFlashes()));?>
    </div>
    <div class="col-md-12">
        <ul class="nav nav-tabs">
            <li class="active"><a data-toggle="tab" href="#setting1"><strong>Column Name Mapping</strong></a></li>
            <li><a data-toggle="tab" href="#setting2"><strong>Default Weights, Quantity and Dimensions Control</strong></a></li>
        </ul>
        <br>
    </div>
    <div class="col-md-12">
        <div class="tab-content">
            <div id="setting1" class="tab-pane fade in active">
                <?php echo CHtml::beginForm('', 'post', ['id' => 'setting-column-mapping']); ?>
                <div class="row">
                    <div class="col-md-6 form-group">
                        <?php echo CHtml::activeLabel($settingColumnMapping, 'mpn'); ?>
                        <?php echo CHtml::activeTextarea($settingColumnMapping, 'mpn', ['class' => 'form-control']); ?>
                    </div>             
                    <div class="col-md-6 form-group">
                        <?php echo CHtml::activeLabel($settingColumnMapping, 'cost'); ?>
                        <?php echo CHtml::activeTextarea($settingColumnMapping, 'cost', ['class' => 'form-control']); ?>
                    </div>        
                    <div class="col-md-6 form-group">
                        <?php echo CHtml::activeLabel($settingColumnMapping, 'msrp'); ?>
                        <?php echo CHtml::activeTextarea($settingColumnMapping, 'msrp', ['class' => 'form-control']); ?>
                    </div>        
                    <div class="col-md-6 form-group">
                        <?php echo CHtml::activeLabel($settingColumnMapping, 'description'); ?>
                        <?php echo CHtml::activeTextarea($settingColumnMapping, 'description', ['class' => 'form-control']); ?>
                    </div> 
                    <!--       
                    <div class="col-md-6 form-group">
                        <?php //echo CHtml::activeLabel($settingColumnMapping, 'sku'); ?>
                        <?php //echo CHtml::activeTextarea($settingColumnMapping, 'sku', ['class' => 'form-control']); ?>
                    </div>
                    --> 
                    <div class="col-md-6 form-group">
                        <?php //echo CHtml::activeLabel($settingColumnMapping, 'ean/'); ?>
                        <label>EAN/GTIN</label>
                        <?php echo CHtml::activeTextarea($settingColumnMapping, 'ean', ['class' => 'form-control']); ?>
                    </div> 
                    <div class="col-md-6 form-group">
                        <?php echo CHtml::activeLabel($settingColumnMapping, 'weight'); ?>
                        <?php echo CHtml::activeTextarea($settingColumnMapping, 'weight', ['class' => 'form-control']); ?>
                    </div> 
                    <div class="col-md-6 form-group">
                        <?php echo CHtml::activeLabel($settingColumnMapping, 'width'); ?>
                        <?php echo CHtml::activeTextarea($settingColumnMapping, 'width', ['class' => 'form-control']); ?>
                    </div> 
                    <div class="col-md-6 form-group">
                        <?php echo CHtml::activeLabel($settingColumnMapping, 'length'); ?>
                        <?php echo CHtml::activeTextarea($settingColumnMapping, 'length', ['class' => 'form-control']); ?>
                    </div> 
                    <div class="col-md-6 form-group">
                        <?php echo CHtml::activeLabel($settingColumnMapping, 'height'); ?>
                        <?php echo CHtml::activeTextarea($settingColumnMapping, 'height', ['class' => 'form-control']); ?>
                    </div> 
                    <div class="col-md-12">
                        <?php echo CHtml::submitButton('Save Changes', ['class' => 'btn btn-primary pull-right']); ?>
                    </div>
                </div>
                <?php echo CHtml::endForm(); ?>
            </div>
            <div id="setting2" class="tab-pane fade">
                <?php echo CHtml::beginForm('', 'post', ['id' => 'setting-default-values']); ?>
                <div class="row">
                    <div class="col-md-3 form-group">
                        <?php echo CHtml::activeLabel($settingDefaultValue, 'weight'); ?>
                        <?php echo CHtml::activeTextField($settingDefaultValue, 'weight', ['class' => 'form-control', 'placeholder' => '0 or from spreadsheet']); ?>
                    </div>
                    <!-- <div class="col-md-2 form-group">  
                        <?php echo CHtml::activeLabel($settingDefaultValue, 'quantity'); ?>
                        <?php echo CHtml::activeTextField($settingDefaultValue, 'quantity', ['class' => 'form-control', 'placeholder' => '0 or from spreadsheet']); ?>
                    </div> -->
                    <div class="col-md-12">
                        <hr/>
                    </div>
                    <div class="col-md-3 form-group">
                        <?php echo CHtml::activeLabel($settingDefaultValue, 'width'); ?>
                        <?php echo CHtml::activeTextField($settingDefaultValue, 'width', ['class' => 'form-control', 'placeholder' => '0 or from spreadsheet']); ?>
                    </div>
                    <div class="col-md-3 form-group">
                        <?php echo CHtml::activeLabel($settingDefaultValue, 'length'); ?>
                        <?php echo CHtml::activeTextField($settingDefaultValue, 'length', ['class' => 'form-control', 'placeholder' => '0 or from spreadsheet']); ?>
                    </div>
                    <div class="col-md-3 form-group">
                        <?php echo CHtml::activeLabel($settingDefaultValue, 'height'); ?>
                        <?php echo CHtml::activeTextField($settingDefaultValue, 'height', ['class' => 'form-control' , 'placeholder' => '0 or from spreadsheet']); ?>
                    </div>
                    <div class="col-md-12">
                        <?php echo CHtml::submitButton('Save Changes', ['class' => 'btn btn-primary pull-right']); ?>
                    </div>
                </div>
                <?php echo CHtml::endForm(); ?>
            </div>
        </div>
    </div>
</div>