Example #1
0
 /**
  * Render Label iunput
  *
  * @param \FrenchFrogs\Form\Element\Label $element
  * @return string
  */
 public function label(Form\Element\Label $element)
 {
     $html = '<label class="col-md-3 control-label">' . $element->getLabel() . '</label>';
     $html .= '<div class="col-md-9"><p class="form-control-static">' . $element->getValue() . '</p></div>';
     $class = Style::FORM_GROUP_CLASS . ' row';
     return html('div', compact('class'), $html);
 }
Example #2
0
 public function label(Form\Element\Label $element)
 {
     $html = '<label>' . $element->getLabel() . '</label>';
     $html .= '<p>' . $element->getValue() . '</p>';
     $class = Style::FORM_GROUP_CLASS;
     $html = html('div', compact('class'), $html);
     return $html;
 }