Exemplo n.º 1
0
 /**
  * Create a email input field.
  *
  * @param  string  $name
  * @param  string  $value
  * @param  array   $options
  *
  * @return string
  */
 public function email($name, $value = null, $options = [])
 {
     $this->addErrorClass($name, $options);
     $tags['input'] = parent::email($name, $value, $options);
     $tags['error'] = $this->getErrorTag($name);
     return $this->buildTags($tags);
 }
 public function email($name, $value = null, $options = array())
 {
     if (strpos(@$options['class'], 'form-control') === false) {
         @($options['class'] .= ' form-control');
     }
     return parent::email($name, $value, $options);
 }
Exemplo n.º 3
0
 /**
  * Create an e-mail input field.
  *
  * @param string $name
  * @param string $value
  * @param array $options
  * @return string 
  * @static 
  */
 public static function email($name, $value = null, $options = array())
 {
     return \Illuminate\Html\FormBuilder::email($name, $value, $options);
 }
Exemplo n.º 4
0
 /**
  * {@inheritdoc}
  * @param string      $name       The name of the email input
  * @param string|null $value      The default value of the input
  * @param array       $attributes The attributes of the email input
  * @return string
  */
 public function email($name, $value = null, $attributes = array())
 {
     $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL;
     return parent::email($name, $value, $attributes);
 }
Exemplo n.º 5
0
 /**
  * @param Field $field
  * @return string
  */
 public function emailField(Field $field)
 {
     return $this->builder->email($field->name, $field->value, $field->getAttributes());
 }
Exemplo n.º 6
0
 /**
  * Create an e-mail input field.
  *
  * @param  string  $name
  * @param  string  $value
  * @param  array   $options
  * @return string
  */
 public function email($name, $value = null, $options = array())
 {
     $this->appendReadOnly($options);
     return parent::email($name, $value, $options);
 }
Exemplo n.º 7
0
 /**
  * Create an e-mail input field.
  *
  * @param  string  $name
  * @param  string  $value
  * @param  array   $options
  * @return string
  */
 public function email($name, $value = null, $options = array())
 {
     return parent::email($name, $value, $this->addClass($options, static::TEXT_INPUT_CLASS));
 }