Initial commit

This commit is contained in:
Senad Uka
2020-05-31 22:38:19 +02:00
commit 858fafc3c5
1280 changed files with 65918 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<div class="card shadow-sm">
<%= card_header text: t(".heading"), subtext: t(".subheading"), close_action_path: [@project, @video] %>
<div class="card-body">
<%= errors_summary_for @video %>
<%= render "form", video: @video, model: [@project, @video] %>
</div>
</div>
<%= javascript_tag nonce: true do %>
$(document).off("turbolinks:before-visit");
$(document).on("turbolinks:before-visit", function() {
if ($(".progress-bar").length > 0) {
let result = confirm("Leaving this page while uploading will terminate any file uploads. Are you sure you want to leave?");
if (result === true) {
$(document).off("turbolinks:before-visit");
}
return result;
}
});
<% end %>