Last active
December 25, 2015 01:59
-
-
Save XORwell/6899818 to your computer and use it in GitHub Desktop.
examples for https://gist.github.com/XORwell/6899790
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -# prepend example #1 (content_tag) | |
| = f.input :date, :input_html => { :class => 'datepicker' }, :wrapper => :prepend do | |
| = f.input_field :date | |
| = content_tag :span, :class => 'input-group-addon' do | |
| = content_tag :span, nil, :class => 'glyphicon glyphicon-search' | |
| -# prepend example #2 (haml tag) | |
| = f.input :date, :input_html => { :class => 'datepicker' }, :wrapper => :prepend do | |
| = f.input_field :date | |
| %span.input-group-addon | |
| %span.glyphicon.glyphicon-search |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment