fix form language tab order
This commit is contained in:
parent
7353c1c593
commit
98089bc248
|
@ -54,7 +54,7 @@
|
|||
</div>
|
||||
<div class="nav-name"><strong><%= t(:language) %></strong></div>
|
||||
<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 <%= (i == 0 ? 'class=active' : '') %>>
|
||||
<a href=".<%= locale %>" data-toggle="tab"><%= t(locale.to_s) %></a>
|
||||
</li>
|
||||
|
@ -64,7 +64,7 @@
|
|||
<!-- Language Tabs -->
|
||||
|
||||
|
||||
<% I18n.available_locales.each_with_index do |locale, i| %>
|
||||
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
||||
|
||||
<div class="tab-pane fade in <%= (i == 0 ? 'active' : '') %> <%= locale %>">
|
||||
<div class="control-group input-title">
|
||||
|
|
|
@ -124,9 +124,9 @@
|
|||
<input type="checkbox" value="<%= tag.id.to_s %>">
|
||||
</p>
|
||||
<a>
|
||||
<% I18n.available_locales.each_with_index do |locale, i| %>
|
||||
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
||||
<span class="tag"><%= tag.name_translations[locale] %></span>
|
||||
<% if I18n.available_locales.count-1 != i %>
|
||||
<% if @site_in_use_locales.count-1 != i %>
|
||||
/
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
@ -148,7 +148,7 @@
|
|||
<form for="description" method="post" data-remote="true" action="/admin/galleries/update_image">
|
||||
<fieldset>
|
||||
<legend>Description</legend>
|
||||
<% I18n.available_locales.each_with_index do |locale, i| %>
|
||||
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
||||
<label><%= t(locale.to_s) %></label>
|
||||
<textarea rows="10" name="album_image[description_translations][<%= locale %>]" for="<%= locale %>"></textarea>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue