foreach ($tableSchema->getColumnNames() as $attribute) { $column = $tableSchema->getColumn($attribute); if (!in_array($attribute, $generator->skippedColumns)) { echo " " . $generator->generateTabularFormField($attribute, $fk, $tableSchema) . ",\n"; } } ?> 'del' => [ 'type' => TabularForm::INPUT_STATIC, 'label' => '', 'value' => function($model, $key) { return Html::a('<i class="glyphicon glyphicon-trash"></i>', '#', ['title' => <?php echo $generator->generateString('Delete'); ?> , 'onClick' => 'delRow(' . $key . '); return false;', 'id' => '<?php echo yii\helpers\Inflector::camel2id($relations[1]); ?> -del-btn']); }, ], ], 'gridSettings' => [ 'panel' => [ 'heading' => '<h3 class="panel-title"><i class="glyphicon glyphicon-book"></i> ' . <?php echo $generator->generateString(yii\helpers\Inflector::camel2words($relations[1])); ?> . ' </h3>', 'type' => GridView::TYPE_INFO, 'before' => false, 'footer' => false, 'after' => Html::button('<i class="glyphicon glyphicon-plus"></i>' . <?php
echo " " . $generator->generateTabularFormField($attribute, $fk, $tableSchema) . ",\n"; } } ?> 'del' => [ 'type' => 'raw', 'label' => '', 'value' => function($model, $key) { return Html::a('<i class="glyphicon glyphicon-trash"></i>', '#', ['title' => <?php echo $generator->generateString('Delete'); ?> , 'onClick' => 'delRow<?php echo $relations[$generator::REL_CLASS]; ?> (' . $key . '); return false;', 'id' => '<?php echo yii\helpers\Inflector::camel2id($relations[$generator::REL_CLASS]); ?> -del-btn']); }, ], ], 'gridSettings' => [ 'panel' => [ 'heading' => false, 'type' => GridView::TYPE_DEFAULT, 'before' => false, 'footer' => false, 'after' => Html::button('<i class="glyphicon glyphicon-plus"></i>' . <?php echo $generator->generateString('Add ' . $humanize); ?> , ['type' => 'button', 'class' => 'btn btn-success kv-batch-create', 'onClick' => 'addRow<?php