active_admin_simple_import 0.0.6 → 0.0.7
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: 6c6d2fab668c70ba42cb7b072446d1c18c96b41a
|
4
|
+
data.tar.gz: a2d0167655571c0995baf0738c27f8d0280adff0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65530c0a909b031a7b001d7c1b19175ee9b627d325d30dc194b1756a8258994654f42b7bfaf67f90985c6624e56b23417c9d383ae358ec2c36694fc8799c63c5
|
7
|
+
data.tar.gz: a9e5aecf9782e15668d298e36212554ada9d75d181ca6d5e2d411e12c1454b393ccde1e2e60ed1701df6cf493355ac6acef1361fe4a9ce221533b6af378f2d15
|
@@ -1,6 +1,7 @@
|
|
1
1
|
%p.active_admin_import_hint
|
2
2
|
= semantic_form_for :csv, url: {action: :do_import}, html: {multipart: true} do |f|
|
3
|
-
= f.inputs name: '
|
4
|
-
= f.input :file, as: :file, label: '
|
3
|
+
= f.inputs name: t('active_admin_simple_import.import') do
|
4
|
+
= f.input :file, as: :file, label: t('active_admin_simple_import.file_label')
|
5
|
+
= f.input :redirect_to, as: :hidden, html_input: { value: request.original_url }
|
5
6
|
= f.actions do
|
6
|
-
= f.action :submit, label: t("
|
7
|
+
= f.action :submit, label: t("active_admin_simple_import.import_btn")
|
@@ -19,7 +19,7 @@ module ActiveAdminSimpleImport
|
|
19
19
|
next if options[:after_update].nil? || !options[:after_update].is_a?(Proc)
|
20
20
|
options[:after_update].call(edited_object, object)
|
21
21
|
end
|
22
|
-
redirect_to
|
22
|
+
redirect_to params[:csv][:redirect_to], notice: t('active_admin_simple_import.import_success', count: objects.count)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_admin_simple_import
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Damian Romanów
|
@@ -38,6 +38,8 @@ files:
|
|
38
38
|
- app/controllers/active_admin_simple_import/application_controller.rb
|
39
39
|
- app/helpers/active_admin_simple_import/application_helper.rb
|
40
40
|
- app/views/active_admin_simple_import/import.html.haml
|
41
|
+
- config/locales/en.yml
|
42
|
+
- config/locales/pl.yml
|
41
43
|
- config/routes.rb
|
42
44
|
- lib/active_admin_simple_import.rb
|
43
45
|
- lib/active_admin_simple_import/dsl.rb
|