protected function makeElement(array $options, $html)
    {
        if (isset($options['type']) && $options['type'] == 'hidden') return $html;

        if (!empty($options['before-input'])) $html =  $options['before-input'].$html;
        $html = $this->getLabel($options).$html;
        if (!empty($options['after-input']))  $html .=  $options['after-input'];
        $html .= $this->html->getDivError($options);
        $html = $this->html->getFormGroup($options, $html);

        if (!empty($options['script'])) $this->appendScript($options['script']);
        if (!empty($options['mask'])) $this->appendScript($this->html->getMaskScript($options));

        return $this->html->getGrid($options, $html);
    }