Sha256: d206d23b385bd9c0919beca688af5cf8c2f1c0dfa558fb72bd1672ecb4cc8686

Contents?: true

Size: 585 Bytes

Versions: 19

Compression:

Stored size: 585 Bytes

Contents

<% field_name_from = "#{field}_from" %>
<% field_name_to = "#{field}_to" %>

<% val = nil %>
<% val = params[model.underscore][field_name_from] if params[model.underscore].present? and params[model.underscore][field_name_from].present? %>

<%= text_field_tag "#{model.underscore}[#{field_name_from}]", val, :class => "datepick" %>
até


<% val = nil %>
<% val = params[model.underscore][field_name_to] if params[model.underscore].present? and params[model.underscore][field_name_to].present? %>

<%= text_field_tag "#{model.underscore}[#{field_name_to}]", val, :class => "datepick" %>

Version data entries

19 entries across 15 versions & 1 rubygems

Version Path
my_admin-0.1.13 app/views/my_admin/fields/edit/type/date_between.html.erb
my_admin-0.1.12 app/views/my_admin/fields/edit/type/date_between.html.erb
my_admin-0.1.11 app/views/my_admin/fields/edit/type/date_between.html.erb
my_admin-0.1.10 app/views/my_admin/fields/edit/type/date_between.html.erb
my_admin-0.1.9 app/views/my_admin/fields/edit/type/date_between.html.erb
my_admin-0.1.8 app/views/my_admin/fields/edit/type/date_between.html.erb
my_admin-0.1.7 app/views/my_admin/fields/edit/type/date_between.html.erb
my_admin-0.1.6 app/views/my_admin/fields/edit/type/date_between.html.erb
my_admin-0.1.5 app/views/my_admin/fields/edit/type/date_between.html.erb
my_admin-0.1.4 app/views/my_admin/fields/edit/type/date_between.html.erb
my_admin-0.1.4 app/views/my_admin/fields/filter/type/date_between.html.erb
my_admin-0.1.3 app/views/my_admin/fields/filter/type/date_between.html.erb
my_admin-0.1.3 app/views/my_admin/fields/edit/type/date_between.html.erb
my_admin-0.1.2 app/views/my_admin/fields/filter/type/date_between.html.erb
my_admin-0.1.2 app/views/my_admin/fields/edit/type/date_between.html.erb
my_admin-0.1.1 app/views/my_admin/fields/filter/type/date_between.html.erb
my_admin-0.1.1 app/views/my_admin/fields/edit/type/date_between.html.erb
my_admin-0.0.12 app/views/my_admin/fields/filter/type/date_between.html.erb
my_admin-0.0.11 app/views/my_admin/fields/filter/type/date_between.html.erb