Updated Site info
This commit is contained in:
parent
7f0821ea84
commit
fef7cc4ed2
|
@ -57,6 +57,7 @@ class Admin::AdBannersController < OrbitBackendController
|
||||||
def index
|
def index
|
||||||
@ad_banners = AdBanner.all
|
@ad_banners = AdBanner.all
|
||||||
@active = @ad_banners.first
|
@active = @ad_banners.first
|
||||||
|
@tags = get_tags
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
|
@ -32,9 +32,10 @@ class Site
|
||||||
field :title, localize: true
|
field :title, localize: true
|
||||||
field :footer, localize: true
|
field :footer, localize: true
|
||||||
field :sub_menu, localize: true
|
field :sub_menu, localize: true
|
||||||
|
field :terms_of_user, localize: true
|
||||||
|
|
||||||
field :mobile_on, :type => Boolean, :default => false
|
field :mobile_on, :type => Boolean, :default => false
|
||||||
|
|
||||||
belongs_to :design
|
belongs_to :design
|
||||||
has_many :site_metas, :autosave => true, :dependent => :destroy
|
has_many :site_metas, :autosave => true, :dependent => :destroy
|
||||||
|
|
||||||
|
|
|
@ -61,10 +61,12 @@
|
||||||
|
|
||||||
<!-- CKeditor Site Header -->
|
<!-- CKeditor Site Header -->
|
||||||
<div class="control-group input-content">
|
<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="controls">
|
||||||
<div class="textarea">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -82,7 +84,7 @@
|
||||||
|
|
||||||
<!-- CKeditor Site Footer -->
|
<!-- CKeditor Site Footer -->
|
||||||
<div class="control-group input-content">
|
<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="controls">
|
||||||
<div class="textarea">
|
<div class="textarea">
|
||||||
<textarea class="ckeditor input-block-level" id="footer_en" name="content_en"></textarea>
|
<textarea class="ckeditor input-block-level" id="footer_en" name="content_en"></textarea>
|
||||||
|
@ -122,91 +124,7 @@
|
||||||
|
|
||||||
</div>
|
</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>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue