%= form_tag({:action => 'edit', :tab => 'mail_handler'}) do %>
<%= setting_text_area :mail_handler_body_delimiters, :rows => 5 %> <%= l(:text_line_separated) %>
<%= setting_text_field :mail_handler_excluded_filenames, :size => 60 %> <%= l(:text_comma_separated) %> <%= l(:label_example) %>: smime.p7s, *.vcf
<%= setting_check_box :mail_handler_api_enabled, :onclick => "if (this.checked) { $('#settings_mail_handler_api_key').removeAttr('disabled'); } else { $('#settings_mail_handler_api_key').attr('disabled', true); }"%>
<%= setting_text_field :mail_handler_api_key, :size => 30, :id => 'settings_mail_handler_api_key', :disabled => !Setting.mail_handler_api_enabled? %> <%= link_to_function l(:label_generate_key), "if (!$('#settings_mail_handler_api_key').attr('disabled')) { $('#settings_mail_handler_api_key').val(randomKey(20)) }" %>