2009-01-07 20:27:12 +01:00
|
|
|
<h1><%=_('Contact Groups')%></h1>
|
|
|
|
|
2009-09-01 15:51:29 +02:00
|
|
|
<%- form_for @contact_group do |f| %>
|
2009-01-07 20:27:12 +01:00
|
|
|
<%= hidden_field "contactgroup", "user_id" %>
|
|
|
|
<table class="list">
|
|
|
|
<tr>
|
|
|
|
<th><%=_('Name')%></th>
|
|
|
|
<th colspan=3> </th>
|
|
|
|
</tr>
|
|
|
|
<%
|
|
|
|
for contactgroup in @contactgroups %>
|
|
|
|
<tr class="even">
|
|
|
|
<td><%= contactgroup.name %></td>
|
|
|
|
<td><%= link_to(_('members'), :controller=>'contact', :action=>'list', :id=>contactgroup.id, :params=>{"mode"=>"groups"}) %></td>
|
|
|
|
<td><%= link_to(_('edit'), :controller=>'/contacts/contact_group', :action=>'edit', :id=>contactgroup.id) %></td>
|
|
|
|
<td><%= link_to(_('delete'), {:controller=>'/contacts/contact_group', :action=>'delete', :id=>contactgroup.id}, {:confirm=>sprintf(_('DELETE CONTACT GROUP \'%s\'?'), contactgroup.name)})%></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<tr>
|
|
|
|
<td colspan=2 class="buttonBar">
|
|
|
|
<input type="submit" value="<%=_('Add Contact Group')%>"/>
|
|
|
|
<input type="button" value="<%=_('Back to folders')%>" onclick="window.location='/webmail/folders'">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2009-09-01 15:51:29 +02:00
|
|
|
<%- end %>
|