OSDN Git Service

管理画面の日付検索をjavascrptのカレンダーで
[elecoma/elecoma.git] / app / views / admin / return_items / _form.html.erb
1 <h3>返品登録</h3>
2 <table class="data" cellspacing="1">
3   <tr>
4     <th>返品数</th>
5     <td>
6       <%= f.text_field :returned_count, {:class => "data_s"} %>
7     </td>
8   </tr>
9   <tr>
10     <th>返品日時</th>
11     <td>
12       <%= calendar_date_select(:return_item,"returned_at",
13                           {:start_year => 5.years.ago.year,
14                           :end_year => Date.today.year,
15                           :use_month_numbers => true,
16                           :include_blank =>true})%>
17     </td>
18   </tr>
19   <tr>
20     <th>返品理由</th>
21     <td>
22       <%= f.text_area :comment, {:size => "60x10"} %>
23     </td>
24   </tr>
25   <%= f.hidden_field :product_id, {:value => @product_style.product_id.to_s} %>
26   <%= f.hidden_field :product_style_id, {:value => @product_style.id.to_s} %>
27 </table>