예제 #1
0
                    },
                    'contentOptions' => ['nowrap' => 'nowrap']
                ],
PHP;
    // action buttons first
    echo $actionButtonColumn;
    $count = 0;
    echo "\n";
    // code-formatting
    foreach ($safeAttributes as $attribute) {
        $format = $generator->columnFormat($attribute, $model);
        if ($format == false) {
            continue;
        }
        $format = ++$count < 10 ? "{$format},\n" : "        /*" . trim($format) . "*/\n";
        echo TabPadding::pad($format, 2, true);
    }
    ?>
            ],
        ]); ?>
    </div>

<?php 
} else {
    ?>
        <?php 
    echo "<?= ";
    ?>
 ListView::widget([
            'dataProvider' => $dataProvider,
            'itemOptions' => ['class' => 'item'],
예제 #2
0
 public function activeField($attribute)
 {
     return TabPadding::pad(parent::activeField($attribute));
 }
예제 #3
0
 public function relationGrid($name, $relation, $showAllRecords = false)
 {
     $data = parent::relationGrid($name, $relation, $showAllRecords);
     $data = str_replace('return Url::toRoute', "\$params['ru'] = ReturnUrl::getToken();\n                return Url::toRoute", $data);
     return TabPadding::pad($data, 1);
 }