This repository was archived by the owner on Aug 31, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy path_select.haml
More file actions
19 lines (19 loc) · 1.42 KB
/
_select.haml
File metadata and controls
19 lines (19 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%form.form-inline.pull-right
%select.form-control#languageselect{:onchange => "window.location.href = this.options[this.selectedIndex].value"}
%optgroup{:label => "Select your language"}
%option{:value => "af", :selected => code_matches("af")} Afrikaans
%option{:value => "ar", :selected => code_matches("ar")} العربية
%option{:value => "ca", :selected => code_matches("ca")} Català
%option{:value => "da", :selected => code_matches("da")} Dansk
%option{:value => "de", :selected => code_matches("de")} Deutsch
%option{:value => "en", :selected => code_matches("en")} English
%option{:value => "es", :selected => code_matches("es")} Español
%option{:value => "fr", :selected => code_matches("fr")} Français
%option{:value => "it", :selected => code_matches("it")} Italiano
%option{:value => "ko", :selected => code_matches("ko")} 한국어
%option{:value => "ms", :selected => code_matches("ms")} Bahasa melayu
%option{:value => "nl", :selected => code_matches("nl")} Nederlands
%option{:value => "pl", :selected => code_matches("pl")} Polski
%option{:value => "ro", :selected => code_matches("ro")} Română
%option{:value => "sv", :selected => code_matches("sv")} Svenska
%option{:value => "th", :selected => code_matches("th")} ไทย