Updated Site info

This commit is contained in:
saurabhbhatia 2013-08-30 18:17:27 +08:00
parent 7f0821ea84
commit fef7cc4ed2
3 changed files with 9 additions and 89 deletions

View File

@ -57,6 +57,7 @@ class Admin::AdBannersController < OrbitBackendController
def index
@ad_banners = AdBanner.all
@active = @ad_banners.first
@tags = get_tags
end
end

View File

@ -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

View File

@ -61,10 +61,12 @@
<!-- CKeditor Site Header -->
<div class="control-group input-content">
<label class="control-label muted">Site Header</label>
<label class="control-label muted"><%= t('site.header')%></label>
<div class="controls">
<div class="textarea">
<textarea class="ckeditor input-block-level" id="header_en" name="content_en"></textarea>
<%= 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 %>
</div>
</div>
</div>
@ -82,7 +84,7 @@
<!-- CKeditor Site Footer -->
<div class="control-group input-content">
<label class="control-label muted">Site Footer</label>
<label class="control-label muted"><%= t 'site.footer' %></label>
<div class="controls">
<div class="textarea">
<textarea class="ckeditor input-block-level" id="footer_en" name="content_en"></textarea>
@ -122,91 +124,7 @@
</div>
<!-- Chinese -->
<div class="tab-pane fade tw_zh">
<!-- Title-->
<div class="control-group input-title">
<label class="control-label muted">Site Title</label>
<div class="controls">
<input type="text" placeholder="Title" class="input-block-level">
</div>
</div>
<!-- Always shoe in the title bar -->
<div class="control-group">
<label class="control-label muted">Always shoe in the title bar
</label>
<div class="controls">
<input type="checkbox" class="toggle-check" data-disabled="true">
</div>
</div>
<hr>
<!-- CKeditor Site Header -->
<div class="control-group input-content">
<label class="control-label muted">Site Header</label>
<div class="controls">
<div class="textarea">
<%= 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 %>
</div>
</div>
</div>
<!-- Sitemap menu in Header -->
<div class="control-group">
<label class="control-label muted">Sitemap menu in header
</label>
<div class="controls">
<input type="checkbox" class="toggle-check" data-disabled="true">
</div>
</div>
<hr>
<!-- CKeditor Site Footer -->
<div class="control-group input-content">
<label class="control-label muted">Site Footer</label>
<div class="controls">
<div class="textarea">
<textarea class="ckeditor input-block-level" id="footer_zh-tw" name="content_en"></textarea>
</div>
</div>
</div>
<!-- Sitemap menu in Footer -->
<div class="control-group">
<label class="control-label muted">Sitemap menu in footer
</label>
<div class="controls">
<input type="checkbox" class="toggle-check" data-disabled="true">
</div>
</div>
<hr>
<!-- Terms of Use -->
<div class="control-group">
<label class="control-label muted">Terms of Use
</label>
<div class="controls">
<input type="checkbox" class="toggle-check terms" data-disabled="true">
</div>
</div>
<!-- CKeditor Default Terms of Use -->
<div class="control-group input-content hide">
<label class="control-label muted">Default Terms of Use</label>
<div class="controls">
<div class="textarea">
<textarea class="ckeditor input-block-level" id="terms_zh-tw" name="content_en"></textarea>
</div>
</div>
</div>
</div>
</div>