Ray's changes for mail settings
This commit is contained in:
parent
41c0c26330
commit
9216f29bc9
|
@ -4,16 +4,70 @@
|
||||||
|
|
||||||
<div id="poststuff">
|
<div id="poststuff">
|
||||||
<%= form_for @site, :url => admin_site_path(@site), :html => {:class => "clear"} do |f| %>
|
<%= form_for @site, :url => admin_site_path(@site), :html => {:class => "clear"} do |f| %>
|
||||||
|
<div id="post-body">
|
||||||
|
<div id="post-body-content" class="clear">
|
||||||
<%= f.fields_for :site_settings, @site['site_settings'] do |f| %>
|
<%= f.fields_for :site_settings, @site['site_settings'] do |f| %>
|
||||||
address: <%= f.text_field :address, :value => @site['site_settings']['address'] %>
|
<div class="form-horizontal">
|
||||||
port: <%= f.text_field :port, :value => @site['site_settings']['port'] %>
|
<div class="control-group">
|
||||||
domain: <%= f.text_field :domain, :value => @site['site_settings']['domain'] %>
|
<label class="control-label"><%= t 'admin.mail_address' %></label>
|
||||||
authentication: <%= f.text_field :authentication, :value => @site['site_settings']['authentication'] %>
|
<div class="controls">
|
||||||
user_name: <%= f.text_field :user_name, :value => @site['site_settings']['user_name'] %>
|
<%= f.text_field :address, :value => (@site['site_settings']['address'] rescue nil) %>
|
||||||
password: <%= f.text_field :password, :value => @site['site_settings']['password'] %>
|
<p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
|
||||||
tls: <%= f.check_box :tls, :checked => @site['site_settings']['tls'].eql?('1') %>
|
</div>
|
||||||
enable_starttls_auto: <%= f.check_box 'enable_starttls_auto', :checked => @site['site_settings']['enable_starttls_auto'].eql?('1') %>
|
</div>
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label"><%= t 'admin.mail_port' %></label>
|
||||||
|
<div class="controls">
|
||||||
|
<%= f.text_field :port, :value => (@site['site_settings']['port'] rescue nil) %>
|
||||||
|
<p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label"><%= t 'admin.mail_domain' %></label>
|
||||||
|
<div class="controls">
|
||||||
|
<%= f.text_field :domain, :value => (@site['site_settings']['domain'] rescue nil) %>
|
||||||
|
<p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label"><%= t 'admin.mail_authentication' %></label>
|
||||||
|
<div class="controls">
|
||||||
|
<%= f.text_field :authentication, :value => (@site['site_settings']['authentication'] rescue nil) %>
|
||||||
|
<p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label"><%= t 'admin.mail_user_name' %></label>
|
||||||
|
<div class="controls">
|
||||||
|
<%= f.text_field :user_name, :value => (@site['site_settings']['user_name'] rescue nil) %>
|
||||||
|
<p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label"><%= t 'admin.mail_password' %></label>
|
||||||
|
<div class="controls">
|
||||||
|
<%= f.text_field :password, :value => (@site['site_settings']['password'] rescue nil) %>
|
||||||
|
<p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label"><%= t 'admin.mail_tls' %></label>
|
||||||
|
<div class="controls">
|
||||||
|
<%= f.check_box :tls, :checked => (@site['site_settings']['tls'].eql?('1') rescue false) %>
|
||||||
|
<p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label"><%= t 'admin.mail_enable_starttls_auto' %></label>
|
||||||
|
<div class="controls">
|
||||||
|
<%= f.check_box 'enable_starttls_auto', :checked => (@site['site_settings']['enable_starttls_auto'].eql?('1') rescue false) %>
|
||||||
|
<p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<%= f.submit t("submit"), :class => "btn btn-primary" %>
|
<%= f.submit t("submit"), :class => "btn btn-primary" %>
|
||||||
<%= f.submit t("cancel"), :class => "btn ", :type => 'reset' %>
|
<%= f.submit t("cancel"), :class => "btn ", :type => 'reset' %>
|
||||||
|
|
|
@ -207,6 +207,14 @@ en:
|
||||||
site_settings: Site Setting
|
site_settings: Site Setting
|
||||||
site_sub_menu: Site sub-menu
|
site_sub_menu: Site sub-menu
|
||||||
site_title: Site title
|
site_title: Site title
|
||||||
|
mail_address: Address
|
||||||
|
mail_port: Port
|
||||||
|
mail_domain: Domain
|
||||||
|
mail_authentication: Authentication
|
||||||
|
mail_user_name: User Name
|
||||||
|
mail_password: Password
|
||||||
|
mail_tls: Tls
|
||||||
|
mail_enable_starttls_auto: Enable Starttls Auto
|
||||||
super_pages: Super pages
|
super_pages: Super pages
|
||||||
structure: Structure
|
structure: Structure
|
||||||
title: Title
|
title: Title
|
||||||
|
|
Loading…
Reference in New Issue