Esempio n. 1
0
use backend\widgets\ActiveForm;
use common\models\Group;
use yii\helpers\ArrayHelper;
use kartik\date\DatePicker;
use yii\widgets\MaskedInput;
use common\models\State;
use kartik\widgets\Select2;
/* @var $this yii\web\View */
/* @var $model common\models\Client */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="client-form">

    <?php 
$form = ActiveForm::begin(['enableAjaxValidation' => true]);
?>

    <?php 
echo $form->field($model, 'id_group', ['options' => ['class' => 'col-xs-6']])->dropDownList(ArrayHelper::map(Group::find()->asArray()->all(), 'id_group', 'group_id'), ['prompt' => 'Select...'])->label('Group <span style="color:red">*</span>');
?>



	<?php 
echo $form->field($userModel, 'first_name', ['options' => ['class' => 'col-xs-6']])->textInput(['maxlength' => true])->label('First Name <span style="color:red">*</span>');
?>
    <?php 
if (!$model->isNewRecord) {
    ?>
    		<?php 
Esempio n. 2
0
<?php

use yii\helpers\Html;
use backend\widgets\ActiveForm;
use yii\widgets\MaskedInput;
use common\models\Institution;
use yii\helpers\ArrayHelper;
/* @var $this yii\web\View */
/* @var $model common\models\Office */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="office-form">

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

    <?php 
echo $form->field($model, 'id_institution')->dropDownList(ArrayHelper::map(Institution::find()->all(), 'id_institution', 'institution_name'))->label('Institution');
?>

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

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

    <?php 
Esempio n. 3
0
<?php

use yii\helpers\Html;
use backend\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\search\ClientSearch */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="client-search">

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

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

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

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

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