Cast me sync
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<div class="card shadow-sm">
|
||||
<%= card_header text: "Casting call interview details" %>
|
||||
<%= card_header text: "Casting submission details" %>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<dl>
|
||||
<%= description_list_pair_for @casting_call_interview, :performer_name, append: ":" %>
|
||||
<%= description_list_pair_for @casting_call_interview, :interview_date, append: ":" %>
|
||||
<%= description_list_pair_for @casting_submission, :performer_name, append: ":" %>
|
||||
<%= description_list_pair_for @casting_submission, :interview_date, append: ":" %>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
@@ -16,14 +16,14 @@
|
||||
<div class="card shadow-sm">
|
||||
<%= card_header text: t(".heading") %>
|
||||
<div class="card-body">
|
||||
<%= errors_summary_for @casting_call_interview %>
|
||||
<%= bootstrap_form_with model: @casting_call_interview, url: casting_call_interview_path(token: @casting_call_interview.token), local: true do |form| %>
|
||||
<%= 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_call_interview.files.each do |file| %>
|
||||
<% @casting_submission.files.each do |file| %>
|
||||
<% unless file.persisted? %>
|
||||
<%= hidden_field_tag "#{@casting_call_interview.model_name.param_key}[files][]", file.signed_id %>
|
||||
<%= hidden_field_tag "#{@casting_submission.model_name.param_key}[files][]", file.signed_id %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
@@ -32,8 +32,8 @@
|
||||
data-accepted-files="audio/*,image/*,video/*"
|
||||
data-behavior="dropzone"
|
||||
data-file-input-id="casting_call_interivew_files"
|
||||
data-existing-files="<%= mock_photos_json(@casting_call_interview.files) %>"
|
||||
data-placeholder="<%= dropzone_placeholder_message_for(@casting_call_interview) %>"
|
||||
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">
|
||||
@@ -45,7 +45,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row align-items-center justify-content-center mt-3">
|
||||
<%= link_to "Start Interview", @casting_call_interview.join_zoom_meeting_url, target: "_blank", class: "btn btn-primary" %>
|
||||
<%= link_to "Start Interview", @casting_submission.join_zoom_meeting_url, target: "_blank", class: "btn btn-primary" %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user