diff --git a/app/views/admin/sites/search_engine.html.erb b/app/views/admin/sites/search_engine.html.erb index f9777fd02..5a8f6261d 100644 --- a/app/views/admin/sites/search_engine.html.erb +++ b/app/views/admin/sites/search_engine.html.erb @@ -43,49 +43,48 @@
- <% @site_valid_locales.each do |locale|%> - <%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %> -
- -
-
-
- <% @site_valid_locales.each do |locale|%> - <%= content_tag :li, link_to(I18nVariable.from_locale(locale), ".#{locale}", :data => {:toggle => "tab"}), :class => "btn #{(active_when_current_locale_eq locale)}" %> - <% end %> -
-
- <%= f.fields_for :keywords do |f| %> - <%= f.text_area locale, :class => "resizable",:rows=>3, :value => (@site.keywords(locale) rescue nil) %> - <% end %> -
-
-
-
- <%end%> - <%end%> - - <% @site_valid_locales.each do |locale|%> - <%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %> -
- -
-
-
- <% @site_valid_locales.each do |locale|%> - <%= content_tag :li, link_to(I18nVariable.from_locale(locale), ".#{locale}", :data => {:toggle => "tab"}), :class => "btn #{(active_when_current_locale_eq locale)}" %> - <% end %> -
-
- <%= f.fields_for :description do |f| %> - <%= f.text_area locale, :class => "resizable",:rows=>3, :value => (@site.description(locale) rescue nil) %> - <% end %> -
-
-
+ +
+ +
+
+
+ <% @site_valid_locales.each_with_index do |locale, i| %> + " href="#textarea_<%= locale %>_0" data-toggle="tab"><%= I18nVariable.from_locale(locale) %> + <% end %>
- <%end%> - <%end%> + <% @site_valid_locales.each_with_index do |locale, i| %> +
" id="textarea_<%= locale %>_0"> + <%= f.fields_for :keywords do |f| %> + <%= f.text_area locale, :class=>'resizable', :value => (@site.keywords(locale) rescue nil), :placeholder => I18nVariable.from_locale(locale), :rows=>"3" %> + <% end %> +
+ <% end %> +
+
+
+ +
+ +
+
+
+ <% @site_valid_locales.each_with_index do |locale, i| %> + " href="#textarea_<%= locale %>_0" data-toggle="tab"><%= I18nVariable.from_locale(locale) %> + <% end %> +
+ <% @site_valid_locales.each_with_index do |locale, i| %> +
" id="textarea_<%= locale %>_0"> + <%= f.fields_for :description do |f| %> + <%= f.text_area locale, :class=>'resizable', :value => (@site.description(locale) rescue nil), :placeholder => I18nVariable.from_locale(locale), :rows=>"3" %> + <% end %> +
+ <% end %> +
+
+
+ +