blob: 644cd759bdc4824e6bc9f17e33ac2ac9910545ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<% if @addresses.present? %>
<table class="list email_addresses">
<% @addresses.each do |address| %>
<tr class="<%= cycle("odd", "even") %>">
<td class="email"><%= address.address %></td>
<td class="buttons">
<%= toggle_email_address_notify_link(address) %>
<%= delete_link user_email_address_path(@user, address), :remote => true %>
</td>
</tr>
<% end %>
</table>
<% end %>
<% unless @addresses.size >= Setting.max_additional_emails.to_i %>
<div>
<%= form_for @address, :url => user_email_addresses_path(@user), :remote => true do |f| %>
<p><%= l(:label_email_address_add) %></p>
<%= error_messages_for @address %>
<p>
<%= f.text_field :address, :size => 40 %>
<%= submit_tag l(:button_add) %>
</p>
<% end %>
</div>
<% end %>
|