22 lines
1.2 KiB
Plaintext
22 lines
1.2 KiB
Plaintext
<% content_for :side_bar do %>
|
|
<%= render 'side_bar' %>
|
|
<% end %>
|
|
|
|
<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> |