<% if preview %>

PREVIEW ONLY

<% end %>

<%= t ".heading" %>

<%= t ".instructions", releasable_name: "#{releasable.model_name.name.titleize}" %>

<% # Signer information %>
<% # Only guardian signs if talent is a minor %> <% unless releasable.minor? %>
<%= AppearanceRelease.human_attribute_name(:signature) %>:
<% if preview %> <%= image_tag dummy_signature %> <% elsif releasable.signature.attached? %> <%= image_tag releasable.signature.variant(auto_orient: true, resize: "200x200") %> <% end %>
<% end %> <%= description_list_pair t(".labels.#{releasable.model_name.param_key}.name", default: "Name"), releasable.name, append: ":" %> <% if releasable.model_name == "LocationRelease" %> <%= description_list_pair "Location Address:", releasable.address %> <%= description_list_pair "Owner Name", releasable.person_name, append: ":" %> <% end %> <%= description_list_pair t(".labels.#{releasable.model_name.param_key}.contact_person_address", default: "Contact Address"), releasable.contact_person.address, append: ":" %> <%= description_list_pair t(".labels.#{releasable.model_name.param_key}.contact_person_phone", default: "Contact Phone"), releasable.contact_person.phone, append: ":" %> <%= description_list_pair t(".labels.#{releasable.model_name.param_key}.contact_person_email", default: "Contact Email"), releasable.contact_person.email, append: ":" %> <% if releasable.model_name == "AppearanceRelease" %> <%= description_list_pair "Person Date of Birth:", releasable&.person_date_of_birth&.strftime("%D") %> <% end %> <%= description_list_pair_for releasable, :signed_on, append: ":" %> <% if releasable.model_name == "LocationRelease" %> <%= description_list_pair "Filming Started On:", releasable&.filming_started_on&.strftime("%D") %> <%= description_list_pair "Filming Ended On:", releasable&.filming_ended_on&.strftime("%D") %> <%= description_list_pair "Filming Hours:", releasable&.filming_hours %> <% end %> <% if contract_template.fee? %> <%= description_list_pair "Fee:", contract_template.fee %> <% end %> <% if releasable.model_name == "MaterialRelease" %> <%= description_list_pair "Description:", releasable.description %> <% end %>
<% if releasable.minor? %>

Guardian Information

<% # Guardian information %>
<%= AppearanceRelease.human_attribute_name(:signature) %>:
<% if preview %> <%= image_tag dummy_signature %> <% elsif releasable.signature.attached? %> <%= image_tag releasable.signature.variant(auto_orient: true, resize: "200x200") %> <% end %>
<%= description_list_pair_for releasable, :guardian_name, append: ":" %> <%= description_list_pair_for releasable, :guardian_address, append: ":" %> <%= description_list_pair_for releasable, :guardian_phone, append: ":" %> <%= description_list_pair_for releasable, :guardian_email, append: ":" %> <%= description_list_pair_for releasable, :signed_on, append: ":" %>
<% if releasable.respond_to?(:second_guardian_present?) && releasable.second_guardian_present? %>

Second guardian Information

<% # Second guardian information %>
<%= description_list_pair_for releasable, :guardian_2_name, append: ":" %> <%= description_list_pair_for releasable, :guardian_2_address, append: ":" %> <%= description_list_pair_for releasable, :guardian_2_phone, append: ":" %> <%= description_list_pair_for releasable, :guardian_2_email, append: ":" %>
<% end %> <% end %>