/** * Generate time inputs. * * ### Options: * * See dateTime() for time options. * * @param string $fieldName Prefix name for the SELECT element * @param array $options Array of Options * @return string Generated set of select boxes for time formats chosen. * @see Cake\View\Helper\FormHelper::dateTime() for templating options. */ public function time($fieldName, array $options = []) { $fields = ['hour' => true, 'minute' => true, 'second' => false, 'timeFormat' => false]; $this->templates(['dateWidget' => $this->_getDatetimeTemplate($fields, $options)]); return parent::time($fieldName, $options); }
public function time($fieldName, array $options = []) { $options = $this->_injectStyles($options, 'form-control'); return parent::time($fieldName, $options); }