forked from saurabh/orbit4-5
fix language order in structure page_part form
This commit is contained in:
parent
766b1482b6
commit
36648d51a2
|
@ -25,14 +25,14 @@
|
||||||
<strong><%= t(:language) %></strong>
|
<strong><%= t(:language) %></strong>
|
||||||
</div>
|
</div>
|
||||||
<ul class="nav nav-pills language-nav">
|
<ul class="nav nav-pills language-nav">
|
||||||
<% I18n.available_locales.each_with_index do |locale, i| %>
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
||||||
<li class="<%= 'active' if i == 0 %>">
|
<li class="<%= 'active' if i == 0 %>">
|
||||||
<a href=".<%= locale %>" data-toggle="tab"><%= t(locale.to_s) %></a>
|
<a href=".<%= locale %>" data-toggle="tab"><%= t(locale.to_s) %></a>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content language-area">
|
<div class="tab-content language-area">
|
||||||
<% I18n.available_locales.each_with_index do |locale, i| %>
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
||||||
<div class="tab-pane fade <%= locale %> <%= 'active in' if i == 0 %>">
|
<div class="tab-pane fade <%= locale %> <%= 'active in' if i == 0 %>">
|
||||||
<div class="control-group input-content">
|
<div class="control-group input-content">
|
||||||
<label class="control-label muted"><%= t(:content) %></label>
|
<label class="control-label muted"><%= t(:content) %></label>
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="module_widget" class="tab-pane fade in <%= @subpart.kind == "module_widget" ? 'active' : '' rescue nil %>">
|
<div id="module_widget" class="tab-pane fade in <%= @subpart.kind == "module_widget" ? 'active' : '' rescue nil %>">
|
||||||
<% I18n.available_locales.each do |locale| %>
|
<% @site_in_use_locales.each do |locale| %>
|
||||||
<div class="control-group input-content">
|
<div class="control-group input-content">
|
||||||
<label class="control-label muted">Widget <%= t(:name) %>(<%= t(locale.to_s) %>) :</label>
|
<label class="control-label muted">Widget <%= t(:name) %>(<%= t(locale.to_s) %>) :</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
|
Loading…
Reference in New Issue