Example #1
0
 /**
  * Render a disabled field
  *
  * @param Field $field
  *
  * @return Input
  */
 public function createDisabledField(Field $field)
 {
     $field->disabled();
     return Input::create('text', $field->getName(), $field->getValue(), $field->getAttributes());
 }
Example #2
0
 /**
  * Render a disabled field
  *
  * @param Field $field
  *
  * @return Element
  */
 public function createDisabledField(Field $field)
 {
     return Element::create('span', $field->getValue(), $field->getAttributes());
 }
Example #3
0
 /**
  * Render a plain text field
  *
  * @param Field $field
  *
  * @return Element
  */
 public function createPlainTextField(Field $field)
 {
     $label = $field->getLabel();
     if ($label) {
         $label->for('');
     }
     return Element::create('div', $field->getValue(), $field->getAttributes());
 }