Orbit/app/views/admin/sites/mail_setting.html.erb

76 lines
3.6 KiB
Plaintext
Raw Permalink Normal View History

2012-05-08 12:06:56 +00:00
<% content_for :side_bar do %>
Merge branch 'various_bugs' into nccu_master Conflicts: Gemfile.lock app/assets/javascripts/ajax_form.js.erb app/assets/stylesheets/style.css.erb app/controllers/application_controller.rb app/controllers/sessions_controller.rb app/helpers/admin/web_link_helper.rb app/views/admin/attributes/_attribute_field.html.erb app/views/admin/designs/_form.html.erb app/views/admin/pages/_form.html.erb app/views/admin/sites/_side_bar.html.erb app/views/layouts/_orbit_bar.html.erb app/views/layouts/_side_bar.html.erb config/locales/en.yml config/locales/zh_tw.yml config/mongoid.yml vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb vendor/built_in_modules/announcement/app/controllers/panel/announcement/front_end/bulletins_controller.rb vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/_bulletin.html.erb vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/_filter.html.erb vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/index.html.erb vendor/built_in_modules/announcement/app/views/panel/announcement/widget/bulletins/_index.html.erb vendor/built_in_modules/news/app/views/panel/news/back_end/news_bulletins/_filter.html.erb vendor/built_in_modules/news/app/views/panel/news/back_end/news_bulletins/_filter_status.html.erb vendor/built_in_modules/news/app/views/panel/news/back_end/news_bulletins/_news_bulletin.html.erb vendor/built_in_modules/news/app/views/panel/news/back_end/news_bulletins/index.html.erb vendor/built_in_modules/web_resource/app/views/panel/web_resource/back_end/web_links/index.html.erb
2012-10-29 08:10:07 +00:00
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-cog', :side_bar_content => 'admin/sites/side_bar'} %>
2012-05-08 12:06:56 +00:00
<% end %>
2012-05-09 03:38:29 +00:00
<div id="poststuff">
<%= form_for @site, :url => admin_site_path(@site), :html => {:class => "clear"} do |f| %>
2012-05-09 04:19:32 +00:00
<div id="post-body">
<div id="post-body-content" class="clear">
<%= f.fields_for :site_settings, @site['site_settings'] do |f| %>
<div class="form-horizontal">
<div class="control-group">
2012-09-12 11:12:50 +00:00
<label class="control-label"><%= t 'mail.address' %></label>
2012-05-09 04:19:32 +00:00
<div class="controls">
<%= f.text_field :address, :value => (@site['site_settings']['address'] rescue nil) %>
2012-05-09 04:29:46 +00:00
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
2012-05-09 04:19:32 +00:00
</div>
</div>
<div class="control-group">
2012-09-12 11:12:50 +00:00
<label class="control-label"><%= t 'mail.port' %></label>
2012-05-09 04:19:32 +00:00
<div class="controls">
<%= f.text_field :port, :value => (@site['site_settings']['port'] rescue nil) %>
2012-05-09 04:29:46 +00:00
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
2012-05-09 04:19:32 +00:00
</div>
</div>
<div class="control-group">
2012-09-12 11:12:50 +00:00
<label class="control-label"><%= t 'mail.domain' %></label>
2012-05-09 04:19:32 +00:00
<div class="controls">
<%= f.text_field :domain, :value => (@site['site_settings']['domain'] rescue nil) %>
2012-05-09 04:29:46 +00:00
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
2012-05-09 04:19:32 +00:00
</div>
</div>
<div class="control-group">
2012-09-12 11:12:50 +00:00
<label class="control-label"><%= t 'mail.authentication' %></label>
2012-05-09 04:19:32 +00:00
<div class="controls">
<%= f.text_field :authentication, :value => (@site['site_settings']['authentication'] rescue nil) %>
2012-05-09 04:29:46 +00:00
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
2012-05-09 04:19:32 +00:00
</div>
</div>
<div class="control-group">
2012-09-12 11:12:50 +00:00
<label class="control-label"><%= t 'mail.user_name' %></label>
2012-05-09 04:19:32 +00:00
<div class="controls">
<%= f.text_field :user_name, :value => (@site['site_settings']['user_name'] rescue nil) %>
2012-05-09 04:29:46 +00:00
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
2012-05-09 04:19:32 +00:00
</div>
</div>
<div class="control-group">
2012-09-12 11:12:50 +00:00
<label class="control-label"><%= t 'mail.password' %></label>
2012-05-09 04:19:32 +00:00
<div class="controls">
<%= f.text_field :password, :value => (@site['site_settings']['password'] rescue nil) %>
2012-05-09 04:29:46 +00:00
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
2012-05-09 04:19:32 +00:00
</div>
</div>
<div class="control-group">
2012-09-12 11:12:50 +00:00
<label class="control-label"><%= t 'mail.tls' %></label>
2012-05-09 04:19:32 +00:00
<div class="controls">
<%= f.check_box :tls, :checked => (@site['site_settings']['tls'].eql?('1') rescue false) %>
2012-05-09 04:29:46 +00:00
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
2012-05-09 04:19:32 +00:00
</div>
</div>
<div class="control-group">
2012-09-12 11:12:50 +00:00
<label class="control-label"><%= t 'mail.enable_starttls_auto' %></label>
2012-05-09 04:19:32 +00:00
<div class="controls">
<%= f.check_box 'enable_starttls_auto', :checked => (@site['site_settings']['enable_starttls_auto'].eql?('1') rescue false) %>
2012-05-09 04:29:46 +00:00
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
2012-05-09 04:19:32 +00:00
</div>
</div>
</div>
<% end %>
</div>
</div>
2012-05-09 03:38:29 +00:00
<div class="form-actions">
<%= f.submit t("submit"), :class => "btn btn-primary" %>
<%= f.submit t("cancel"), :class => "btn ", :type => 'reset' %>
</div>
<% end %>
</div>