diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 6d64f14..b699c99 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1338,7 +1338,7 @@ module ApplicationHelper counter = 0 radios = klass.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)) + content_tag('li', labelled_radio_button(template.name, "#{field_name}[template_id]", template.id, counter==1)) end.join("\n") content_tag('div', content_tag('span', _('Template:')) + diff --git a/app/models/profile.rb b/app/models/profile.rb index 1a8126a..23d1a1f 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -281,7 +281,7 @@ class Profile < ActiveRecord::Base def valid_template if template_id.present? and !template.is_template - errors.add(:template, _('%{fn} is not a template.').fix_i18n) + errors.add(:template, _('is not a template.')) end end diff --git a/app/views/profile_editor/edit.rhtml b/app/views/profile_editor/edit.rhtml index 046ce39..0c5ec83 100644 --- a/app/views/profile_editor/edit.rhtml +++ b/app/views/profile_editor/edit.rhtml @@ -5,7 +5,9 @@ <% labelled_form_for :profile_data, @profile, :html => { :id => 'profile-data', :multipart => true } do |f| %> <% if user.has_permission?('manage_environment_templates', profile.environment) %> - <%= labelled_form_field check_box(:profile_data, :is_template) + _('Is a template?'), '' %> +