Module: SimpleForm::KeitaiInput
- Included in:
- Inputs::AlphabetInput, Inputs::HankakuKanaInput, Inputs::HiraganaInput, Inputs::KeitaiNumericInput
- Defined in:
- lib/simple_form-jpmobile.rb
Instance Method Summary collapse
Instance Method Details
#input ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/simple_form-jpmobile.rb', line 7 def input if mobile if mobile.docomo? [:type] ||= "text" [:style] = %Q{-wap-input-format:"*<ja:#{docomo_wap_input_format}>"} elsif mobile.au? || mobile.softbank? [:type] ||= "text" [:istyle] ||= istyle [:mode] ||= mode [:style] ||= %Q{-wap-input-format:*#{other_wap_input_format};} end end super end |
#mobile ⇒ Object
3 4 5 |
# File 'lib/simple_form-jpmobile.rb', line 3 def mobile @builder.template.request.mobile end |