Skip to content

Commit

Permalink
fix generated checkbox CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
mootensai authored Aug 20, 2016
1 parent 647c362 commit d08212c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crud/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,11 @@ public function generateTabularFormField($attribute, $fk, $tableSchema = null)
if ($column->autoIncrement) {
return "'$attribute' => ['type' => TabularForm::INPUT_HIDDEN, 'visible' => false]";
} elseif ($column->phpType === 'boolean' || $column->dbType === 'tinyint(1)') {
return "'$attribute' => ['type' => TabularForm::INPUT_CHECKBOX]";
return "'$attribute' => ['type' => TabularForm::INPUT_CHECKBOX,
'options' => [
'style' => 'position : relative; margin-top : -9px'
]
]";
} elseif ($column->type === 'text' || $column->dbType === 'tinytext') {
return "'$attribute' => ['type' => TabularForm::INPUT_TEXTAREA]";
} elseif ($column->dbType === 'date') {
Expand Down

0 comments on commit d08212c

Please sign in to comment.