active_admin_simple_import 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4ae3dfaf0c3f4528a04ced9f6cbee24a113abcf
|
4
|
+
data.tar.gz: 3b09387d7998109eae0ad916bc9a1f123156d62c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d22d3c1e25000597b0cd8d6d045333b6b4399e2bd55d682ae5a1b224cfe823b6d90aa078a4d775a1eef05675fea4d57f627dcf78f8b25b4e1d02c969056b0a1
|
7
|
+
data.tar.gz: fe9481f00a334bb98241f46a7a7193de78e2b3d9b8eff26c5a7f4f30dea37a884d5c8c900fd4e8659a471fba6e7fb83ed6a03861082f974ffc5d61cc313114e8
|
@@ -2,6 +2,6 @@
|
|
2
2
|
= semantic_form_for :csv, url: {action: :do_import}, html: {multipart: true} do |f|
|
3
3
|
= f.inputs name: t('active_admin_simple_import.import') do
|
4
4
|
= f.input :file, as: :file, label: t('active_admin_simple_import.file_label')
|
5
|
-
= f.input :redirect_to, as: :hidden, input_html: { value:
|
5
|
+
= f.input :redirect_to, as: :hidden, input_html: { value: params[:redirect_to] }
|
6
6
|
= f.actions do
|
7
7
|
= f.action :submit, label: t("active_admin_simple_import.import_button")
|
@@ -21,6 +21,10 @@ module ActiveAdminSimpleImport
|
|
21
21
|
end
|
22
22
|
redirect_to params[:csv][:redirect_to], notice: t('active_admin_simple_import.import_success', count: objects.count)
|
23
23
|
end
|
24
|
+
|
25
|
+
action_item :import, only: :index do
|
26
|
+
link_to I18n.t("active_admin_simple_import.import_button") << " #{controller_name.singularize.camelize}", action: :import, redirect_to: request.full_path
|
27
|
+
end
|
24
28
|
end
|
25
29
|
end
|
26
30
|
end
|