cirandas.net

ref: master

app/views/invite/invite_friends.html.erb


<% if profile.person? %>
  

<%= _('Ask for friendship') %>

<% description = _('You can search for user profiles and ask them to become your friends.') %> <% else %>

<%= _('Invite people to join') %>

<% description = _('You can search for user profiles and invite them to join this group.') %> <% end %>

<%= _("Choose person by:") %>

<%= 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 %>
<%= javascript_include_tag 'invite' %>