app/views/admin/research/journals/papers/kinds/_form.html.erb
<%
url = kind.new_record? ? admin_research_journal_kinds_path
: admin_research_journal_kind_path(kind)
%>
<%= simple_form_for kind, url: url 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-xl-8">
<%= osuny_panel t('content') do %>
<%= lf.input :title %>
<% end %>
</div>
<div class="col-xl-4">
<%= osuny_panel t('metadata') do %>
<%= render "admin/application/slug/form",
f: lf,
source: '#research_journal_paper_kind_localizations_attributes_0_title' %>
<% end %>
</div>
</div>
<% content_for :action_bar_right do %>
<%= submit f %>
<% end %>
<% end %>
<% end %>