-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cfa_select to the form builder (#50)
Add cfa_select to the form builder Also bumps version
- Loading branch information
1 parent
53e3a14
commit 9e71bbc
Showing
8 changed files
with
123 additions
and
6 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<%= fields_for(:form, @form, builder: Cfa::Styleguide::CfaFormBuilder) do |f| %> | ||
<%= f.cfa_select( | ||
:example_method_name, | ||
"Example select - without label", | ||
[ | ||
["Blue", :blue], | ||
["Green", :green], | ||
], | ||
hide_label: true, | ||
help_text: "Choose your favorite", | ||
) %> | ||
<%= f.cfa_select( | ||
:example_method_name, | ||
"Example select - with label", | ||
[ | ||
["Blue", :blue], | ||
["Green", :green], | ||
], | ||
help_text: "Choose your favorite", | ||
) %> | ||
<%= f.cfa_select( | ||
:example_method_with_validation, | ||
"Example select - with error", | ||
[ | ||
["Blue", :blue], | ||
["Green", :green], | ||
], | ||
help_text: "Choose your favorite", | ||
) %> | ||
<% end %> |
2 changes: 1 addition & 1 deletion
2
app/views/examples/form_builder/_cfa_single_tap_button.html.erb
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,5 +1,5 @@ | ||
module Cfa | ||
module Styleguide | ||
VERSION = "0.5.2" | ||
VERSION = "0.5.3" | ||
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