14 lines
558 B
Plaintext
14 lines
558 B
Plaintext
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
||
|
<div class="control-group">
|
||
|
<label class="control-label muted"><%= t(:title) + " (" + t(locale) + ")" %></label>
|
||
|
<div class="controls">
|
||
|
<%= f.fields_for :title_translations do |f| %>
|
||
|
<%= f.text_field locale, placeholder: t(:title), value: (@location.title_translations[locale] rescue nil) %>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
<%= f.submit t(:submit), :class => "hide" %>
|
||
|
<% if params[:page].present? %>
|
||
|
<input type="hidden" name="page" value="<%= params[:page]%>">
|
||
|
<% end %>
|