diff --git a/app/views/friends/index.rhtml b/app/views/friends/index.rhtml index e595152..3c72ec7 100644 --- a/app/views/friends/index.rhtml +++ b/app/views/friends/index.rhtml @@ -37,7 +37,7 @@ <% button_bar do %> <%= button(:back, _('Go back'), :controller => 'profile_editor') %> <%= button(:search, _('Find people'), :controller => 'search', :action => 'assets', :asset => 'people') %> - <%= button(:search, _('Invite friends from my e-mail contacts'), :action => 'invite') %> + <%= button(:search, _('Invite people from my e-mail contacts'), :action => 'invite') %> <% end %> diff --git a/app/views/friends/invite.rhtml b/app/views/friends/invite.rhtml index 40cc805..197265f 100644 --- a/app/views/friends/invite.rhtml +++ b/app/views/friends/invite.rhtml @@ -3,21 +3,17 @@ <% unless @friends %> -

<%= __('Step 1 of 1: Accessing your contact list') %>

- -

- <%= __('Choose your webmail provider and enter your login and password so we can fetch your contact list. If you only want to invite specific people by listing their e-mail addresses, select the "Enter e-mail addresses manually" option.') %> -

+

<%= __('Step 1 of 1: Select address book') %>

<% form_tag do %> <%= hidden_field_tag(:import, 1) %> - <%= labelled_form_field(_('Select your e-mail provider:'), [ + <%= [ + radio_button_tag(:import_from, "manual", @import_from == "manual", :onclick => 'hide_invite_friend_login_password()') + content_tag('label', __('Manually (empty field)'), :for => "import_from_manual"), radio_button_tag(:import_from, "gmail", @import_from == "gmail", :onclick => 'show_invite_friend_login_password()') + content_tag('label', 'Gmail', :for => 'import_from_gmail'), radio_button_tag(:import_from, "yahoo", @import_from == "yahoo", :onclick => 'show_invite_friend_login_password()') + content_tag('label', 'Yahoo', :for => "import_from_yahoo"), - radio_button_tag(:import_from, "hotmail", @import_from == "hotmail", :onclick => 'show_invite_friend_login_password()') + content_tag('label', 'Hotmail', :for => "import_from_hotmail"), - radio_button_tag(:import_from, "manual", @import_from == "manual", :onclick => 'hide_invite_friend_login_password()') + content_tag('label', __('Enter e-mail addresses manually'), :for => "import_from_manual") - ].join("\n
\n")) %> + radio_button_tag(:import_from, "hotmail", @import_from == "hotmail", :onclick => 'show_invite_friend_login_password()') + content_tag('label', 'Hotmail', :for => "import_from_hotmail") + ].join("\n
\n") %>