OSDN Git Service

管理画面の日付検索をjavascrptのカレンダーで
[elecoma/elecoma.git] / app / views / admin / stock_modify / _search.html.erb
index 25c1d8a..93ff62d 100644 (file)
       <tr>
         <th>登録日・更新日</th>
         <td>
-          <%= f.date_select :updated_at_from ,:use_month_numbers => true, :include_blank=>true %>~
-          <%= f.date_select :updated_at_to, :use_month_numbers => true, :include_blank=>true %>
+          <%= calendar_date_select(:condition,:updated_at_from,
+                          {:start_year => 5.years.ago.year,
+                          :end_year => Date.today.year,
+                          :use_month_numbers => true,
+                          :include_blank =>true})%>
+          〜
+          <%= calendar_date_select(:condition,:updated_at_to,
+                          {:start_year => 5.years.ago.year,
+                          :end_year => Date.today.year,
+                          :use_month_numbers => true})%>
         </td>
       </tr>
       <tr>