From fef7cc4ed202de037a70ffbaa037b6aa1e429ea8 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Fri, 30 Aug 2013 18:17:27 +0800 Subject: [PATCH] Updated Site info --- .../admin/ad_banners_controller.rb | 1 + app/models/site.rb | 3 +- app/views/admin/sites/site_info.html.erb | 94 ++----------------- 3 files changed, 9 insertions(+), 89 deletions(-) diff --git a/app/controllers/admin/ad_banners_controller.rb b/app/controllers/admin/ad_banners_controller.rb index d05622b0..48e8f00e 100644 --- a/app/controllers/admin/ad_banners_controller.rb +++ b/app/controllers/admin/ad_banners_controller.rb @@ -57,6 +57,7 @@ class Admin::AdBannersController < OrbitBackendController def index @ad_banners = AdBanner.all @active = @ad_banners.first + @tags = get_tags end end \ No newline at end of file diff --git a/app/models/site.rb b/app/models/site.rb index 486803e5..9758c187 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -32,9 +32,10 @@ class Site field :title, localize: true field :footer, localize: true field :sub_menu, localize: true + field :terms_of_user, localize: true field :mobile_on, :type => Boolean, :default => false - + belongs_to :design has_many :site_metas, :autosave => true, :dependent => :destroy diff --git a/app/views/admin/sites/site_info.html.erb b/app/views/admin/sites/site_info.html.erb index c0704cb9..9505896a 100644 --- a/app/views/admin/sites/site_info.html.erb +++ b/app/views/admin/sites/site_info.html.erb @@ -61,10 +61,12 @@
- +
- + <%= f.fields_for :sub_menu_translations do |f| %> + <%= f.text_area locale, :class => "ckeditor input-block-level", :value => (@site.sub_menu_translations[locale] rescue nil) %> + <% end %>
@@ -82,7 +84,7 @@
- +
@@ -122,91 +124,7 @@
- -
- - -
- -
- -
-
- - -
- -
- -
-
- -
- - -
- -
-
- <%= f.fields_for :sub_menu_translations do |f| %> - <%= f.text_area locale, :class => "ckeditor input-block-level", :value => (@site.sub_menu_translations[locale] rescue nil) %> - <% end %> -
-
-
- - -
- -
- -
-
- -
- - -
- -
-
- -
-
-
- - -
- -
- -
-
- -
- - -
- -
- -
-
- - -
- -
-
- -
-
-
- +