Exemple #1
0
?>

<div class="tbleditors-form">

    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'editor_name')->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'country_id')->widget(Select2::classname(), ['data' => ArrayHelper::map(Tblcountries::find()->all(), 'country_id', 'country_name'), 'options' => ['placeholder' => 'Select country'], 'pluginOptions' => ['allowClear' => true]]);
?>
    <?php 
echo $form->field($model, 'education_level_id')->widget(Select2::classname(), ['data' => ArrayHelper::map(Tbleducation::find()->all(), 'education_level_id', 'level_name'), 'options' => ['placeholder' => 'Select Education Certification'], 'pluginOptions' => ['allowClear' => true]]);
?>
    <?php 
echo $form->field($model, 'education_institution')->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'stars')->radioList(array('1' => '1', 2 => '2', 3 => '3', 4 => '4', 5 => '5'));
?>
    <?php 
echo $form->field($model, 'mobile')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'email')->textInput(['maxlength' => true]);
?>
    <?php 
 /**
  * Lists all Tbleducation models.
  * @return mixed
  */
 public function actionIndex()
 {
     $dataProvider = new ActiveDataProvider(['query' => Tbleducation::find()]);
     return $this->render('index', ['dataProvider' => $dataProvider]);
 }