%s';
  protected $_labelDom = '';
  //protected $_inputGroupDom = '
%s
';
  public static function callback($args)
  {
    return @new self($args[0], $args[1]);
  }
  public function image($name, $value='', $label='', $attr = array())
  {
    $limit = $attr['limit'] ? $attr['limit'] : 1;
    $html = $this->label($label, $name, $attr)
      .'';
    if ($attr['help-block']) {
      $html.=''.$attr['help-block'].'';
    }
    return $html;
  }
  public function date($name, $value='', $label='', $attr = array())
  {
    $attr['data-plugin'] = 'date-picker';
    $html = $this->label($label, $name, $attr)
      .''
      .$this->input($name, $value, '', $attr)
      .''
      .'
';
    return $html;
  }
  public function richtext($name, $value='', $label='', $attr = array())
  {
    $attr['data-plugin'] = 'editor';
    return $this->textarea($name, $value, $label, $attr);
  }
}