<%= errors_summary_for acquired_media_release %> <%= bootstrap_form_with model: model, local: true do |form| %> <%= field_set_tag content_tag(:span, t(".acquired_media_details.heading"), class: "h6 text-muted text-uppercase") do %> <%= form.form_group :minor do %> <%= form.check_box :minor, label: t("helpers.label.talent_release.minor"), data: { target: "[data-ujs-target=guardian-fields]", toggle: "collapse" } %> <% end %>
<%= form.text_field :name, required: true, wrapper_class: "col-12" %>
<%= form.form_group :categories, label: { text: "Licensed property type" } do %> <% AcquiredMediaRelease::CATEGORIES.each do |category| %> <%= form.check_box :categories, { multiple: true, label: category }, category, false %> <% end %> <% end %>
!acquired_media_release.minor?) %>" data-ujs-target="guardian-fields"> <%= card_field_set_tag t(".guardian_info.heading") do %>
<%= form.text_field :guardian_first_name, required: acquired_media_release.minor?, wrapper_class: "col-sm-3" %> <%= form.text_field :guardian_last_name, required: acquired_media_release.minor?, wrapper_class: "col-sm-3" %> <%= form.phone_field :guardian_phone, wrapper_class: "col-sm-6" %> <%= form.text_field :guardian_email, wrapper_class: "col-sm-6" %>
<%= render "shared/address_fields", form: form, subject: "guardian" %> <% end %> <%= card_field_set_tag t(".guardian_2_info.heading") do %>
<%= form.text_field :guardian_2_first_name, wrapper_class: "col-sm-3" %> <%= form.text_field :guardian_2_last_name, wrapper_class: "col-sm-3" %> <%= form.phone_field :guardian_2_phone, wrapper_class: "col-sm-6" %> <%= form.text_field :guardian_2_email, wrapper_class: "col-sm-6" %>
<%= render "shared/address_fields", form: form, subject: "guardian_2" %> <% end %>
<% end %>
<%= field_set_tag content_tag(:span, t(".files.heading"), class: "h6 text-muted text-uppercase") do %>
<%= fa_icon "warning" %> For optimal accuracy, please ensure video file names and photo file names match the source file name in the editing sequence.
<%= render "shared/releasable_files_dropzone", form: form, releasable: acquired_media_release %>
!acquired_media_release.minor?) %>" data-ujs-target="guardian-fields">

<%= t(".photos.guardian_photo.heading") %>

No photo yet
<% if acquired_media_release.guardian_photo.attached? %> <%= javascript_tag nonce: true do %> App.PhotoPreview.set("#guardian-photo-preview", "<%= url_for(acquired_media_release.guardian_photo.variant(auto_orient: true, resize: '200x200')) %>"); <% end %> <% end %>
<%= form.hidden_field :guardian_photo, value: form.object.guardian_photo.signed_id if acquired_media_release.guardian_photo.attached?%> <%= form.file_field :guardian_photo, hide_label: true, data: { ujs_target: "guardian-photo-input" }, help: "PNG or JPG only", accept: acquired_media_release.class.face_photo_acceptable_content_types.join(",") %>

<%= t(".photos.guardian_2_photo.heading") %>

No photo yet
<% if acquired_media_release.guardian_2_photo.attached? %> <%= javascript_tag nonce: true do %> App.PhotoPreview.set("#guardian-2-photo-preview", "<%= url_for(acquired_media_release.guardian_2_photo.variant(auto_orient: true, resize: '200x200')) %>"); <% end %> <% end %>
<%= form.hidden_field :guardian_2_photo, value: form.object.guardian_2_photo.signed_id if acquired_media_release.guardian_2_photo.attached?%> <%= form.file_field :guardian_2_photo, hide_label: true, data: { ujs_target: "guardian-2-photo-input" }, help: "PNG or JPG only", accept: acquired_media_release.class.face_photo_acceptable_content_types.join(",") %>

<% end %>
<%= field_set_tag content_tag(:span, t(".contract_and_rights.heading"), class: "h6 text-muted text-uppercase") do %> <%= render "shared/contract_fields", form: form, release: acquired_media_release %> <%= render "shared/exploitable_rights_fields", form: form %> <% end %>
<%= link_to t("shared.cancel"), [acquired_media_release.project, :acquired_media_releases], class: "col-3 text-reset" %>
<%= form.button id: "submit_release", class: class_string("btn btn-block", ["btn-success", "btn-primary"] => acquired_media_release.new_record?), data: { disable_with: t("shared.disable_with") } %>
<% end %>