예제 #1
0
 public function select(array $configs, $options)
 {
     $label = !empty($configs['name']) ? str_replace('_', ' ', ucwords(trim($configs['name']))) : '';
     return '<div class="form-group row">
             ' . (empty($label) ? '' : '<div class="col-md-4 control-label text-right"><label>' . $label . '</label></div>') . '<div class="col-md-6">' . parent::plainSelect($configs, $options) . '
     </div>
     </div>';
 }
예제 #2
0
 /**
  * Generate a select.
  *
  * @param array $configs
  * @param array $options
  *
  * @return string
  */
 public function select(array $configs, array $options)
 {
     $label = !empty($options['name']) ? ucwords($options['name']) : '';
     return '
     <div class="input-field">
     ' . parent::plainSelect(array_merge(['id' => $this->genId($label)], $configs), $options) . (empty($label) | substr($label, 0, 1) == '_' ? '' : '<label for="' . $label . '">' . $this->inputToRead($label) . '</label>') . '
     </div>
      ';
 }