my_admin 0.0.10 → 0.0.11
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 39823294f69afed286b25c21f4ed04462fe28a65
|
|
4
|
+
data.tar.gz: 113a24fefe2ae7bd592925e3395f38e6e48086f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e4f05af7193b371bf435ce463e417a5886ff90ee6440008191c1da185b23c0b7b1cb53d037d76d7de4d62caad1d7f15f9272cd521f686a24ba6c40bf15f73171
|
|
7
|
+
data.tar.gz: 40311011b07707b7c8b3f3e02491a9ebf1b86ac20477bb1879cc7b2e9f9fd35dbf6017e2131634df33a5e7297c76d0d9581b3ca3ae875b6dbb287fd54ec64304
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<% field_name_from = "#{field}_from" %>
|
|
2
|
+
<% field_name_to = "#{field}_to" %>
|
|
3
|
+
|
|
4
|
+
<% val = nil %>
|
|
5
|
+
<% val = params[model.underscore][field_name_from] if params[model.underscore].present? and params[model.underscore][field_name_from].present? %>
|
|
6
|
+
|
|
7
|
+
<%= text_field_tag "#{model.underscore}[#{field_name_from}]", val, :class => "datepick" %>
|
|
8
|
+
até
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
<% val = nil %>
|
|
12
|
+
<% val = params[model.underscore][field_name_to] if params[model.underscore].present? and params[model.underscore][field_name_to].present? %>
|
|
13
|
+
|
|
14
|
+
<%= text_field_tag "#{model.underscore}[#{field_name_to}]", val, :class => "datepick" %>
|
data/lib/my_admin/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: my_admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marcos Vinicius von Gal dos Santos
|
|
@@ -853,6 +853,7 @@ files:
|
|
|
853
853
|
- app/views/my_admin/fields/filter/type/belongs_to.html.erb
|
|
854
854
|
- app/views/my_admin/fields/filter/type/boolean.html.erb
|
|
855
855
|
- app/views/my_admin/fields/filter/type/date.html.erb
|
|
856
|
+
- app/views/my_admin/fields/filter/type/date_between.html.erb
|
|
856
857
|
- app/views/my_admin/fields/filter/type/datetime.html.erb
|
|
857
858
|
- app/views/my_admin/fields/filter/type/default.html.erb
|
|
858
859
|
- app/views/my_admin/fields/filter/type/default_struct.html.erb
|