<%= errors_summary_for material_release %> <%= bootstrap_form_with model: model, local: true do |form| %> <%= field_set_tag content_tag(:span, t(".material_details.heading"), class: "h6 text-muted text-uppercase") do %>
<%= form.text_field :name, required: true, wrapper_class: "col-12" %>
<%= form.text_area :description, placeholder: true, wrapper_class: "col-sm-12", rows: 6 %>
<% end %>
<%= field_set_tag content_tag(:span, t(".signer_details.heading"), class: "h6 text-muted text-uppercase") do %> <%= form.form_group :minor do %> <%= form.check_box :minor, label: t("helpers.label.material_release.minor"), data: { target: "[data-ujs-target=guardian-fields]", toggle: "collapse" } %> <% end %>
<%= form.text_field :person_first_name, wrapper_class: "col-sm-6" %> <%= form.text_field :person_last_name, wrapper_class: "col-sm-6" %> <%= form.phone_field :person_phone, wrapper_class: "col-sm-6" %> <%= form.email_field :person_email, wrapper_class: "col-sm-6" %> <%= form.text_field :person_company, wrapper_class: "col-sm-6" %> <%= form.text_field :person_title, wrapper_class: "col-sm-6" %>
<%= render "shared/address_fields", form: form, subject: "person" %>
!material_release.minor?) %>" data-ujs-target="guardian-fields"> <%= card_field_set_tag t(".guardian_info.heading") do %>
<%= form.text_field :guardian_first_name, required: material_release.minor?, wrapper_class: "col-sm-3" %> <%= form.text_field :guardian_last_name, required: material_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(".contract_and_rights.heading"), class: "h6 text-muted text-uppercase") do %> <%= render "shared/contract_fields", form: form, release: material_release %> <%= render "shared/exploitable_rights_fields", form: form %> <% end %>
<%= field_set_tag content_tag(:span, t(".files.heading"), class: "h6 text-muted text-uppercase") do %> <%= render "shared/releasable_files_dropzone", form: form, releasable: material_release %>
!material_release.minor?) %>" data-ujs-target="guardian-fields">

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

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

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

No photo yet
<% if material_release.guardian_2_photo.attached? %> <%= javascript_tag nonce: true do %> App.PhotoPreview.set("#guardian-2-photo-preview", "<%= url_for(material_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 material_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: material_release.class.face_photo_acceptable_content_types.join(",") %>

<% end %>
<%= link_to t("shared.cancel"), [material_release.project, :material_releases], class: "col-3 text-reset" %>
<%= form.button id: "submit_release", class: class_string("btn btn-block", ["btn-success", "btn-primary"] => material_release.new_record?), data: { disable_with: t("shared.disable_with") } %>
<% end %>