Ejemplo n.º 1
0
   
    
     </div>
    <div class="col-sm-6 col-md-6">
     <?php 
echo $form->field($model, 'risk_level')->widget(Select2::classname(), ['data' => ArrayHelper::map(Level::find()->all(), 'level', 'name'), 'options' => ['placeholder' => 'เลือกระดับความรุนแรง ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
   
    
     </div>
    
 
    
    <div class="col-sm-6 col-md-6 col-md-6">
     <?php 
echo $form->field($model, 'input_complain')->widget(Select2::classname(), ['data' => ArrayHelper::map(\app\models\Complain::find()->all(), 'COMPLAIN_ID', 'COMPLAIN_NAME'), 'options' => ['placeholder' => 'เลือกช่องทางรับเรื่องร้องเรียน ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
   
    </div>

    <?php 
echo $form->field($model, 'login_name')->textInput(['maxlength' => true]);
?>

    
    <?php 
echo $form->field($model, 'risk_sum_dep')->textInput();
?>

    
Ejemplo n.º 2
0
 public function getComplains()
 {
     return @$this->hasOne(Complain::className(), ['COMPLAIN_ID' => 'input_complain']);
 }