Commit 3bad06033f193661b5f352ae7f8d122f61292fe8

Authored by Rodrigo Souto
Committed by Antonio Terceiro
1 parent 0012e836

Adding a class to tags field while adding a friend

app/views/friends/add.rhtml
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 <% form_tag do %> 13 <% form_tag do %>
14 <%= hidden_field_tag(:confirmation, 1) %> 14 <%= hidden_field_tag(:confirmation, 1) %>
15 15
16 - <div> 16 + <div class="add-friend-tags">
17 <%= __('Classify your new friend %s: ') % @friend.name %> 17 <%= __('Classify your new friend %s: ') % @friend.name %>
18 <%= text_field_with_local_autocomplete('group', profile.suggested_friend_groups, :maxlength => 150) %> 18 <%= text_field_with_local_autocomplete('group', profile.suggested_friend_groups, :maxlength => 150) %>
19 <p> 19 <p>
app/views/tasks/_add_friend.rhtml
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 :onclick => "Element.hide('group-for-friend-#{task.id}')") %> 21 :onclick => "Element.hide('group-for-friend-#{task.id}')") %>
22 <label for="<%= "decision-cancel-#{task.id}" %>"><b><%= _('Ignore') %></b></label> 22 <label for="<%= "decision-cancel-#{task.id}" %>"><b><%= _('Ignore') %></b></label>
23 23
24 - <% content_tag('div', :id => "group-for-friend-#{task.id}") do %> 24 + <% content_tag('div', :id => "group-for-friend-#{task.id}", :class => "add-friend-tags") do %>
25 <%= _('Classify your new friend:') %> 25 <%= _('Classify your new friend:') %>
26 <%= text_field_with_local_autocomplete("task[group_for_friend]", 26 <%= text_field_with_local_autocomplete("task[group_for_friend]",
27 profile.suggested_friend_groups, 27 profile.suggested_friend_groups,