diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 8470096645..32485fba3a 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -261,6 +261,8 @@ $sidebar_width: 210px; input, select, textarea { width: 240px; display: block; } + input.input-wide { + width: 495px; } input[type="checkbox"], input[type="radio"] { display: inline; width: auto; } diff --git a/app/controllers/admin/imports_controller.rb b/app/controllers/admin/imports_controller.rb index 519801fae3..d33724c58f 100644 --- a/app/controllers/admin/imports_controller.rb +++ b/app/controllers/admin/imports_controller.rb @@ -53,7 +53,7 @@ def import h[:cf_campus] = row[:campus] h[:cf_faculty] = row[:faculty] h[:cf_course_1] = row[:course_1] - h[:cf_course_2] = row[:course_2] + #h[:cf_course_2] = row[:course_2] h[:cf_church_affiliation] = row[:church_affiliation] end contact = Contact.find_or_initialize_by_email_and_last_name(row[:email_1], row[:last_name]) diff --git a/app/inputs/autocomplete_input.rb b/app/inputs/autocomplete_input.rb index fb2ea1ecc2..fa472c33e8 100644 --- a/app/inputs/autocomplete_input.rb +++ b/app/inputs/autocomplete_input.rb @@ -25,7 +25,7 @@ def input # Autocomplete latches onto the 'text_with_autocomplete' class. #------------------------------------------------------------------------------ def input_html_classes - super.push('text_with_autocomplete') + super.push('text_with_autocomplete input-wide') end # Returns the field as field1 diff --git a/app/views/fields/_group_table.html.haml b/app/views/fields/_group_table.html.haml index 6a4a296e06..dd78813aab 100644 --- a/app/views/fields/_group_table.html.haml +++ b/app/views/fields/_group_table.html.haml @@ -2,12 +2,18 @@ - field_group.fields.without_pairs.in_groups_of(2, false) do |group| %tr - group.each_with_index do |field, i| - %td - - if field.hint.present? - = image_tag "info_tiny.png", :title => field.hint, :class => "tooltip-icon" - - if field.as == 'check_boxes' - - value = f.object.send(field.name) - - checked = YAML.load(value.to_s) - = f.input field.name, field.input_options.merge(:checked => checked) + - span = field.as == 'autocomplete' ? 3 : 1 + - if field.as == 'autocomplete' && i !=0 #autocomplete takes up one whole line + %tr + %td{:colspan => span} + = f.input field.name, field.input_options + - else + %td{:colspan => span} + - if field.hint.present? + = image_tag "info_tiny.png", :title => field.hint, :class => "tooltip-icon" + - if field.as == 'check_boxes' + - value = f.object.send(field.name) + - checked = YAML.load(value.to_s) + = f.input field.name, field.input_options.merge(:checked => checked) - if i == 0 %td= spacer diff --git a/lib/tasks/workflow.rake b/lib/tasks/workflow.rake index 4528e26fc5..bd357eb9e0 100644 --- a/lib/tasks/workflow.rake +++ b/lib/tasks/workflow.rake @@ -652,7 +652,7 @@ namespace :ffcrm do contact.cf_faculty = row[:cf_faculty] contact.cf_course_1 = row[:cf_course_1] - contact.cf_course_2 = row[:cf_course_2] + #contact.cf_course_2 = row[:cf_course_2] puts (contact.first_name + " " + contact.last_name)