<% 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"%> <%= 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 } %> Enable Mobile Website
<% @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 %>
<%= f.fields_for :phone_number do |p| %> <%= p.text_field :number, :value => @site.phone_number["title"], :placeholder => "title" %> <%= p.text_field :number, :value => @site.phone_number["number"], :placeholder => "number" %> <% end %>
<%= 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 } %> Make API available for Mobile Apps
<%= f.submit t("submit"), :class => "btn btn-primary" %> <%= f.submit t("cancel"), :class => "btn ", :type => 'reset' %>
<%end%> <% content_for :page_specific_javascript do %> <% end %>