Class: Conjoin::FormBuilder::DateInput
- Defined in:
- lib/conjoin/inputs/date.rb
Instance Attribute Summary
Attributes inherited from Input
#app, #data, #options, #record
Instance Method Summary collapse
Methods inherited from Input
#errors?, #id, #initialize, #nested_name, #render
Constructor Details
This class inherits a constructor from Conjoin::FormBuilder::Input
Instance Method Details
#display ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/conjoin/inputs/date.rb', line 4 def display [:date] = true [:value] = R18n.l [:value] = .delete :append_button content = super if content = mab do div class: 'input-group' do text! content div class: 'input-group-btn' do class: 'btn btn-primary', type: [:type] || 'button', 'on-click-get' => [:href] do text [:text] end end end end end content end |