2008-06-25 23:25:28 +04:00
|
|
|
<% form_tag({:action => 'edit', :tab => 'mail_handler'}) do %>
|
|
|
|
|
2009-12-23 21:35:19 +03:00
|
|
|
<div class="box tabular settings">
|
|
|
|
<p>
|
|
|
|
<%= setting_text_area :mail_handler_body_delimiters, :rows => 5 %>
|
|
|
|
<br /><em><%= l(:text_line_separated) %></em>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
2008-06-25 23:25:28 +04:00
|
|
|
<div class="box tabular settings">
|
2011-09-17 08:05:53 +04:00
|
|
|
<p><%= setting_check_box :mail_handler_api_enabled,
|
2011-09-17 15:13:10 +04:00
|
|
|
:onclick => "if (this.checked) { Form.Element.enable('settings_mail_handler_api_key'); } else { Form.Element.disable('settings_mail_handler_api_key'); }"%></p>
|
2008-06-25 23:25:28 +04:00
|
|
|
|
2009-12-19 23:07:09 +03:00
|
|
|
<p><%= setting_text_field :mail_handler_api_key, :size => 30,
|
2011-09-17 15:13:10 +04:00
|
|
|
:id => 'settings_mail_handler_api_key',
|
|
|
|
:disabled => !Setting.mail_handler_api_enabled? %>
|
2009-12-19 23:07:09 +03:00
|
|
|
<%= link_to_function l(:label_generate_key), "if ($('settings_mail_handler_api_key').disabled == false) { $('settings_mail_handler_api_key').value = randomKey(20) }" %>
|
|
|
|
</p>
|
2008-06-25 23:25:28 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= submit_tag l(:button_save) %>
|
2009-12-23 21:35:19 +03:00
|
|
|
|
2008-06-25 23:25:28 +04:00
|
|
|
<% end %>
|