kono_utils_bootstrap_view4 0.1.0.pre.rc.5 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/concepts/kono_utils/{base_object → object}/cell/base.rb +7 -3
- data/app/concepts/kono_utils/{base_object → object}/cell/buttons/base.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/buttons/collapse_search.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/buttons/create.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/buttons/delete.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/buttons/download.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/buttons/edit.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/buttons/list.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/buttons/reset_search.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/create/base.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/create/page_title.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/create/side_title.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/edits/base.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/edits/page_title.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/edits/side_title.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/form.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/base.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/container.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/containers/layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/containers/modal_layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/containers/search_layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/containers/table_layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/field_selector.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/field_selectors/layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/field_selectors/modal_layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/field_selectors/table_layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/association.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/base.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/bases/layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/bases/modal_layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/bases/table_layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/check_box.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/collection.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/date_field.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/date_time_field.rb +2 -2
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/enum.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/file_field.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/nested_modal_wrapper.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/nested_modal_wrappers/forms_container.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/nested_modal_wrappers/show.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/nested_wrapper.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/nested_wrappers/form.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/nested_wrappers/forms/layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/nested_wrappers/forms/modal_layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/nested_wrappers/forms/table_layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/nested_wrappers/forms_container.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/nested_wrappers/forms_containers/layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/nested_wrappers/forms_containers/modal_layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/nested_wrappers/forms_containers/table_layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/nested_wrappers/header.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/nested_wrappers/remove_button.rb +2 -2
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/nested_wrappers/remove_buttons/layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/nested_wrappers/remove_buttons/modal_layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/nested_wrappers/remove_buttons/table_layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/read_only.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/fields/time_field.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/forms/submit.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/index/base.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/index/page_title.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/index/row.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/index/row_buttons.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/index/row_footer.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/index/row_header.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/index/side_title.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/index/table.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/inject.rb +3 -3
- data/app/concepts/kono_utils/{base_object → object}/cell/modals/base.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/modals/bodies/layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/modals/body.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/modals/container.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/modals/containers/layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/modals/footer.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/modals/footers/layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/modals/header.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/modals/headers/layout.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/search.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/searches/form.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/show.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/shows/base.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/shows/page_title.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/cell/shows/side_title.rb +1 -1
- data/app/concepts/kono_utils/{base_object → object}/view/create/side_title.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/edits/side_title.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/form.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/container.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/containers/layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/containers/modal_layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/containers/search_layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/containers/table_layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/field_selector.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/field_selectors/layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/field_selectors/modal_layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/field_selectors/table_layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/association.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/base.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/bases/layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/bases/layout.scss +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/bases/modal_layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/bases/table_layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/check_box.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/collection.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/nested_modal_wrapper.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/nested_modal_wrappers/forms_container.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/nested_modal_wrappers/show.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/nested_wrapper.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/nested_wrappers/form.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/nested_wrappers/forms/layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/nested_wrappers/forms/modal_layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/nested_wrappers/forms/table_layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/nested_wrappers/forms_container.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/nested_wrappers/forms_containers/layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/nested_wrappers/forms_containers/modal_layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/nested_wrappers/forms_containers/table_layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/nested_wrappers/header.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/nested_wrappers/remove_button.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/nested_wrappers/remove_buttons/layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/nested_wrappers/remove_buttons/modal_layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/fields/nested_wrappers/remove_buttons/table_layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/forms/layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/index/row.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/index/row_buttons.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/index/row_footer.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/index/row_header.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/index/side_title.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/index/table.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/inject.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/modals/bodies/layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/modals/body.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/modals/container.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/modals/containers/layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/modals/footer.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/modals/footers/layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/modals/header.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/modals/headers/layout.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/search.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/searches/form.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/show.erb +0 -0
- data/app/concepts/kono_utils/{base_object → object}/view/shows/side_title.erb +0 -0
- data/app/inputs/tempus_dominus_input.rb +3 -3
- data/app/views/kono_utils/base_editing/edit.html.erb +3 -3
- data/app/views/kono_utils/base_editing/edit.inject.erb +1 -1
- data/app/views/kono_utils/base_editing/index.html.erb +4 -4
- data/app/views/kono_utils/base_editing/new.html.erb +3 -3
- data/app/views/kono_utils/base_editing/new.inject.erb +1 -1
- data/app/views/kono_utils/base_editing/show.html.erb +3 -3
- data/app/views/kono_utils/base_editing/success_create_show.inject.erb +1 -1
- data/app/views/kono_utils/base_editing/success_update_show.inject.erb +1 -1
- data/lib/kono_utils_bootstrap_view4.rb +14 -8
- data/lib/kono_utils_bootstrap_view4/base_class_concept_ns.rb +1 -1
- data/lib/kono_utils_bootstrap_view4/engine.rb +1 -4
- data/lib/kono_utils_bootstrap_view4/version.rb +1 -1
- metadata +149 -157
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d44de3f9d7df14eb1afe8cb5f2390f9ac2ac42ad3baaea68e99e3be3278c9a54
|
4
|
+
data.tar.gz: 4bc4fcc67bd4ebde637e0e554762b25a493d8933b3cfc5aa48c698adb15bfc84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7e459e9bf577f3928ec0680c9a451dbba9a04247f4c076872f8557ef92bacd672a0e121fe3c0809d352db9468bc72a24b82a490457adbab7708677a3a37fea8
|
7
|
+
data.tar.gz: 7406b7b710a1971c99c543280fc574f299c18fc530b22069e76d18f9110692cf8a6e7fb86a4305f9afa638eaa09c64d44db4ee2157a3dc5da027846429aec82d
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'kaminari/helpers/helper_methods'
|
2
2
|
|
3
3
|
module KonoUtils
|
4
|
-
module
|
4
|
+
module Object
|
5
5
|
module Cell
|
6
6
|
class Base < Trailblazer::Cell # class
|
7
7
|
view_paths << "#{KonoUtilsBootstrapView4::Engine.root}/app/concepts"
|
@@ -81,10 +81,14 @@ module KonoUtils
|
|
81
81
|
base_class.concept_prefix + super + parent_controller.lookup_context.view_paths.collect(&:to_path)
|
82
82
|
end
|
83
83
|
|
84
|
-
def
|
85
|
-
context[:
|
84
|
+
def kono_user
|
85
|
+
context[:kono_user]
|
86
86
|
end
|
87
87
|
|
88
|
+
##
|
89
|
+
# In questo modo se non viene modificato l'utente di pundit, il pundit interno a kono utilizza quello di kono_utils
|
90
|
+
alias_method :current_user, :kono_user
|
91
|
+
|
88
92
|
def title_mod
|
89
93
|
"#{t(:edit)} #{model.mn}"
|
90
94
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module KonoUtils
|
2
|
-
module
|
2
|
+
module Object
|
3
3
|
module Cell
|
4
4
|
module Forms # namespace
|
5
5
|
module Fields
|
@@ -8,7 +8,7 @@ module KonoUtils
|
|
8
8
|
|
9
9
|
def show(&block)
|
10
10
|
|
11
|
-
bf =
|
11
|
+
bf = ActiveSupport::SafeBuffer.new
|
12
12
|
bf << form.input(attribute_name, field_options)
|
13
13
|
|
14
14
|
bf << content_tag(:script, :type => "text/javascript") do
|