Last active
August 29, 2015 14:03
-
-
Save seoyoochan/c83f742f354fbef0a7e1 to your computer and use it in GitHub Desktop.
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="gender_container"> | |
<%= f.collection_radio_buttons :gender, [["F", t("collection.gender.female_html") ], ["M", t("collection.gender.male_html")]], :first, :last, label: false, wrapper: false %> | |
</div> |
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="locale_container"> | |
<select class="select optional locale" id="user_locale" name="user[locale]"><option value="en">English</option> | |
<option value="ko">한국어</option></select> | |
</div> | |
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="locale_container"> | |
<%= f.input :locale, collection: @locales.map { |k,v| [v,k] }, selected: @locales[:en], label: false, wrapper: false, input_html: { class: "locale" } %> | |
</div> |
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
en: | |
collection: | |
gender: | |
female_html: <i class="fa fa-female"><i>Female | |
male_html: <i class="fa fa-male"><i>Male |
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
ko: | |
collection: | |
gender: | |
female_html: <i class="fa fa-female"><i>여자 | |
male_html: <i class="fa fa-male"><i>남자 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to put female icon tag for female label and male icon tag for male label!
I am really struggling to figure this out..
You can see it here, http://s12.postimg.org/a56sxsiv1/2014_07_08_4_54_36.png