Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

lang selection in dropdown

  • Loading branch information...
commit c79b9d6693105cf39c4ef848d9f8077c6ad0d4bf 1 parent 7c28146
Alex Mekelburg authored
View
1  .gitignore
@@ -37,6 +37,7 @@ public/TEST
public/csv
public/csv/*
public/pdf/*
+public/pdfs/*
public/system/*
public/partners
reg_colorado.yml
View
13 app/views/registrants/show.html.haml
@@ -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
View
6 db/migrate/20131210193029_add_general_survey_questions_to_partners.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.