Updated Site info page to new ui
This commit is contained in:
parent
2c0761aafb
commit
7f0821ea84
|
@ -23,7 +23,7 @@
|
|||
<li title="Templates"><%= link_to admin_template_store_path, :class => active_for_action('template_store', 'index') do %><span><i class="icons-brush"></i></span><%end%></li>
|
||||
|
||||
|
||||
<li title="Site Info"><%= link_to admin_site_site_info_path(@site), active_for_action('sites', 'site_info') do %><span><i class="icons-browser"></i></span><%end%></li>
|
||||
<li title="Site Info"><%= link_to admin_site_site_info_path(@site), :class => active_for_action('sites', 'site_info') do %><span><i class="icons-browser"></i></span><%end%></li>
|
||||
|
||||
<li title="Search Engine"><a href="/orbit_4.0.1/admin/search_engine/index.shtml?sidebarNavList=5&subNavBlockList=0"><span><i class="icons-search"></i></span></a></li>
|
||||
<li title="Preference"><a href="/orbit_4.0.1/admin/preference/index.shtml?sidebarNavList=7&subNavBlockList=0"><span><i class="icons-cog"></i></span></a></li>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<li title="Templates"><%= link_to admin_template_store_path, :class => active_for_action('template_store', 'index') do %><span><i class="icons-brush"></i></span><%end%></li>
|
||||
|
||||
|
||||
<li title="Site Info"><%= link_to admin_site_site_info_path(@site), active_for_action('sites', 'site_info') do %><span><i class="icons-browser"></i></span><%end%></li>
|
||||
<li title="Site Info"><%= link_to admin_site_site_info_path(@site), :class => active_for_action('sites', 'site_info') do %><span><i class="icons-browser"></i></span><%end%></li>
|
||||
|
||||
<li title="Search Engine"><a href="/orbit_4.0.1/admin/search_engine/index.shtml?sidebarNavList=5&subNavBlockList=0"><span><i class="icons-search"></i></span></a></li>
|
||||
<li title="Preference"><a href="/orbit_4.0.1/admin/preference/index.shtml?sidebarNavList=7&subNavBlockList=0"><span><i class="icons-cog"></i></span></a></li>
|
||||
|
|
|
@ -4,6 +4,227 @@
|
|||
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-cog', :side_bar_content => 'admin/sites/side_bar'} %>
|
||||
<% end %>
|
||||
|
||||
<head>
|
||||
<%= stylesheet_link_tag "lib/wrap-nav"%>
|
||||
<%= stylesheet_link_tag "lib/main-forms"%>
|
||||
<%= stylesheet_link_tag "lib/togglebox"%>
|
||||
|
||||
<%= javascript_include_tag 'lib/ckeditor/ckeditor' %>
|
||||
<%= javascript_include_tag 'lib/ckeditor/replace/site_info' %>
|
||||
<%= javascript_include_tag 'lib/site_set' %>
|
||||
</head>
|
||||
|
||||
<section id="main-wrap">
|
||||
<div class="wrap-inner">
|
||||
<!-- Forms -->
|
||||
<%= form_for @site, :url => admin_site_path(@site), :html => {:class => "form-horizontal main-forms"} do |f| %>
|
||||
|
||||
<fieldset>
|
||||
<!-- Input Area -->
|
||||
<div class="input-area">
|
||||
|
||||
<!-- Language Tabs -->
|
||||
<div class="nav-name"><strong>Language</strong></div>
|
||||
<ul class="nav nav-pills language-nav">
|
||||
<% @site_valid_locales.each do |locale|%>
|
||||
<%#= raise @site_valid_locales.inspect %>
|
||||
<%= content_tag :li, link_to(I18nVariable.from_locale(locale), ".#{locale}", :data => {:toggle => "tab"}), :class => (active_when_current_locale_eq locale) %>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<!-- Language -->
|
||||
<div class="tab-content language-area">
|
||||
|
||||
<% @site_valid_locales.each do |locale|%>
|
||||
<%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
|
||||
<div class="control-group input-title">
|
||||
<label class="control-label muted"><%= t 'site.title' %></label>
|
||||
<div class="controls">
|
||||
<%= f.fields_for :title_translations do |f| %>
|
||||
<%= f.text_field locale, :class => "input-xxlarge", :value => (@site.title_translations[locale] rescue nil) %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<!-- Always shoe in the title bar -->
|
||||
<div class="control-group">
|
||||
<label class="control-label muted">Always show in the title bar
|
||||
</label>
|
||||
<div class="controls">
|
||||
<%= f.check_box :title_always_on, :class => "toggle-check" %>
|
||||
</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">
|
||||
<textarea class="ckeditor input-block-level" id="header_en" name="content_en"></textarea>
|
||||
</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_en" 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" checked="checked">
|
||||
</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_en" name="content_en"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</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>
|
||||
<!-- Form Actions -->
|
||||
<div class="form-actions">
|
||||
<%= f.submit t("submit"), :class => "btn btn-primary" %>
|
||||
<%= f.submit t("cancel"), :class => "btn ", :type => 'reset' %>
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<div id="poststuff">
|
||||
<%= form_for @site, :url => admin_site_path(@site), :html => {:class => "clear"} do |f| %>
|
||||
<div id="post-body">
|
||||
|
|
Loading…
Reference in New Issue