ref: master
plugins/responsive/views/invite/select_friends.html.erb
<%= render :partial => 'invite/dialog_wait_loading', :locals => {:contact_list => @contact_list.id } if @import_from != 'manual' %> <% if profile.person? %><%= _('Invite your friends') %>
<% else %><%= _('Invite your friends to join %s') % profile.name %>
<% end %><%= _('Step 2 of 2: Selecting Friends') %>
<%= button(:back, _('Back'), { :action => 'select_address_book' }, :id => 'invitation_back_button') %><%= _('Indicate which friends you want to invite.') %>
<%= form_tag do %> <%= hidden_field_tag(:import_from, @import_from) %> <%= hidden_field_tag(:contact_list, @contact_list.id) %><%= labelled_form_field(_('Enter one e-mail address per line:'), text_area_tag(:manual_import_addresses, (@manual_import_addresses || ''), :rows => 5, :style => 'width: 98%;')) %><% if @import_from != 'manual' %><%= link_to_function _('Check all'), "jQuery('input.contact_to_invite').each(function(index,checkbox) { checkbox.checked = true; });" %> <%= link_to_function _('Uncheck all'), "jQuery('input.contact_to_invite').each(function(index,checkbox) { checkbox.checked = false; });" %><% end -%>
<%= link_to ('Personalize invitation mail'), nil, :onclick => "jQuery('#invitation-mail_template').show(); return false;" %> <%= button_bar do %> <%= submit_button(:ok, _("Invite my friends!")) %> <% end %> <% end %>