Ejemplo n.º 1
0
?>
       </div>   
        
       

   <div class="col-xs-6 col-sm-6">
    
    <?php 
echo $form->field($model, 'clinictype')->widget(Select2::classname(), ['data' => ArrayHelper::map(Clinictype::find()->all(), 'CLINICTYPE_ID', 'CLINIC_NAME'), 'options' => ['placeholder' => 'เลือกประเภทความเสี่ยง ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
  
    </div>     
    
    <div class="col-xs-6 col-sm-6">
    <?php 
echo $form->field($model, 'place_id')->widget(Select2::classname(), ['data' => ArrayHelper::map(Riskplace::find()->all(), 'PLACE_ID', 'PLACE_NAME'), 'options' => ['placeholder' => 'เลือกสถานที่เกิดเหตุ ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
   
     
     </div>       
    </div>
    
  <?php 
echo $form->field($model, 'event_name')->textarea(['rows' => 3]);
?>

    </div>
<?php 
echo $form->field($model, 'safety')->textInput(['maxlength' => true]);
?>
Ejemplo n.º 2
0
 public function getRiskplaces()
 {
     return @$this->hasOne(Riskplace::className(), ['PLACE_ID' => 'place_id']);
 }