| Начальная точка: |
<%= f.text_field :login_from, :id => "report_login_from", :size => 20 %>
|
| Конечная точка: |
<%= f.text_field :name, :id => "report_name_lr", :size => 20 %>
<%= hidden_field_tag 'report_login_id', '', :class => "required" %>
|
| Данные о клиенте: |
|
| Дата формирования отчета: |
<%= calendar_field_tag "date", @report.date.to_time, {:name => 'report[date]', :class =>"required date_r", :alt => "d_r", :readonly => false, :change_materials => true} %> |
| Категория: |
<%= f.select(:category, Category.underground.collect{ |c| [c.name, c.id]}, {}, :onchange => remote_function(:url => {:controller => 'underground', :action => 'change_price'}, :with => "'type=' + $(this).val() + '&price=' + $('#report_client_price_type').val() + '&id='+#{@report.id}", :method => :get)) %>
|
| Номер доп. соглашения: |
<%= f.text_field :total_sum_comment, :size => 20 %>
|
| Стоимость сметы: |
<%= text_field :report, :total_sum_get_money, :size => 5, :id =>"total_sum_get_money" %> |
<% if @boss %>
| Статус: |
<%= f.select(:status, mod_status(@current_user)) -%> |
<% else %>
<%= f.hidden_field :status %>
| Статус: |
<%= @report.status_name -%> |
<% end %>