Class: ODDB::Html::View::LimitForm
- Inherits:
-
HtmlGrid::Form
- Object
- HtmlGrid::Form
- ODDB::Html::View::LimitForm
- Includes:
- HtmlGrid::ErrorMessage
- Defined in:
- lib/oddb/html/view/limit.rb
Constant Summary collapse
- COMPONENTS =
{ [0,0] => :query_limit_poweruser_365, [2,0] => :query_limit_poweruser_a, [0,1] => :query_limit_poweruser_30, [2,1] => :query_limit_poweruser_b, [0,2] => :query_limit_poweruser_1, [2,2] => :query_limit_poweruser_c, [2,3] => :submit, }
- LABELS =
true
- LEGACY_INTERFACE =
false
- EVENT =
:proceed_poweruser
Instance Method Summary collapse
- #init ⇒ Object
- #query_limit_poweruser_1(model) ⇒ Object
- #query_limit_poweruser_30(model) ⇒ Object
- #query_limit_poweruser_365(model) ⇒ Object
- #query_limit_poweruser_a(model) ⇒ Object
- #query_limit_poweruser_b(model) ⇒ Object
- #query_limit_poweruser_c(model) ⇒ Object
- #query_limit_poweruser_radio(value) ⇒ Object
- #query_limit_poweruser_txt(key, duration) ⇒ Object
Instance Method Details
#init ⇒ Object
26 27 28 29 |
# File 'lib/oddb/html/view/limit.rb', line 26 def init super end |
#query_limit_poweruser_1(model) ⇒ Object
44 45 46 |
# File 'lib/oddb/html/view/limit.rb', line 44 def query_limit_poweruser_1(model) query_limit_poweruser_radio(1) end |
#query_limit_poweruser_30(model) ⇒ Object
47 48 49 |
# File 'lib/oddb/html/view/limit.rb', line 47 def query_limit_poweruser_30(model) query_limit_poweruser_radio(30) end |
#query_limit_poweruser_365(model) ⇒ Object
50 51 52 |
# File 'lib/oddb/html/view/limit.rb', line 50 def query_limit_poweruser_365(model) query_limit_poweruser_radio(365) end |
#query_limit_poweruser_a(model) ⇒ Object
30 31 32 |
# File 'lib/oddb/html/view/limit.rb', line 30 def query_limit_poweruser_a(model) query_limit_poweruser_txt(:query_limit_poweruser_a, 365) end |
#query_limit_poweruser_b(model) ⇒ Object
33 34 35 36 |
# File 'lib/oddb/html/view/limit.rb', line 33 def query_limit_poweruser_b(model) @lookandfeel.lookup(:query_limit_poweruser_b, ODDB.config.query_limit, ODDB::Util::Money.new(ODDB.config.prices["org.oddb.de.view.30"])) end |
#query_limit_poweruser_c(model) ⇒ Object
37 38 39 |
# File 'lib/oddb/html/view/limit.rb', line 37 def query_limit_poweruser_c(model) query_limit_poweruser_txt(:query_limit_poweruser_c, 1) end |
#query_limit_poweruser_radio(value) ⇒ Object
53 54 55 56 57 |
# File 'lib/oddb/html/view/limit.rb', line 53 def query_limit_poweruser_radio(value) radio = HtmlGrid::InputRadio.new('days', @model, @session, self) radio.value = value radio end |