示例#1
0
文件: _form.php 项目: abutouq/video
?>
</div>
        <div class="col-lg-6"> <?php 
echo $form->field($contactModel, 'fax')->textInput();
?>
</div>
    </div>
    <div class="row">
        <div class="col-lg-6">
            <?php 
echo $form->field($model, 'users_types_id')->dropDownList(ArrayHelper::map(UserType::find()->all(), 'id', 'type_name'), ['prompt' => 'Select user type']);
?>
        </div>
        <div class="col-lg-6">
            <?php 
echo $form->field($model, 'country_id')->widget(Select2::classname(), ['name' => 'state_12', 'theme' => Select2::THEME_DEFAULT, 'data' => Country::getAllCountries(), 'options' => ['placeholder' => 'Select a state ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-6">
            <?php 
echo $form->field($model, 'start_date')->widget(DatePicker::className(), ['type' => DatePicker::TYPE_COMPONENT_APPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>
        </div>
        <div class="col-lg-6">
            <?php 
echo $form->field($model, 'expire_date')->widget(DatePicker::className(), ['type' => DatePicker::TYPE_COMPONENT_APPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>

        </div>