diff --git a/app/assets/images/orbitbar-theme_A.png b/app/assets/images/orbitbar-theme_A.png new file mode 100755 index 000000000..1c9b43093 Binary files /dev/null and b/app/assets/images/orbitbar-theme_A.png differ diff --git a/app/assets/images/orbitbar-theme_B.png b/app/assets/images/orbitbar-theme_B.png new file mode 100755 index 000000000..813307995 Binary files /dev/null and b/app/assets/images/orbitbar-theme_B.png differ diff --git a/app/views/admin/sites/preference.html.erb b/app/views/admin/sites/preference.html.erb index 07159eafb..f7e8b2e48 100644 --- a/app/views/admin/sites/preference.html.erb +++ b/app/views/admin/sites/preference.html.erb @@ -13,8 +13,8 @@ - -
+<%= form_for @site, :url => admin_site_path(@site), :html => {:class => "form-horizontal main-forms"} do |f| %> +
@@ -36,7 +36,7 @@ Language
  • - OrbitBar Them + OrbitBar Theme
  • @@ -54,72 +54,76 @@ + <%= f.fields_for :site_settings, @site['site_settings'] do |f| %> +
    - +
    - + <%= 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 @@
    - + <% if @site.default_image %> + <%= image_tag( @site.default_image, :size=>"120x120") rescue ''%> + <% else %> + + <% end %>
    - Select image - Change - + <%= f.file_field :default_image, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Select Image + <% if @site.default_image.file.present?%> + <%= f.file_field :default_image, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Change + <%end%> Cancel
    @@ -194,11 +208,11 @@
    • - + <%= image_tag "orbitbar-theme_A.png", :alt =>""%>
    • - + <%= image_tag "orbitbar-theme_B.png", :alt =>""%>
    @@ -210,9 +224,9 @@
    - - + <%= f.submit t("submit"), :class => "btn btn-primary" %> + <%= f.submit t("cancel"), :class => "btn ", :type => 'reset' %>
    -
    \ No newline at end of file +<%end%> \ No newline at end of file