diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ce01d42..0d41a64 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1310,19 +1310,8 @@ module ApplicationHelper templates = environment.send(kind).templates return '' if templates.count == 0 return hidden_field_tag("#{field_name}[template_id]", templates.first.id) if templates.count == 1 - - counter = 0 - radios = templates.map do |template| - counter += 1 - content_tag('li', labelled_radio_button(link_to(template.name, template.url, :target => '_blank'), "#{field_name}[template_id]", template.id, counter==1)) - end.join("\n") - - content_tag('div', content_tag('label', _('Profile organization'), :for => 'template-options', :class => 'formlabel') + - content_tag('p', _('Your profile will be created according to the selected template. Click on the options to view them.'), :style => 'margin: 5px 15px;padding: 0px 10px;') + - content_tag('ul', radios, :style => 'list-style: none; padding-left: 20px; margin-top: 0.5em;'), - :id => 'template-options', - :style => 'margin-top: 1em' - ) + 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);')) end def expirable_content_reference(content, action, text, url, options = {}) diff --git a/app/views/account/_signup_form.html.erb b/app/views/account/_signup_form.html.erb index 74d1655..056c834 100644 --- a/app/views/account/_signup_form.html.erb +++ b/app/views/account/_signup_form.html.erb @@ -29,6 +29,14 @@