cm-admin 1.4.7 → 1.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cm_admin/version.rb +1 -1
- data/lib/cm_admin/view_helpers/form_field_helper.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 739e610f8a75252258bd23ad714ba42235f099b2966450609d811a4a87ad8f6b
|
|
4
|
+
data.tar.gz: cb48e10324ba8876d10299e5f80ac34ed623a7c35ea768415587c81f87e42fb1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4106dee29b565d27cea6ea4f10d3775d8d3cfbb8cb2e22b9dfcfab0f23eae421f74602b516053e7ce1d84e6a742173e1780475a28196ca3dd23948503f0e1ae2
|
|
7
|
+
data.tar.gz: f0c32a23b1c364d2b5028f71be1e4ab4105f9316ef2585f68eeb11a814ed519548885fcd2292be7f1fb892e17eb151a82df25080b51cbf212678506a668880c1
|
data/Gemfile.lock
CHANGED
data/lib/cm_admin/version.rb
CHANGED
|
@@ -65,7 +65,7 @@ module CmAdmin
|
|
|
65
65
|
}
|
|
66
66
|
end
|
|
67
67
|
|
|
68
|
-
def cm_custom_single_select_field(form_obj, cm_field, value, required_class, target_action)
|
|
68
|
+
def cm_custom_single_select_field(form_obj, cm_field, value, required_class, target_action, _ajax_url)
|
|
69
69
|
select_tag cm_field.html_attr[:name] || cm_field.field_name,
|
|
70
70
|
options_for_select(select_collection_value(form_obj.object, cm_field)),
|
|
71
71
|
{
|
|
@@ -81,7 +81,7 @@ module CmAdmin
|
|
|
81
81
|
}
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
-
def cm_multi_select_field(form_obj, cm_field, value, required_class, target_action)
|
|
84
|
+
def cm_multi_select_field(form_obj, cm_field, value, required_class, target_action, _ajax_url)
|
|
85
85
|
form_obj.select cm_field.field_name,
|
|
86
86
|
options_for_select(select_collection_value(form_obj.object, cm_field), form_obj.object.send(cm_field.field_name)),
|
|
87
87
|
{ include_blank: cm_field.placeholder },
|
|
@@ -98,7 +98,7 @@ module CmAdmin
|
|
|
98
98
|
data: { behaviour: 'date-only' }
|
|
99
99
|
end
|
|
100
100
|
|
|
101
|
-
def cm_custom_date_field(form_obj, cm_field, value, required_class, _target_action)
|
|
101
|
+
def cm_custom_date_field(form_obj, cm_field, value, required_class, _target_action, _ajax_url)
|
|
102
102
|
text_field_tag cm_field.html_attr[:name] || cm_field.field_name, value&.strftime('%d-%m-%Y'),
|
|
103
103
|
class: "field-control #{required_class}",
|
|
104
104
|
disabled: cm_field.disabled.call(form_obj.object),
|
|
@@ -128,14 +128,14 @@ module CmAdmin
|
|
|
128
128
|
placeholder: cm_field.placeholder
|
|
129
129
|
end
|
|
130
130
|
|
|
131
|
-
def cm_single_file_upload_field(form_obj, cm_field, _value, required_class, _target_action)
|
|
131
|
+
def cm_single_file_upload_field(form_obj, cm_field, _value, required_class, _target_action, _ajax_url)
|
|
132
132
|
content_tag(:div) do
|
|
133
133
|
concat form_obj.file_field cm_field.field_name, class: "field-control #{required_class}", disabled: cm_field.disabled.call(form_obj.object)
|
|
134
134
|
concat attachment_list(form_obj, cm_field, _value, required_class, _target_action)
|
|
135
135
|
end
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
def cm_multi_file_upload_field(form_obj, cm_field, _value, required_class, _target_action)
|
|
138
|
+
def cm_multi_file_upload_field(form_obj, cm_field, _value, required_class, _target_action, _ajax_url)
|
|
139
139
|
content_tag(:div) do
|
|
140
140
|
concat form_obj.file_field cm_field.field_name, multiple: true, class: "field-control #{required_class}", disabled: cm_field.disabled.call(form_obj.object)
|
|
141
141
|
concat attachment_list(form_obj, cm_field, _value, required_class, _target_action)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cm-admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sajinmp
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: exe
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2024-04-
|
|
13
|
+
date: 2024-04-03 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: caxlsx_rails
|