<%= _('Contacts')%>

<% if flash["alert"] %><% end %>
<% if @group_id and not @group_id.nil? %> <% end %> <% if @mode == "choose" %> <% for contact in @contacts %> <% end %> <% for group in @contactgroups %> <% end %> <% elsif @mode == "groups"%> <% for contact in @contacts %> <% end %> <% else %> <% for contact in @contacts %> <% end %> <% end %>
<% letters = CDF::CONFIG[:contact_letters] for letterIndex in 0...letters.size letter = letters[letterIndex] %> <%= link_to(letter, :controller=>"contact", :action=>"listLetter", :id=>letterIndex, :params=>{"mode"=>@mode, "group_id"=>(@group_id ? @group_id : nil)}) %> <% end %>      <%= link_to(_('Show all'), :controller=>"contact", :action=>"list", :id=>(@group_id ? @group_id : nil), :params=>{"mode"=>@mode})%>
<%= pagination_links @contact_pages, {}, :mode => @mode %>
<%= _('To CC BCC')%> <%= _('Name')%> <%= _('E-mail')%>
<%=contact.full_name%> <%=contact.email%>
<%=_('Groups')%>:
<%=group.name%>  
<%= _('Name')%> <%= _('E-mail')%>
> <%=contact.full_name%> <%=contact.email%>
<%= _('Name')%> <%= _('E-mail')%>  
<%= link_to(contact.full_name, :controller=>"/contacts/contact", :action => "edit", :id => contact.id ) %> <%= link_to( contact.email, :controller => "/webmail", :action => "compose", :params => { "mail[to]" => contact.email } ) %> <%= link_to(_('delete'), {:controller=>'/contacts/contact', :action=>'delete', :id=>contact.id}, {:confirm=>sprintf(_('DELETE CONTACT?\r\n\Name - %s\r\nE-mail - %s'), contact.show_name, contact.email)})%>