This repository has been archived by the owner on Oct 12, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- puts all the :year, :month, and other columns into `div.row`. - also fixes the grid column styling - date input fragments should fill in whole 12 grid units (see: `Timeish::FRAGMENT_CLASSES`, `DateSelectInput::FRAGMENT_CLASSES`, `TimeSelectInput::FRAGMENT_CLASSES`
- Loading branch information
1 parent
5a26414
commit 633937e
Showing
4 changed files
with
33 additions
and
55 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
module FormtasticBootstrap | ||
module Inputs | ||
class DateSelectInput < Formtastic::Inputs::DateSelectInput | ||
FRAGMENT_CLASSES = { | ||
:year => "col-xs-4", | ||
:month => "col-xs-5", | ||
:day => "col-xs-3" | ||
} | ||
|
||
include Base | ||
include Base::Timeish | ||
end | ||
end | ||
end | ||
end |
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
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