コード例 #1
0
ファイル: _form.php プロジェクト: vovancho/yii2test
?>

    <?php 
echo $form->field(Proc::RelatModelValue($model, 'idTrosnov.idMattraffic.idMol.idbuild', new Build()), 'build_name', ['enableClientValidation' => false])->textInput(['maxlength' => true, 'class' => 'form-control', 'disabled' => true]);
?>

    <?php 
echo $form->field(Proc::RelatModelValue($model, 'idTrosnov', new TrOsnov()), 'tr_osnov_kab', ['enableClientValidation' => false])->textInput(['maxlength' => true, 'class' => 'form-control', 'disabled' => true]);
?>

    <?php 
echo $form->field(Proc::RelatModelValue($model, 'idTrosnov.idMattraffic.idMol.idperson', new Authuser()), 'auth_user_fullname', ['enableClientValidation' => false])->textInput(['maxlength' => true, 'class' => 'form-control', 'disabled' => true]);
?>

    <?php 
echo $form->field(Proc::RelatModelValue($model, 'idTrosnov.idMattraffic.idMol.iddolzh', new Dolzh()), 'dolzh_name', ['enableClientValidation' => false])->textInput(['maxlength' => true, 'class' => 'form-control', 'disabled' => true]);
?>

    <?php 
if ($model->isNewRecord) {
    ?>

        <div class="panel panel-<?php 
    echo Yii::$app->params['panelStyle'];
    ?>
">
            <div class="panel-heading"><?php 
    echo Html::encode('Акт установки материальной ценности');
    ?>
</div>
            <div class="panel-body">