CustomFields : Bootstrap integration

SVN:trunk[3945]
This commit is contained in:
Guillaume Lajarige
2016-03-11 14:34:16 +00:00
parent 7ea5176b56
commit 44ba3d7bf8
3 changed files with 16 additions and 17 deletions

View File

@@ -29,8 +29,16 @@ class BsSubFormFieldRenderer extends FieldRenderer
{
$oOutput = new RenderingOutput();
$oOutput->AddHtml('<div id="fieldset_'.$this->oField->GetGlobalId().'">');
if (($this->oField->GetLabel() !== null) && ($this->oField->GetLabel() !== ''))
{
$oOutput->AddHtml('<fieldset><legend>' . $this->oField->GetLabel() . '</legend>');
}
$oOutput->AddHtml('<div id="fieldset_' . $this->oField->GetGlobalId() . '">');
$oOutput->AddHtml('</div>');
if (($this->oField->GetLabel() !== null) && ($this->oField->GetLabel() !== ''))
{
$oOutput->AddHtml('</fieldset>');
}
$oRenderer = new BsFormRenderer($this->oField->GetForm());
$aRenderRes = $oRenderer->Render();