2012-05-07 07:55:45 +00:00
|
|
|
<div id="poststuff">
|
|
|
|
<%= form_for @site, :url => admin_site_path(@site), :html => {:class => "clear"} do |f| %>
|
2012-05-06 16:54:18 +00:00
|
|
|
<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 %>
|
2012-05-07 08:29:32 +00:00
|
|
|
<%= content_tag :li, link_to(I18nVariable.from_locale(locale), ".#{locale}", :data => {:toggle => "tab"}), :class => (active_when_current_locale_eq locale) %>
|
2012-05-06 16:54:18 +00:00
|
|
|
<% end %>
|
|
|
|
</ul>
|
2012-05-07 07:55:45 +00:00
|
|
|
<div class="tab-content form-horizontal">
|
2012-05-08 09:21:26 +00:00
|
|
|
<div class="control-group" style="margin-bottom: 0;">
|
2012-05-07 08:29:32 +00:00
|
|
|
<div class="controls">
|
2012-05-08 09:21:26 +00:00
|
|
|
<label class="checkbox">
|
|
|
|
<%= f.check_box :title_always_on %> <%= t 'admin.always_display_title' %>
|
|
|
|
</label>
|
2012-05-07 08:29:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2012-05-06 16:54:18 +00:00
|
|
|
<% @site_valid_locales.each do |locale|%>
|
2012-05-07 08:29:32 +00:00
|
|
|
<%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
|
2012-05-07 07:55:45 +00:00
|
|
|
<div class="control-group">
|
2012-05-08 09:21:26 +00:00
|
|
|
<label class="control-label"><%= t 'admin.site_title' %></label>
|
2012-05-07 07:55:45 +00:00
|
|
|
<div class="controls">
|
|
|
|
<%= f.fields_for :title, @site.title do |f| %>
|
|
|
|
<%= f.text_field locale, :class => "input-xxlarge" %>
|
|
|
|
<% end %>
|
|
|
|
<p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
|
|
|
|
</div>
|
2012-05-07 03:25:33 +00:00
|
|
|
</div>
|
2012-05-07 08:29:32 +00:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% @site_valid_locales.each do |locale|%>
|
|
|
|
<%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
|
2012-05-07 07:55:45 +00:00
|
|
|
<div class="control-group">
|
2012-05-07 08:08:05 +00:00
|
|
|
<label class="control-label"><%= t 'admin.keywords' %></label>
|
2012-05-07 07:55:45 +00:00
|
|
|
<div class="controls">
|
|
|
|
<%= f.fields_for :keywords, @site.keywords do |f| %>
|
|
|
|
<%= f.text_area locale, :class => "input-xxlarge textarea-height-s" %>
|
|
|
|
<% end %>
|
|
|
|
<p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
|
|
|
|
</div>
|
2012-05-07 03:25:33 +00:00
|
|
|
</div>
|
2012-05-07 07:55:45 +00:00
|
|
|
<div class="control-group">
|
2012-05-07 08:08:05 +00:00
|
|
|
<label class="control-label"><%= t 'admin.site_description' %></label>
|
2012-05-07 07:55:45 +00:00
|
|
|
<div class="controls">
|
|
|
|
<%= f.fields_for :description, @site.description do |f| %>
|
|
|
|
<%= f.text_area locale, :class => "input-xxlarge textarea-height-s" %>
|
|
|
|
<% end %>
|
|
|
|
<p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
|
|
|
|
</div>
|
2012-05-07 03:25:33 +00:00
|
|
|
</div>
|
2012-05-07 07:55:45 +00:00
|
|
|
<div class="control-group">
|
2012-05-07 08:08:05 +00:00
|
|
|
<label class="control-label"><%= t 'admin.site_footer' %></label>
|
2012-05-07 07:55:45 +00:00
|
|
|
<div class="controls">
|
|
|
|
<%= f.fields_for :footer, @site.footer do |f| %>
|
|
|
|
<%= f.text_area locale, :class => "tinymce_textarea input-xxlarge" %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2012-05-07 03:25:33 +00:00
|
|
|
</div>
|
2012-05-08 09:27:02 +00:00
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label"><%= t 'admin.site_sub_menu' %></label>
|
|
|
|
<div class="controls">
|
|
|
|
<%= f.fields_for :sub_menu, @site.sub_menu do |f| %>
|
|
|
|
<%= f.text_area locale, :class => "tinymce_textarea input-xxlarge" %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2012-05-06 16:54:18 +00:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2012-05-07 07:55:45 +00:00
|
|
|
<div class="form-actions">
|
|
|
|
<%= f.submit t("submit"), :class => "btn btn-primary" %>
|
|
|
|
<%= f.submit t("cancel"), :class => "btn ", :type => 'reset' %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2012-05-07 08:08:05 +00:00
|
|
|
</div>
|