From a1848f8ed162c31bb5583d4d98f7773fa8af59e5 Mon Sep 17 00:00:00 2001 From: Bohung Date: Tue, 15 Jun 2021 13:14:32 +0800 Subject: [PATCH] Add drag file to upload feature. --- app/views/admin/archive_files/_form.html.erb | 113 ++++++++++++++++--- config/locales/en.yml | 1 + config/locales/zh_tw.yml | 1 + 3 files changed, 102 insertions(+), 13 deletions(-) diff --git a/app/views/admin/archive_files/_form.html.erb b/app/views/admin/archive_files/_form.html.erb index 1f1db2c..65a3dc8 100644 --- a/app/views/admin/archive_files/_form.html.erb +++ b/app/views/admin/archive_files/_form.html.erb @@ -18,7 +18,38 @@ <% end %> <%#= f.error_messages %> - +
@@ -170,6 +201,12 @@
<% end %> +
+
+
+ <%=t("archive.drag_file_to_here")%> +
+
@@ -184,6 +221,67 @@ <% content_for :page_specific_javascript do %>