<% content_for :side_bar do %> <%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_responsive_setting_path(@site), :icon => 'icons-cog', :side_bar_content => 'admin/sites/side_bar'} %> <% end %> <%= stylesheet_link_tag "lib/wrap-nav"%> <%= stylesheet_link_tag "lib/main-forms"%> <%= stylesheet_link_tag "lib/fileupload"%> <%= stylesheet_link_tag "lib/togglebox"%> <%= stylesheet_link_tag "jquery.miniColors" %> <%= javascript_include_tag "jquery.miniColors.min" %> <%= javascript_include_tag 'lib/bootstrap-fileupload' %> <%= javascript_include_tag 'lib/site_set' %> <%= form_for @site, :url => admin_site_path(@site), :html => {:class => "form-horizontal main-forms"} do |f| %>
<%= f.check_box :mobile_on , :class=>"toggle-check", :data=> { disabled: true } %> <%= t("mobile_setting.enabled_reminder") %>
<% @module.categories.each do |category| %> <%= check_box_tag "site[announcement_category][]", category.id.to_s, (@site.announcement_category.include?(category) rescue false), :class=>"toggle-check", :data => { :title => "#{category.title}", disabled: true }, "data-deploy"=>"inline", :checked => (@site.announcement_category.include?(category.id.to_s)) %> <% end %>
<% if @site.mobile_icon.file.present? %> <%= image_tag( @site.mobile_icon, :size=>"120x120") rescue ''%> <% else %> <%= image_tag asset_path('mobile/logo.png'),:class => "pull-left upload-picture"%> <% end %>
<% if @site.mobile_icon.present?%> <%= f.file_field :mobile_icon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %><%= t("mobile_setting.change") %> <%= f.check_box :remove_mobile_icon %> <%= t("mobile_setting.remove_icon") %> <%else%> <%= f.file_field :mobile_icon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %><%= t("mobile_setting.select_image") %> <%end%> <%= t(:cancel) %>
/> /> <%= t("mobile_setting.or") %> name="site[default_bar_color]" id="default_bar_color" style="margin:0 0 3px 10px;" /> <%= t("mobile_setting.default_color") %>
<% @site.phone_number.each_with_index do |phone,i| %> <%= t(:delete_) %> <% end %>
<%= t(:add) %>
<%= f.text_area :address, :class => "ckeditor input-block-level", :value => (@site.address rescue nil) %>
<%= f.check_box :mobile_api_openness_on , :class=>"toggle-check", :data=> { disabled: true } %> <%= t("mobile_setting.api_reminder") %>
<%= f.submit t("submit"), :class => "btn btn-primary" %> <%= f.submit t("cancel"), :class => "btn ", :type => 'reset' %>
<%end%>