% content_for :head do %> <%= stylesheet_link_tag "materialsTable" , :media => "all"%> <%= javascript_include_tag 'jrails.autocomplete', 'jquery.suggest' %> <%= javascript_include_tag 'jquery.validate', 'messages_ru', 'new_soft' %> <%= javascript_include_tag "jquery.meio.mask.min" %> <%= stylesheet_link_tag "messages" , :media => "all"%> <%= stylesheet_link_tag "index" , :media => "all"%> <%= stylesheet_link_tag "jquery.ui.theme" , :media => "all"%> <% end -%>
| Категория: | <%= f.select(:category, Category.construction.collect{ |c| [c.name, c.id]}, {}, :onchange => remote_function(:url => {:controller => 'construction', :action => 'change_price'}, :with => "'type=' + $(this).val() + '&price=' + $('#report_client_price_type').val() + '&id='+#{@report.id}", :method => :get)) %> | |
| Логин: |
<%= f.text_field :name, :id => "report_name", :size => 20, :class => "required" %> |
|
| Введите ник или ФИО сотрудника: | <%= f.text_field :nick, :id => "nick", :size => 20 %> | |
| ИНН: | <%= f.text_field :inn, :class =>"number" %> | |
| Дата: | <%= calendar_field_tag "date", @report.date.to_time, {:name => 'report[date]', :class =>"required date_r", :alt => "d_r", :readonly => false, :change_materials => true} %> | |
| Время работы на объекте: |
C: <%= f.text_field :time_start, :alt =>"time", :class => "required time", :style => "width:50px"%> По: <%= f.text_field :time_stop, :alt =>"time", :class => "required time", :style => "width:50px"%> | |
| <%= hidden_field_tag "report[report_factors_attributes][#{factor.id}][factor_id]", factor.id %> <%= hidden_field_tag "report[report_factors_attributes][#{factor.id}][id]", @factors.select{|i| i.factor_id == factor.id}.map{|i| i.id} %> <%= hidden_field_tag "report[report_factors_attributes][#{factor.id}][percent]", factor.percent %> <%= factor.name %>: | <%= hidden_field_tag "report[report_factors_attributes][#{factor.id}][_destroy]", false %> <%= check_box_tag "report[report_factors_attributes][#{factor.id}][active]", true, checked = (@factors.select{|i| i.factor_id == factor.id}.size > 0), :onchange =>"changeFactor(this);" %> | |
| Статус: | <% if @boss || @disp || @disp_fast %><%= f.select(:status, status_s(@current_user)) -%> | <% else %><%= @report.status_name -%> | <% end %>
| Сотрудник |
|---|
| <%= link_to_add_fields "Добавить сотрудника", f, :done_employees %> |
Нестандартная работа |
|||
|---|---|---|---|
| <%= f.text_area :com_conflicts, :rows => 5, :style=> 'width: 400px;' %> | <%= f.text_field :get_money_sum, :size => 5, :onchange => "getSum()" %> | ||
| Общий комментарий <%= f.text_area :com_stay_work, :rows => 8, :style=> 'width: 500px;' %> |