% if profile.person? %>
<%= labelled_radio_button _("Name"), :invite_friend_by, 1, true, :id => "invite_friend_by_name", :class => "invite_friend_by" %> <%= labelled_radio_button _("Email"), :invite_friend_by, 2, false, :id => "invite_friend_by_email", :class => "invite_friend_by" %>
<%= description %>
<%= form_tag :action => 'invite_registered_friend' do %> <% search_action = url_for(:action => 'search') %> <%= token_input_field_tag( :q, 'search-people', search_action, { :hint_text => _('Type in the person\'s %{search_fields}') % {:search_fields => @search_fields}, :focus => false }) %> <% button_bar do %> <%= submit_button('save', _('Invite'))%> <%= button('cancel', _('Cancel'), profile.url)%> <% end %> <% end %>