mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +02:00
parent
1cd4d2854f
commit
fc134ee7fb
2 changed files with 12 additions and 0 deletions
|
@ -12,4 +12,9 @@ module FormHelper
|
|||
|
||||
text_field(object_name, method, options)
|
||||
end
|
||||
|
||||
def language_select(object, method, choices = nil, options = {}, html_options = {}, &block)
|
||||
choices = options_for_select({ en: 'English', et: 'Estonian' }.invert, options[:selected])
|
||||
select(object, method, choices, options, html_options, &block)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue