<?php

/**
 * @var $this yii\web\View
 * @var $model common\models\Lang
 */
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
ActiveForm::$autoIdPrefix = 'a';
?>
<div class="lang-form">

    <?php 
$form = ActiveForm::begin(['layout' => 'horizontal', 'fieldConfig' => ['horizontalCssClasses' => ['label' => 'col-sm-2', 'offset' => 'col-sm-offset-2', 'wrapper' => 'col-sm-10']]]);
?>

    <?php 
echo $form->errorSummary($model);
?>

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

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

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