2013-12-12 07:39:20 +00:00
|
|
|
<div class="input-area form-horizontal">
|
|
|
|
<div class="nav-name">
|
|
|
|
<strong>Language</strong>
|
|
|
|
</div>
|
|
|
|
<ul class="nav nav-pills language-nav">
|
2013-11-27 09:50:33 +00:00
|
|
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
2013-12-12 07:39:20 +00:00
|
|
|
<li <%= ( i == 0 ) ? "class=active" : '' %>><a data-toggle="tab" href=".<%= locale %>"><%= I18nVariable.from_locale(locale) %></a></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
|
|
|
<div class="<%= locale %> fade tab-pane <%= ( i == 0 ) ? "in active" : '' %>">
|
|
|
|
<div class="control-group input-title">
|
|
|
|
<%= f.label :title , t('asset.title'), :class=>"control-label muted" %>
|
|
|
|
<div class="controls">
|
|
|
|
<%= f.fields_for :title_translations do |f| %>
|
|
|
|
<%= f.text_field locale, :class=>'post-title', :value => (@asset.title_translations[locale] rescue nil) %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group input-content">
|
|
|
|
<%= f.label :description ,t('asset.description'), :class => "control-label muted" %>
|
|
|
|
<%= f.fields_for :description_translations do |f| %>
|
|
|
|
<div class="controls">
|
|
|
|
<div class="textarea">
|
|
|
|
<%= f.text_area locale, :style=>"height:100px", :class => '', :value => (@asset.description_translations[locale] rescue nil) %>
|
|
|
|
</div>
|
2013-09-10 04:45:10 +00:00
|
|
|
</div>
|
2013-12-12 07:39:20 +00:00
|
|
|
<% end %>
|
2013-09-10 04:45:10 +00:00
|
|
|
</div>
|
2013-12-12 07:39:20 +00:00
|
|
|
</div>
|
2013-09-10 04:45:10 +00:00
|
|
|
<% end %>
|
2013-12-12 07:39:20 +00:00
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
2013-09-10 04:45:10 +00:00
|
|
|
<label class="control-label muted"><%= f.label :data, t(:data) %></label>
|
2012-05-16 22:28:29 +00:00
|
|
|
<div class="controls">
|
2013-12-12 07:39:20 +00:00
|
|
|
<%= f.file_field :data, :class => 'upload' %>
|
2012-05-16 22:28:29 +00:00
|
|
|
</div>
|
2013-12-12 07:39:20 +00:00
|
|
|
</div>
|
2012-05-16 22:28:29 +00:00
|
|
|
</div>
|