Example #1
0
$form = $this->beginWidget('CActiveForm', array('id' => 'survei-form-template', 'enableAjaxValidation' => false, 'htmlOptions' => array('class' => 'form-horizontal')));
?>

    <div id="newoptions_template">
        <div id="options_template_template">
            <!-- <a href="javascript:;" class="btn btn-sm btn-icon-only default">
                <i class="fa fa-times"></i>
            </a> -->
            <br>
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-3">Nama</label>
                        <div class="col-md-9">
                            <?php 
echo $form->dropDownList($orderbaru->orderdetail, '[0]ID_ITEM', Item::listAllItem(), array('class' => 'form-control form-select', 'prompt' => '-- Pilih Item --', 'onchange' => 'getStokItem(this.value, 0)'));
?>
                        </div>
                    </div>
                </div>
                <!--/span-->
                <div class="col-md-3">
                    <div class="form-group">
                        <?php 
echo $form->labelEx($orderbaru->orderdetail, '[0]JUMLAH', array('class' => 'control-label col-md-4'));
?>
                        <div class="col-md-6">
                            <?php 
echo $form->numberField($orderbaru->orderdetail, '[0]JUMLAH', array('class' => 'form-control input-xsmall', 'min' => 0, 'placeholder' => '0', 'disabled' => 'true'));
?>
                        </div>