Exemplo n.º 1
0
 /**
  * Render a link element
  *
  * @param \FrenchFrogs\Form\Element\Link $element
  * @return string
  */
 public function link(Form\Element\Link $element)
 {
     $html = '<label class="col-md-3 control-label">' . $element->getLabel() . '</label>';
     $html .= '<div class="col-md-9"><p class="form-control-static">' . html('a', ['href' => $element->getValue(), 'target' => '_blank'], $element->getValue()) . '</p></div>';
     $class = Style::FORM_GROUP_CLASS . ' row';
     return html('div', compact('class'), $html);
 }
Exemplo n.º 2
0
 /**
  * Render a link element
  *
  * @param \FrenchFrogs\Form\Element\Link $element
  * @return string
  */
 public function link(Form\Element\Link $element)
 {
     $html = '<label>' . $element->getLabel() . '</label>';
     $html .= '<p>' . html('a', ['href' => $element->getValue(), 'target' => '_blank'], $element->getValue()) . '</p>';
     $class = Style::FORM_GROUP_CLASS;
     $html = html('div', compact('class'), $html);
     return $html;
 }