<?php echo $form->field($model, 'name')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'class_name')->dropDownList(array_combine(Reports::$classes_list, array_map(function ($v) { return $v::getModelLabel(); }, Reports::$classes_list)), ['maxlength' => true]); ?> <?php echo $form->field($model, 'group_id')->dropDownList(ArrayHelper::map($model->getGroupList(), 'id', 'name')); ?> <?php echo $form->field($model, 'show')->radioList(Reports::listShowOptions()); ?> <?php if (in_array($model->show, ['graph', 'both'])) { ?> <div class="panel panel-default"> <div class="panel-body"> <?php echo $form->field($model, 'graph_x')->dropDownList(ArrayHelper::map($model->columns, 'alias', 'label')); ?> </div> </div> <?php