/** * Render content * * @param \FrenchFrogs\Form\Element\Content $element * @return string */ public function content(Form\Element\Content $element) { if ($element->isFullWith()) { $html = '<div class="col-md-12">' . $element->getValue() . '</div>'; } else { $html = '<label class="col-md-3 control-label">' . $element->getLabel() . '</label>'; $html .= '<div class="col-md-9">' . $element->getValue() . '</div>'; } $class = Style::FORM_GROUP_CLASS; return html('div', compact('class'), $html); }
public function content(Form\Element\Content $element) { $html = '<label>' . $element->getLabel() . '</label>'; $html .= '<p class="well">' . $element->getValue() . '</p>'; $class = Style::FORM_GROUP_CLASS; $html = html('div', compact('class'), $html); return $html; }