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