protected function colorpickerField()
	{
		$format = 'hex';
		if (isset($this->htmlOptions['format'])) {
			$format = $this->htmlOptions['format'];
			unset($this->htmlOptions['format']);
		}

		if (isset($this->htmlOptions['events'])) {
			$events = $this->htmlOptions['events'];
			unset($this->htmlOptions['events']);
		}

		echo $this->getLabel();
		echo $this->getPrepend();
		$this->widget(
			'booster.widgets.TbColorPicker',
			array(
				'model' => $this->model,
				'attribute' => $this->attribute,
				'format' => $format,
				'events' => isset($events) ? $events : array(),
				'htmlOptions' => $this->htmlOptions,
			)
		);
		echo $this->getAppend();
		echo $this->getError() . $this->getHint();
	}