From bb996411335870a4deeac5e6d76d183d1d5a2676 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 3 Nov 2014 15:04:37 -0300 Subject: [PATCH] Fix memberships controller tests --- app/helpers/application_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b279d52..f3846d2 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1316,7 +1316,9 @@ module ApplicationHelper end else options = options_for_select(templates.collect{ |template| [template.name, template.id]}) - content_tag('div', content_tag('label', _('Profile organization'), :class => 'formlabel') + (select_tag 'profile_data[template_id]', options, :onchange => 'show_fields_for_template(this);')) + content_tag('div', + content_tag('div', content_tag('label', _('Profile organization'), :class => 'formlabel') + (select_tag 'profile_data[template_id]', options, :onchange => 'show_fields_for_template(this);')), + :id => 'template-options') end end -- libgit2 0.21.2