Permalink
Browse files

lang selection in dropdown

  • Loading branch information...
1 parent 7c28146 commit c79b9d6693105cf39c4ef848d9f8077c6ad0d4bf Alex Mekelburg committed Dec 10, 2013
View
@@ -37,6 +37,7 @@ public/TEST
public/csv
public/csv/*
public/pdf/*
+public/pdfs/*
public/system/*
public/partners
reg_colorado.yml
@@ -2,9 +2,16 @@
#other_language_link
- if @registrant.new_record?
- - RockyConf.enabled_locales.each do |loc|
- - unless loc.to_s == I18n.locale.to_s
- = link_to t('txt.registration.in_language_name', :locale=>loc), new_registrant_path(params.dup.merge({:locale=>loc})), :class => 'other_language_link'
+ :javascript
+ function followOtherLanguageLink() {
+ window.location = $("#other_language_link select").val()
+ }
+ %select{:onchange=>"followOtherLanguageLink();"}
+ %option Select Language
+ - RockyConf.enabled_locales.each do |loc|
+ - unless loc.to_s == I18n.locale.to_s
+ %option{:value=>new_registrant_path(params.dup.merge({:locale=>loc}))}
+ = t('txt.registration.in_language_name', :locale=>loc)
= form_for(@registrant) do |form|
= render :partial => 'form', :object => form
@@ -0,0 +1,6 @@
+class AddGeneralSurveyQuestionsToPartners < ActiveRecord::Migration
+ def change
+ add_column :partners, :survey_question_1, :text
+ add_column :partners, :survey_question_2, :text
+ end
+end

0 comments on commit c79b9d6

Please sign in to comment.