2012-05-06 16:54:18 +00:00
|
|
|
<%= form_for @site, :url => admin_site_path(@site) do |f| %>
|
|
|
|
<div id="post-body">
|
|
|
|
<div id="post-body-content" class="clear">
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<% @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 %>
|
|
|
|
<li>
|
|
|
|
<%= f.submit t("submit"), :class => "btn btn-primary" %>
|
|
|
|
<%= f.submit t("cancel"), :class => "btn ", :type => 'reset' %>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
2012-05-07 07:11:43 +00:00
|
|
|
<%= f.check_box :title_always_on %> <%= t 'admin.always_display_title' %>
|
2012-05-06 16:54:18 +00:00
|
|
|
<% @site_valid_locales.each do |locale|%>
|
|
|
|
<%= content_tag :div, :class => "tab-pane #{active_when_current_locale_eq locale}", :id => "#{locale}" do %>
|
2012-05-07 03:25:33 +00:00
|
|
|
<div>
|
2012-05-07 07:11:43 +00:00
|
|
|
<%= t 'admin.site_title' %>
|
2012-05-07 03:25:33 +00:00
|
|
|
<%= f.fields_for :title, @site.title do |f| %>
|
|
|
|
<%= f.text_field locale %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div>
|
2012-05-07 07:11:43 +00:00
|
|
|
<%= t 'admin.keywords' %>
|
2012-05-07 03:25:33 +00:00
|
|
|
<%= f.fields_for :keywords, @site.keywords do |f| %>
|
|
|
|
<%= f.text_field locale %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div>
|
2012-05-07 07:11:43 +00:00
|
|
|
<%= t 'admin.site_description' %>
|
2012-05-07 03:25:33 +00:00
|
|
|
<%= f.fields_for :description, @site.description do |f| %>
|
|
|
|
<%= f.text_field locale %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div>
|
2012-05-07 07:11:43 +00:00
|
|
|
<%= t 'admin.site_footer' %>
|
2012-05-07 03:25:33 +00:00
|
|
|
<%= f.fields_for :footer, @site.footer do |f| %>
|
|
|
|
<%= f.text_area locale, :class => "tinymce_textarea" %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2012-05-06 16:54:18 +00:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|