} ?> </label> </div> <div class="col-sm-<?php echo $attribute->isType(Attribute::TYPE_TEXT) ? 9 : 2; ?> <?php echo $hasError ? "has-error" : ""; ?> "> <?php $htmlOptions = $attribute->isType(Attribute::TYPE_CHECKBOX) ? [] : ['class' => 'form-control']; ?> <?php echo AttributeRender::renderField($attribute, $model->attribute($attribute), null, $htmlOptions); ?> </div> </div> <?php } ?> </fieldset> <?php } ?> </div> </div> <?php }
</td> <td> <?php if ($variant->attribute->isType(Attribute::TYPE_DROPDOWN)) { ?> <?php $option = AttributeOption::model()->findByAttributes(['attribute_id' => $variant->attribute_id, 'value' => $variant->attribute_value]); ?> <?php echo AttributeRender::renderField($variant->attribute, $option ? $option->id : null, 'ProductVariant[' . $variant->id . '][attributeOptionId]', ['class' => 'form-control']); ?> <?php } else { ?> <?php echo AttributeRender::renderField($variant->attribute, $variant->attribute_value, 'ProductVariant[' . $variant->id . '][attribute_value]'); ?> <?php } ?> </td> <td> <?php echo CHtml::dropDownList('ProductVariant[' . $variant->id . '][type]', $variant->type, $variant->getTypeList(), ['class' => 'form-control']); ?> </td> <td><input class="form-control" type="text" name="ProductVariant[<?php echo $variant->id; ?> ][amount]" value="<?php echo $variant->amount;
</h2> <?php foreach ($items as $attribute) { ?> <dl class="product-spec-item"> <dt class="product-spec-item__name"> <span class="product-spec-item__name-inner"> <?php echo CHtml::encode($attribute->title); ?> </span> </dt> <dd class="product-spec-item__value"> <span class="product-spec-item__value-inner"> <?php echo AttributeRender::renderValue($attribute, $product->attribute($attribute)); ?> </span> </dd> </dl> <?php } ?> <?php } ?> </div> </div> </div> <div id="description" class="tabs__body js-tab"> <div class="wysiwyg">
</td> <td> <?php if ($variant->attribute->isType(Attribute::TYPE_DROPDOWN)) { ?> <?php $option = AttributeOption::model()->findByAttributes(['attribute_id' => $variant->attribute_id, 'value' => $variant->attribute_value]); ?> <?php echo AttributeRender::renderField($variant->attribute, $option ? $option->id : null, 'ProductVariant[' . $variant->id . '][attributeOptionId]', ['class' => 'form-control']); ?> <?php } else { ?> <?php echo AttributeRender::renderField($variant->attribute, $variant->attribute_value, 'ProductVariant[' . $variant->id . '][attribute_value]', ['class' => 'form-control']); ?> <?php } ?> </td> <td> <?php echo CHtml::dropDownList('ProductVariant[' . $variant->id . '][type]', $variant->type, $variant->getTypeList(), ['class' => 'form-control']); ?> </td> <td><input class="form-control" type="text" name="ProductVariant[<?php echo $variant->id; ?> ][amount]" value="<?php echo $variant->amount;