Closed renecatharsis closed 12 years ago
Hi,
Can you paste an example in order to reproduce the issue?
Thanks! Christian.
Hi Christian,
of course, should have done that earlier anyway:
<?php
class Default_Form_Register extends Twitter_Bootstrap_Form
{
public function init()
{
$this->addElement(
'text',
'someelement',
array(
'label' =>TEXT_FOR_THIS_ELEMENT
)
);
$this->addElement(
'button',
'somebutton',
array(
'label' => 'TEXT_FOR_THIS_BUTTON',
'type' => 'submit',
'buttonType' => 'success',
'icon' => 'ok'
)
);
}
}
Hi,
I think you should use one of the form variants in order to get the correct HTML, instead of extending the base Twitter_Bootstrap_Form
class.
Try to extend one of this classes Twitter_Bootstrap_Form_Horizontal
, Twitter_Bootstrap_Form_Vertical
, Twitter_Bootstrap_Form_Search
or Twitter_Bootstrap_Form_Inline
.
Regards, Christian.
Hi,
when generating a form via extending Twitter_Bootstrap_Form, invalid HTML gets generated. Within the FORM tag are DD tags and DT tags, but the surrounding DL tag is missing:
form dt dd dt dd form