Основные настройки

field($model, 'name')->textInput(['maxlength' => true]) ?> field($model, 'type')->dropDownList(Item::getTypesArray()) ?> field($model, 'board_id')->dropDownList( ArrayHelper::map(Board::find()->all(), 'id', 'name') ) ?>
field($model, 'pin')->input('number') ?>
field($model, 'url')->textInput(['maxlength' => true]) ?>
field($model, 'update_interval')->input('number') ?> field($model, 'save_history_interval')->input('number') ?>

Дизайн

field($model, 'icon')->textInput(['maxlength' => true]) ?> field($model, 'bg')->dropDownList([ 'light-blue' => 'Светло-синий', 'aqua' => 'Бирюзовый', 'green' => 'Зеленый', 'yellow' => 'Желтый', 'red' => 'Красный', 'gray' => 'Серый', 'navy' => 'Navy', 'teal' => 'Teal', 'purple' => 'Фиолетовый', 'orange' => 'Оранжевый', 'maroon' => 'Бордовый', 'black' => 'Черный', ]) ?> field($model, 'class')->textInput(['maxlength' => true]) ?> field($model, 'room_id')->dropDownList( ArrayHelper::map(Room::find()->all(), 'id', 'name') ) ?> field($model, 'sort_order')->input('number') ?> field($model, 'active')->checkbox() ?>
isNewRecord ? 'Добавить' : 'Сохранить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>