diff --git a/app/views/tasks/_add_friend.rhtml b/app/views/tasks/_add_friend.rhtml index 2cc9a69..5523146 100644 --- a/app/views/tasks/_add_friend.rhtml +++ b/app/views/tasks/_add_friend.rhtml @@ -1,32 +1,40 @@
-<%= _('%s wants to connect to you as a friend.') % task.requestor.name %> -
+<%= link_to( profile_image(task.requestor, :minor, :border => 0), task.requestor.public_profile_url ) %> + +<%= _('%s wants to connect to you as a friend.') % link_to( task.requestor.name, task.requestor.public_profile_url ) %> <% form_for('task', task, :url => { :action => 'close', :id => task.id } ) do |f| %>+ content_tag('div', :id => "group-for-friend-#{task.id}", + :help => _('You can type the first letters of an existing group and have the system present you the available options, or you can type the name of a new group if you want.')) do %> + <%= _('Classify your new friend:') %> + <%= text_field_with_local_autocomplete("task[group_for_friend]", + profile.suggested_friend_groups, + :id => "field-group-for-friend-#{task.id}") %> +
<%= _('Suggestions: %s') % profile.suggested_friend_groups.join(', ') %>
<% end %><% if @tasks.empty? %> -
<%= _('No pending tasks for %s' % profile.name) %>
+ <%= _('No pending tasks for %s' % profile.name) %> <% else %><% if @tasks.empty? %> -
<%= _('No processed tasks.') %>
+ <%= _('No processed tasks.') %> <% else %><%= _('Task') %> | -<%= item.description %> | -
---|---|
<%= _('Created') %> | -<%= show_date (item.created_at) %> - |
<%= _('Processed') %> | -<%= show_date (item.end_date) %> - |