app/views/admin/communication/extranets/documents/kinds/_form.html.erb
<%= simple_form_for [:admin, kind] do |f| %>
<%= f.simple_fields_for :localizations, l10n do |lf| %>
<%= f.error_notification %>
<%= f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present? %>
<%= lf.hidden_field :language_id, value: current_language.id %>
<div class="row">
<div class="col-md-8">
<%= osuny_panel t('content') do %>
<%= lf.input :name %>
<% end %>
</div>
<div class="col-md-4">
<%= osuny_panel t('metadata') do %>
<%= render "admin/application/slug/form",
f: lf,
source: '#communication_extranet_document_kind_localizations_attributes_0_name' %>
<% end %>
</div>
</div>
<% content_for :action_bar_right do %>
<%= submit f %>
<% end %>
<% end %>
<% end %>