app/views/admin/communication/websites/edit_language.html.erb
<% content_for :title, current_language %>
<%= simple_form_for [:admin, @website] 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-lg-4">
<% if @website.localizations.many? %>
<%= lf.input :published,
wrapper: :custom_boolean_switch,
disabled: @l10n.published? && @website.active_languages.one? %>
<% end %>
<%= lf.input :name %>
</div>
<div class="col-lg-8">
<%= osuny_panel Communication::Website.human_attribute_name('social') do %>
<div class="row">
<div class="col-lg-6">
<p><%= t('admin.communication.website.social.free') %></p>
<%= lf.input :social_email %>
<%= lf.input :social_mastodon %>
<%= lf.input :social_peertube %>
</div>
<div class="col-lg-6">
<p><%= t('admin.communication.website.social.private') %></p>
<%= lf.input :social_x %>
<%= lf.input :social_github %>
<%= lf.input :social_linkedin %>
<%= lf.input :social_youtube %>
<%= lf.input :social_vimeo %>
<%= lf.input :social_instagram %>
<%= lf.input :social_facebook %>
<%= lf.input :social_tiktok %>
</div>
</div>
<% end %>
</div>
<div class="col-lg-6 col-xxl-4">
</div>
</div>
<% content_for :action_bar_right do %>
<%= submit f %>
<% end %>
<% end %>
<% end %>