Search Engine Preferences complete

This commit is contained in:
saurabhbhatia 2013-10-02 15:21:48 +08:00
parent 31b55a0635
commit 08907aa8c1
1 changed files with 41 additions and 42 deletions

View File

@ -43,49 +43,48 @@
<hr> <hr>
<% @site_valid_locales.each do |locale|%> <!-- Description -->
<%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
<div class="control-group"> <div class="control-group">
<label class="control-label muted">Site Keywords</label> <label class="control-label muted">Keywords</label>
<div class="controls"> <div class="controls">
<div class="tab-content textarea-lang"> <div class="tab-content textarea-lang">
<div class="btn-group" data-toggle="buttons-radio"> <div class="btn-group" data-toggle="buttons-radio">
<% @site_valid_locales.each do |locale|%> <% @site_valid_locales.each_with_index do |locale, i| %>
<%= content_tag :li, link_to(I18nVariable.from_locale(locale), ".#{locale}", :data => {:toggle => "tab"}), :class => "btn #{(active_when_current_locale_eq locale)}" %> <a class="btn <%= ( i == 0 ) ? "active" : '' %>" href="#textarea_<%= locale %>_0" data-toggle="tab"><%= I18nVariable.from_locale(locale) %></a>
<% end %> <% end %>
</div> </div>
<div class="tab-pane fade active in" id="keywords_en_0"> <% @site_valid_locales.each_with_index do |locale, i| %>
<div class="tab-pane fade in <%= ( i == 0 ) ? "active" : '' %>" id="textarea_<%= locale %>_0">
<%= f.fields_for :keywords do |f| %> <%= f.fields_for :keywords do |f| %>
<%= f.text_area locale, :class => "resizable",:rows=>3, :value => (@site.keywords(locale) rescue nil) %> <%= f.text_area locale, :class=>'resizable', :value => (@site.keywords(locale) rescue nil), :placeholder => I18nVariable.from_locale(locale), :rows=>"3" %>
<% end %>
</div>
<% end %> <% end %>
</div> </div>
</div> </div>
</div> </div>
</div>
<%end%>
<%end%>
<% @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"> <div class="control-group">
<label class="control-label muted">Site Description</label> <label class="control-label muted">Description</label>
<div class="controls"> <div class="controls">
<div class="tab-content textarea-lang"> <div class="tab-content textarea-lang">
<div class="btn-group" data-toggle="buttons-radio"> <div class="btn-group" data-toggle="buttons-radio">
<% @site_valid_locales.each do |locale|%> <% @site_valid_locales.each_with_index do |locale, i| %>
<%= content_tag :li, link_to(I18nVariable.from_locale(locale), ".#{locale}", :data => {:toggle => "tab"}), :class => "btn #{(active_when_current_locale_eq locale)}" %> <a class="btn <%= ( i == 0 ) ? "active" : '' %>" href="#textarea_<%= locale %>_0" data-toggle="tab"><%= I18nVariable.from_locale(locale) %></a>
<% end %> <% end %>
</div> </div>
<div class="tab-pane fade active in" id="description_en_0"> <% @site_valid_locales.each_with_index do |locale, i| %>
<div class="tab-pane fade in <%= ( i == 0 ) ? "active" : '' %>" id="textarea_<%= locale %>_0">
<%= f.fields_for :description do |f| %> <%= f.fields_for :description do |f| %>
<%= f.text_area locale, :class => "resizable",:rows=>3, :value => (@site.description(locale) rescue nil) %> <%= f.text_area locale, :class=>'resizable', :value => (@site.description(locale) rescue nil), :placeholder => I18nVariable.from_locale(locale), :rows=>"3" %>
<% end %>
</div>
<% end %> <% end %>
</div> </div>
</div> </div>
</div> </div>
</div>
<%end%>
<%end%>
</div> </div>
<!-- Form Actions --> <!-- Form Actions -->
<div class="form-actions"> <div class="form-actions">