DirectorDatafieldForm: textarea height, code cleanup
This commit is contained in:
parent
ef28a18af2
commit
9cfaf4d71f
|
@ -10,9 +10,9 @@ class DirectorDatafieldForm extends DirectorObjectForm
|
|||
public function setup()
|
||||
{
|
||||
$this->addElement('text', 'varname', array(
|
||||
'required' => true,
|
||||
'label' => $this->translate('Field name'),
|
||||
'description' => $this->translate('The unique name of the field')
|
||||
'description' => $this->translate('The unique name of the field'),
|
||||
'required' => true,
|
||||
));
|
||||
|
||||
$this->addElement('text', 'caption', array(
|
||||
|
@ -22,7 +22,8 @@ class DirectorDatafieldForm extends DirectorObjectForm
|
|||
|
||||
$this->addElement('textarea', 'description', array(
|
||||
'label' => $this->translate('Description'),
|
||||
'description' => $this->translate('A description about the field')
|
||||
'description' => $this->translate('A description about the field'),
|
||||
'rows' => '3',
|
||||
));
|
||||
|
||||
$this->addElement('select', 'datatype', array(
|
||||
|
@ -30,7 +31,7 @@ class DirectorDatafieldForm extends DirectorObjectForm
|
|||
'description' => $this->translate('Field type'),
|
||||
'required' => true,
|
||||
'multiOptions' => $this->enumDataTypes(),
|
||||
'class' => 'autosubmit'
|
||||
'class' => 'autosubmit',
|
||||
));
|
||||
|
||||
if ($class = $this->object()->datatype) {
|
||||
|
|
Loading…
Reference in New Issue