Class: Backend::KujakuHelper::Kujaku::DateFeather

Inherits:
ChoiceFeather show all
Defined in:
app/helpers/backend/kujaku_helper.rb

Overview

Date search field

Instance Attribute Summary

Attributes inherited from Feather

#uid

Instance Method Summary collapse

Methods inherited from Feather

#feather_name, feather_name, inherited, #initialize, #inspect

Constructor Details

This class inherits a constructor from Backend::KujakuHelper::Kujaku::Feather

Instance Method Details

#configure(*args) ⇒ Object


174
175
176
# File 'app/helpers/backend/kujaku_helper.rb', line 174

def configure(*args)
  @name = args.shift || @options.delete(:name) || :d
end

#to_htmlObject


178
179
180
181
182
183
# File 'app/helpers/backend/kujaku_helper.rb', line 178

def to_html
  html = @template.(:label, @options[:label] || :select_date.tl)
  html << ' '.html_safe
  html << @template.date_field_tag(@name, @template.params[@name])
  html
end