<%= f.hidden_field :id %> <%= f.hidden_field :category %> <%= hidden_field_tag :f_name, 'Офис btul2' %>
.

Возврат оборудования

Логин: <%= f.text_field :name, :id => "report_name", :size => 20 %> <%= f.text_field :login_id, :hidden => true, :class => "required" %>
Данные о клиенте:
Дата формирования отчета: <%= f.hidden_field :department %><%= calendar_field_tag "date", @report.date.to_time, {:name => 'report[date]', :class =>"required date_r", :alt => "d_r", :readonly => false, :change_materials => true} %>
Комментарий: <%= f.text_area :com_stay_work, :rows => 3, :style=> 'width: 400px;' %>
Оператор: <%= @current_user.login %>
<%= button_to_function("Выбрать оборудование", "materials_from_login(#{@current_user.id})") %>
<%= f.submit 'Сохранить', :class => "controlButton", :onclick => validate_and_disable() %>