<%= t(".editing_prefix") %> <%= @locale.to_s.upcase %> <%= t(".translation_of") %> <%= title_for_node(@node) %>.
<%= link_to t("page_translations.revision_history_link"), node_revisions_path(@node, :translation_locale => @locale) %>
<%= t(".metadata_hint_prefix") %> <%= link_to t(".metadata_hint_link"), edit_node_path(@node) %>.
<%= button_to t("nodes.edit.unlock_back"), unlock_node_path(@node), method: :put,
form: { class: 'button_to state_changing' },
disabled: @node.autosave.present? %>
<%= submit_tag t(".save_translation", :lang => @locale.to_s.upcase), form: "translation_edit_form" %>
<%= submit_tag t("nodes.edit.save_unlock_exit"), name: "unlock_exit", form: "translation_edit_form" %>
<%= link_to t("nodes.edit.preview"), preview_page_path(@page, :locale => @locale), target: "_blank", rel: "noopener", class: "preview_link" %>
<%= form_with url: node_translation_path(@node, @locale), method: :patch, local: true, id: "translation_edit_form",
data: { autosave_url: autosave_node_translation_path(@node, @locale), show_url: node_path(@node) } do |f| %>
<%= Page.human_attribute_name(:title) %>
<%= text_field_tag "page[title]", @translation&.title %>
<%= Page.human_attribute_name(:abstract) %>
<%= text_area_tag "page[abstract]", @translation&.abstract %>
<%= Page.human_attribute_name(:body) %>
<%= text_area_tag "page[body]", @translation&.body, :class => 'with_editor' %>
<% end %>