public function code()
    {
        $fieldWrapper = new HTMLBrick('div', $this->field());
        $fieldWrapper->addClass('col-lg-9');

        $formGroup = new HTMLBrick('div', $this->label().$fieldWrapper);
        $formGroup->addClass('form-group');
        if ($this->hasError) {
            $formGroup->addClass('has-error');
        }

        return $formGroup;
    }