<%= ts("Edit Multiple Works") %>

<%= render "users/header_navigation" %>

<%= ts("Your edits will be applied to") %> <%= ts("all") %> <%= ts("of the following works:") %>

<%= render "works/work_abbreviated_list", works: @works %> <%= form_for :work, url: update_multiple_user_works_path(@user), method: :patch, html: { class: "verbose post" } do |form| %>

<%= ts("* Required information") %> <% @works.each do |work| %> <%= hidden_field_tag "work_ids[]", work.id %> <% end %>

<%= render "work_form_tags", include_blank: true %>
<%= t("works.preface.title") %>

<%= t("works.preface.title") %>

<%= render "works/work_form_pseuds", form: form, works: @works %>
<%= t("works.associations.title") %>

<%= t("works.associations.title") %>

<%= render "collectibles/collectible_form", form: form, collectibles: @works %>
<%= form.label :language_id, t("works.associations.language.choose") %> <%= link_to_help "languages-help" %>
<%= form.select :language_id, language_options_for_select(sorted_languages, "id"), { include_blank: true } %>
<%= form.label :work_skin_id, t("works.skin.select") %> <%= link_to_help "work-skins" %>
<%= form.collection_select :work_skin_id, WorkSkin.approved_or_owned_by(current_user).order(:title), :id, :title, { include_blank: true } %>
<%= t("works.permissions.privacy") %>

<%= t("works.permissions.privacy") %>

<%= t("works.permissions.visibility.label") %> <%= link_to_help "registered-users" %>
<%= radio_button_list(form, :restricted, [ ["", t("works.permissions.visibility.keep_current")], ["1", t("works.permissions.visibility.multiple_works_restricted")], ["0", t("works.permissions.visibility.unrestricted")] ]) %>
<%= t("comments.commentable.permissions.moderated_commenting.label") %><%= link_to_help "comments-moderated" %>
<%= radio_button_list(form, :moderated_commenting_enabled, [ ["", t("comments.commentable.permissions.moderated_commenting.keep_current")], ["1", t("comments.commentable.permissions.moderated_commenting.enable")], ["0", t("comments.commentable.permissions.moderated_commenting.disable")] ]) %>
<%= t("comments.commentable.permissions.options.multiple_works_label") %> <%= link_to_help "who-can-comment-on-this-work" %>
<%= radio_button_list(form, :comment_permissions, [ ["", t("comments.commentable.permissions.options.keep_current")], [:enable_all, t("comments.commentable.permissions.options.enable_all")], [:disable_anon, t("comments.commentable.permissions.options.disable_anon")], [:disable_all, t("comments.commentable.permissions.options.disable_all")] ]) %>

<%= ts("Your edits will") %> <%= ts("replace") %> <%= ts("the existing values! (If you leave a field blank it will remain unchanged.)") %>

<%= submit_tag ts("Update All Works"), data: { confirm: ts("Are you sure? Remember this will replace all existing values!") } %>

<% end %>