egov_utils 0.1.30 → 0.1.31
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27ad750ec0eb6ded622413a440bdb2f1101a26de3c7fd4a66cdd5c08d97cb3b4
|
4
|
+
data.tar.gz: a0566b02e854ac2901f959f10859521f2ce543b04baf252ea09e6d6cfef27f44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d46d1fc603c83b3142db3eae0d8f0ef484a3e728cedc7c7a66dfe5fb134f8f641b00800c17412346de2db300220afbbc2b84d79441dcaa1e978b08b8f749e211
|
7
|
+
data.tar.gz: bfd3b7ad36d208db0afaed81a6fdb29faa5da0acd3375ec6531895894730990a2de33a880272a4e8a131b3be798a5b5a2dcab82b8094d4ca839d8e1b163ed9e2
|
@@ -9,22 +9,25 @@ module BootstrapForm
|
|
9
9
|
super
|
10
10
|
end
|
11
11
|
|
12
|
-
def datetime_field(name, *args)
|
13
|
-
options = args.extract_options!.symbolize_keys!
|
14
|
-
options[:datetimepicker] = true
|
15
|
-
options[:append] = calendar_addon
|
16
|
-
args << options
|
17
|
-
super
|
18
|
-
end
|
12
|
+
# def datetime_field(name, *args)
|
13
|
+
# options = args.extract_options!.symbolize_keys!
|
14
|
+
# options[:datetimepicker] = true
|
15
|
+
# options[:append] = calendar_addon
|
16
|
+
# args << options
|
17
|
+
# super
|
18
|
+
# end
|
19
19
|
|
20
20
|
def datetime_local_field(name, *args)
|
21
21
|
options = args.extract_options!.symbolize_keys!
|
22
22
|
options[:datetimepicker] = true
|
23
|
+
options[:data] = {'date-extra-formats' => [BootstrapForm::DATE_FORMAT_JS+"THH:mm:ss"]}.merge(options[:data] || {})
|
23
24
|
options[:append] = calendar_addon
|
24
25
|
args << options
|
25
26
|
super
|
26
27
|
end
|
27
28
|
|
29
|
+
alias_method :datetime_field, :datetime_local_field
|
30
|
+
|
28
31
|
private
|
29
32
|
|
30
33
|
def calendar_addon
|
@@ -12,7 +12,7 @@ module EgovUtils
|
|
12
12
|
|
13
13
|
def pickerize_options!
|
14
14
|
options = @options.stringify_keys
|
15
|
-
picker_data = {'provide' => 'datepicker', 'date-min-date' => format_date(datetime_value(options["min"])), 'date-max-date' => format_date(datetime_value(options["
|
15
|
+
picker_data = {'provide' => 'datepicker', 'date-min-date' => format_date(datetime_value(options["min"])), 'date-max-date' => format_date(datetime_value(options["max"])) }
|
16
16
|
@options[:data] = picker_data.merge(options['data'] || {})
|
17
17
|
end
|
18
18
|
|
data/lib/egov_utils/version.rb
CHANGED