To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / settings / _mail_handler.html.erb @ 1591:63650ae64bf2

History | View | Annotate | Download (1.16 KB)

1
<%= form_tag({:action => 'edit', :tab => 'mail_handler'}) do %>
2

    
3
<div class="box tabular settings">
4
  <p>
5
    <%= setting_text_area :mail_handler_body_delimiters, :rows => 5 %>
6
    <em class="info"><%= l(:text_line_separated) %></em>
7
  </p>
8
  <p>
9
    <%= setting_text_field :mail_handler_excluded_filenames, :size => 60 %>
10
    <em class="info"><%= l(:text_comma_separated) %>
11
    <%= l(:label_example) %>: smime.p7s, *.vcf</em>
12
  </p>
13
</div>
14

    
15
<div class="box tabular settings">
16
<p><%= setting_check_box :mail_handler_api_enabled,
17
         :onclick => "if (this.checked) { $('#settings_mail_handler_api_key').removeAttr('disabled'); } else { $('#settings_mail_handler_api_key').attr('disabled', true); }"%></p>
18

    
19
<p><%= setting_text_field :mail_handler_api_key, :size => 30,
20
                                                 :id => 'settings_mail_handler_api_key',
21
                                                 :disabled => !Setting.mail_handler_api_enabled? %>
22
  <%= link_to_function l(:label_generate_key), "if (!$('#settings_mail_handler_api_key').attr('disabled')) { $('#settings_mail_handler_api_key').val(randomKey(20)) }" %>
23
</p>
24
</div>
25

    
26
<%= submit_tag l(:button_save) %>
27

    
28
<% end %>