Permalink
Browse files

_form add simple textarea

  • Loading branch information...
1 parent f1d03ca commit 9434a83e22ee22b21487a247b8211d5920b0195f @yilliot yilliot committed Feb 28, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 protected/modules/backstage/views/model/_form.php
@@ -73,6 +73,8 @@
'theme_advanced_statusbar_location' => 'bottom',
),
));
+ } elseif ($attr['control'] == 'textarea') {
+ echo $form->textarea($model, $name);
} elseif ($attr['control'] == 'datetime') {
Yii::import('backstage.extensions.kdateselect.KDateSelect');
$this->widget('KDateSelect', array(

1 comment on commit 9434a83

Owner

kahwee commented on 9434a83 Mar 5, 2012

Should we support textarea automatically? Maybe if TEXT is the data type in MySQL, we return textarea as the default control.

Please sign in to comment.