-
+
-
+ <%= f.text_field :address, :value => (@site['site_settings']['address'] rescue nil), :class=>"input-large", :placeholder=>"Email Address" %>
-
+
-
+ <%= f.text_field :port, :value => (@site['site_settings']['port'] rescue nil), :class=>"input-large", :placeholder=>"Domain" %>
-
+
-
+ <%= f.text_field :authentication, :value => (@site['site_settings']['authentication'] rescue nil), :class=>"input-large", :placeholder =>"Authentication" %>
-
+
-
+ <%= f.text_field :user_name, :value => (@site['site_settings']['user_name'] rescue nil), :class=>"input-large", :placeholder=>"User Name" %>
-
+
-
+ <%= f.text_field :password, :value => (@site['site_settings']['password'] rescue nil), :class=>"input-large", :placeholder=>"Password" %>
-
+
-
+ <%= f.text_field :port, :value => (@site['site_settings']['port'] rescue nil),:placeholder=>"Port", :class=>"input-mini" %>
-
+
-
+ <%= f.check_box :tls, :checked => (@site['site_settings']['tls'].eql?('1') rescue false),:class=>"toggle-check" %>
-
+
-
+ <%= f.check_box 'enable_starttls_auto', :checked => (@site['site_settings']['enable_starttls_auto'].eql?('1') rescue false), :class=>"toggle-check" %>
+ <% end %>
+
-
+
-
+ <%= f.check_box :frontend_closed , :class=>"toggle-check"%>
Only can be viewed by users logged in
-
+
-
+ <%= f.check_box :backend_openness_on , :class=>"toggle-check" %>
All users can visit backend pages
@@ -165,18 +169,28 @@
@@ -194,11 +208,11 @@
@@ -210,9 +224,9 @@