index.html.erb
1.39 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<h1><%= _('e-Mail configuration') %></h1>
<%= error_messages_for :task %>
<% if profile.user.email_activation_pending? %>
<p><%= _('You already request activation of your mailbox. Please wait until an administrator approves your request.') %></p>
<% button_bar do %>
<%= button :back, _('Back to control panel'), :controller => 'profile_editor' %>
<% end %>
<% else %>
<% if profile.user.enable_email %>
<h2><%= ('E-mail address') %></h2>
<ul>
<%= profile.email_addresses.map{|i| content_tag('li', i)}.join("\n") %>
</ul>
<h2><%= _('Configuration') %></h2>
<ul>
<li>
<%= link_to _('Mail configuration for POP and IMAP'), 'http://www.ynternet.org/move/infos-technique-pour-utiliser-multypass-pop3-smtp-imap-ftp-quotas...' %>
</li>
</ul>
<% button_bar do %>
<%= button :back, _('Back to control panel'), :controller => 'profile_editor' %>
<% end %>
<% else %>
<h2><%= _("Enable e-Mail account below:") %></h2>
<ul><%= profile.email_addresses.map{|i| content_tag('li', i)}.join("\n") %></ul>
<blockquote><%= _("You'll be able to access a webmail from your user menu.") %></blockquote>
<% button_bar do %>
<%= button(:ok, _('Enable e-Mail'), { :action => 'enable' }, :method => 'post') %>
<%= button :back, _('Back to control panel'), :controller => 'profile_editor' %>
<% end %>
<% end %>
<% end %>