<% if profile.person? %>

<%= _('Invite your friends') %>

<% else %>

<%= _('Invite your friends to join %s') % profile.name %>

<% end %> <%= render :partial => 'invite/select_address_book' %> <% unless profile.person? %>

<%= _('Invite others registered users') %>

<%= _('You can also search for your friends\' profiles and invite them to join this community.') %>

<% form_tag :action => 'invite_registered_friend' do %> <% search_action = url_for(:action => 'search_friend') %> <%= token_input_field_tag(:q, 'search-friends', search_action, { :hint_text => _('Type in a search for your friend'), :focus => false }) %> <%= render :partial => 'invite/personalize_invitation_mail', :locals => {:mail_template => @mail_template } %> <% button_bar do %> <%= submit_button('save', _('Invite'))%> <%= button('cancel', _('Cancel'), profile.url)%> <% end %> <% end %> <% end %>