Ejemplo n.º 1
0
 /**
  * @since  2014-05-09
  * @author Patrick Forget <*****@*****.**>
  */
 public function format(\Informant\Input\BaseElement $input, $options = array())
 {
     if (!isset($options['attributes'])) {
         $options['attributes'] = array();
     }
     //if
     $options['attributes']['type'] = 'hidden';
     return parent::format($input, $options);
 }
Ejemplo n.º 2
0
 /**
  * @since  2014-05-09
  * @author Patrick Forget <*****@*****.**>
  */
 public function format(\Informant\Input\BaseElement $input, $options = array())
 {
     if (!isset($options['attributes'])) {
         $options['attributes'] = array();
     }
     //if
     $options['attributes'] = array_merge(array('class' => 'form-control'), $options['attributes']);
     return parent::format($input, $options);
 }