Ejemplo n.º 1
0
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\models\ProviderType;
/* @var $this yii\web\View */
/* @var $model common\models\Provider */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="provider-form">

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

    <?php 
echo $form->field($model, 'type')->dropDownList(ProviderType::getList());
?>

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

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

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

    <?php 
Ejemplo n.º 2
0
/* @var $form yii\widgets\ActiveForm */
?>

<div class="provider-search">

    <?php 
$form = ActiveForm::begin(['action' => ['index'], 'method' => 'get', 'options' => ['class' => 'form-horizontal']]);
?>

    <div class="form-group form-group-md">
        <?php 
//= $form->field($model, 'id')
?>

        <?php 
echo $form->field($model, 'type', ['options' => ['class' => 'col-md-2']])->dropDownList(ProviderType::getList());
?>

        <?php 
echo $form->field($model, 'name', ['options' => ['class' => 'col-md-2']]);
?>

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

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

        <?php