change sub_menu to header in site setting

This commit is contained in:
Rueshyna 2013-01-03 14:46:02 +08:00
parent 80f545966e
commit cb3a9ea98b
3 changed files with 106 additions and 104 deletions

View File

@ -5,7 +5,7 @@
<% end %> <% end %>
<div id="poststuff"> <div id="poststuff">
<%= form_for @site, :url => admin_site_path(@site), :html => {:class => "clear"} do |f| %> <%= form_for @site, :url => admin_site_path(@site), :html => {:class => "clear"} do |f| %>
<div id="post-body"> <div id="post-body">
<div id="post-body-content" class="clear"> <div id="post-body-content" class="clear">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
@ -64,6 +64,14 @@
<p class="help-block"><%= (t 'site.description_help').html_safe %></p> <p class="help-block"><%= (t 'site.description_help').html_safe %></p>
</div> </div>
</div> </div>
<div class="control-group">
<label class="control-label"><%= t 'site.header' %></label>
<div class="controls">
<%= f.fields_for :sub_menu_translations do |f| %>
<%= f.text_area locale, :class => "tinymce_textarea input-xxlarge", :value => (@site.sub_menu_translations[locale] rescue nil) %>
<% end %>
</div>
</div>
<div class="control-group"> <div class="control-group">
<label class="control-label"><%= t 'site.footer' %></label> <label class="control-label"><%= t 'site.footer' %></label>
<div class="controls"> <div class="controls">
@ -73,14 +81,6 @@
<p class="help-block"><%= (t 'site.footer_help').html_safe %></p> <p class="help-block"><%= (t 'site.footer_help').html_safe %></p>
</div> </div>
</div> </div>
<div class="control-group">
<label class="control-label"><%= t 'site.sub_menu' %></label>
<div class="controls">
<%= f.fields_for :sub_menu_translations do |f| %>
<%= f.text_area locale, :class => "tinymce_textarea input-xxlarge", :value => (@site.sub_menu_translations[locale] rescue nil) %>
<% end %>
</div>
</div>
<div class="control-group"> <div class="control-group">
<label class="control-label"><%= t 'site.default_image' %></label> <label class="control-label"><%= t 'site.default_image' %></label>
<div class="controls"> <div class="controls">
@ -108,5 +108,5 @@
<%= f.submit t("submit"), :class => "btn btn-primary" %> <%= f.submit t("submit"), :class => "btn btn-primary" %>
<%= f.submit t("cancel"), :class => "btn ", :type => 'reset' %> <%= f.submit t("cancel"), :class => "btn ", :type => 'reset' %>
</div> </div>
<% end %> <% end %>
</div> </div>

View File

@ -327,6 +327,7 @@ en:
description: Site description description: Site description
description_help: '' description_help: ''
footer: Site footer footer: Site footer
header: Site header
footer_help: '' footer_help: ''
info: Site information info: Site information
keywords: Site keywords keywords: Site keywords

View File

@ -327,6 +327,7 @@ zh_tw:
description: 網站描述 description: 網站描述
description_help: '' description_help: ''
footer: 網站頁尾 footer: 網站頁尾
header: 網站頁首
footer_help: '' footer_help: ''
info: 網站資訊 info: 網站資訊
keywords: 搜尋關鍵字 keywords: 搜尋關鍵字