52 lines
2.3 KiB
Plaintext
52 lines
2.3 KiB
Plaintext
<div class="card shadow-sm">
|
|
<%= card_header text: "Casting submission details" %>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<dl>
|
|
<%= description_list_pair_for @casting_submission, :performer_name, append: ":" %>
|
|
<%= description_list_pair_for @casting_submission, :interview_date, append: ":" %>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
<h6>INTERVIEW FILES:</h6>
|
|
<hr/>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="card shadow-sm">
|
|
<%= card_header text: t(".heading") %>
|
|
<div class="card-body">
|
|
<%= errors_summary_for @casting_submission %>
|
|
<%= bootstrap_form_with model: @casting_submission, url: casting_submission_path(token: @casting_submission.token), local: true do |form| %>
|
|
<div class="field d-none">
|
|
<%= form.label :files %>
|
|
<%= form.file_field :files, disable: true, direct_upload: true, multiple: true, id: "casting_call_interivew_files", hide_label: true %>
|
|
<% @casting_submission.files.each do |file| %>
|
|
<% unless file.persisted? %>
|
|
<%= hidden_field_tag "#{@casting_submission.model_name.param_key}[files][]", file.signed_id %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="dropzone field border-dashed"
|
|
data-accepted-files="audio/*,image/*,video/*"
|
|
data-behavior="dropzone"
|
|
data-file-input-id="casting_call_interivew_files"
|
|
data-existing-files="<%= mock_photos_json(@casting_submission.files) %>"
|
|
data-placeholder="<%= dropzone_placeholder_message_for(@casting_submission) %>"
|
|
data-submit-button="#submit_folder"></div>
|
|
|
|
<div class="mt-5">
|
|
<%= form.button t(".update"), class: "btn btn-block btn-lg btn-success", data: { disable_with: t("shared.disable_with") } %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row align-items-center justify-content-center mt-3">
|
|
<%= link_to "Start Interview", @casting_submission.join_zoom_meeting_url, target: "_blank", class: "btn btn-primary" %>
|
|
</div>
|
|
</div>
|
|
</div>
|