Skip to content

Instantly share code, notes, and snippets.

@seoyoochan
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seoyoochan/c83f742f354fbef0a7e1 to your computer and use it in GitHub Desktop.
Save seoyoochan/c83f742f354fbef0a7e1 to your computer and use it in GitHub Desktop.
<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>
<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>
<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>
en:
collection:
gender:
female_html: <i class="fa fa-female"><i>Female
male_html: <i class="fa fa-male"><i>Male
ko:
collection:
gender:
female_html: <i class="fa fa-female"><i>여자
male_html: <i class="fa fa-male"><i>남자
@seoyoochan
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment