Beispiel #1
0
$form = ActiveForm::begin();
?>

    <?php 
//= $form->field($model, 'user_create')->textInput(['maxlength' => true])
?>

    <div class="col-md-10" style="padding-left: 0;">
        <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => true]);
?>
    </div>

    <div class="col-md-2"  style="padding-right: 0;">
        <?php 
echo $form->field($model, 'status')->dropDownList(Clients::getStatusesArray());
?>
    </div>

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

    <div class="col-md-6" style="padding-left: 0;">
        <?php 
echo $form->field($model, 'tel')->textInput(['maxlength' => true]);
?>
    </div>

    <div class="col-md-6" style="padding-right: 0;">
        <?php 
Beispiel #2
0
    <h2><?php 
echo Html::encode($this->title);
?>
</h2>
    <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>

    <p>
        <?php 
echo Html::a('Добавить новую', ['create'], ['class' => 'btn btn-success']);
?>
    </p>

    <?php 
/*= ListView::widget([
      'dataProvider' => $dataProvider,
      'itemOptions' => ['class' => 'item'],
      'itemView' => function ($model, $key, $index, $widget) {
          return Html::a(Html::encode($model->name), ['view', 'id' => $model->id]);
      },
  ]) */
?>

    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'name', 'tel', 'email', ['attribute' => 'status', 'value' => 'statusName', 'filter' => Html::activeDropDownList($searchModel, 'status', Clients::getStatusesArray(), ['class' => 'form-control', 'prompt' => 'Все'])], ['class' => 'yii\\grid\\ActionColumn']]]);
?>

</div>
Beispiel #3
0
//= $form->field($model, 'date_create')
?>

    <?php 
//= $form->field($model, 'user_create')
?>

    <div class="col-md-10" style="padding-left: 0;">
        <?php 
echo $form->field($model, 'name');
?>
    </div>

    <div class="col-md-2" style="padding-right: 0;">
        <?php 
echo $form->field($model, 'status')->dropDownList(Clients::getStatusesArray(), array('prompt' => 'Все'));
?>
    </div>

    <?php 
//= $form->field($model, 'address')
?>

    <?php 
// echo $form->field($model, 'tel')
?>

    <?php 
// echo $form->field($model, 'fax')
?>