Last active
August 29, 2015 14:06
-
-
Save t-oginogin/0f30e7c3e94a40c3fefe to your computer and use it in GitHub Desktop.
Rails date_selectをBootstrapを使っていい感じにする ref: http://qiita.com/t_oginogin/items/519fb52e1708e26a8b73
This file contains 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
@import "bootstrap-sprockets"; | |
@import "bootstrap"; | |
.bootstrap-date { | |
display: inline-block; | |
width: auto; | |
} |
This file contains 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
<div class="row"> | |
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3"> | |
stylesheet display設定を追加: | |
</div> | |
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3"> | |
<%= date_select 'date-with-stylesheet-inline', '', {use_month_numbers: true}, {class: "form-control bootstrap-date"} %> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment