Add mail_settings

This commit is contained in:
Christophe Vilayphiou committed 2012-05-09 11:38:29 +08:00
1 parent b3be210ff7
commit 41c0c26330
4 files changed
+56 -12

No files matched your search

+18 -1
View File
@@ -2,4 +2,21 @@
<%= render 'side_bar' %>
<% end %>
mail_setting.html.erb
<div id="poststuff">
<%= form_for @site, :url => admin_site_path(@site), :html => {:class => "clear"} do |f| %>
<%= f.fields_for :site_settings, @site['site_settings'] do |f| %>
address: <%= f.text_field :address, :value => @site['site_settings']['address'] %>
port: <%= f.text_field :port, :value => @site['site_settings']['port'] %>
domain: <%= f.text_field :domain, :value => @site['site_settings']['domain'] %>
authentication: <%= f.text_field :authentication, :value => @site['site_settings']['authentication'] %>
user_name: <%= f.text_field :user_name, :value => @site['site_settings']['user_name'] %>
password: <%= f.text_field :password, :value => @site['site_settings']['password'] %>
tls: <%= f.check_box :tls, :checked => @site['site_settings']['tls'].eql?('1') %>
enable_starttls_auto: <%= f.check_box 'enable_starttls_auto', :checked => @site['site_settings']['enable_starttls_auto'].eql?('1') %>
<% end %>
<div class="form-actions">
<%= f.submit t("submit"), :class => "btn btn-primary" %>
<%= f.submit t("cancel"), :class => "btn ", :type => 'reset' %>
</div>
<% end %>
</div>