% 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.soft.collect{ |c| [c.name, c.id]}, {}, :onchange => remote_function(:url => {:controller => 'soft', :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.check_box :electro %> Не является клиентом Ринета <%= check_box_tag :pay_name_chb %> Наименование плательщика не совпадает |
|
| Введите ник или ФИО сотрудника: | <%= f.text_field :nick, :id => "nick", :size => 20 %> | |
| Наименование плательщика: | <%= f.text_field :pay_name %> | |
| ИНН: | <%= 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"%> | |
| Диагноз из списка: | <%= f.select(:diagnosis, Report.diagnos, {:include_blank => true}) %> | |
| Тип клиента: | <%= f.select(:client_type, Report.client_types, {}, :onchange => "getSum(); show_hide_req_button()") %> | |
| Нал/Безнал: |
<%= f.radio_button :money_type, 0, :class => 'money_type', :onchange => "getSum()" %> Без денег <%= f.radio_button :money_type, 2, :class => 'money_type', :onchange => "getSum()" %> Наличный расчет <%= f.radio_button :money_type, 10, :class => 'money_type', :onchange => "getSum()" %> Безналичный расчет <%= f.radio_button :money_type, 6, :class => 'money_type', :onchange => "getSum()" %> Онлайн касса <%= f.radio_button :money_type, 11, :class => 'money_type', :onchange => "getSum()" %> Договор подряда |
|
| Оплачено: | <%= @report.finn_money %> | |
| Коммент. к оплате: | <%= f.text_area :com_buh, :style =>"width: 317px; height: 53px;" %> | |
| Документы: | <%= f.select(:get_docs, Report.soft_get_docs) %> | |
| Прайс клиента: | <%= f.select :client_price_type, Report.price_types,{}, :onchange => remote_function(:url => {:controller => 'soft', :action => 'change_price'}, :with => "'price=' + $(this).val() + '&type=' + $('#report_category').val() + '&id='+#{@report.id}", :method => :get) %> | |
| Тип заявки: | <%= f.select(:weld, [["Обычная", 0], ["СГ-Фаст", 1]], {}, {:id => "weld"}) -%> | |
| Статус: | <% if @boss || @disp || @disp_fast %><%= f.select(:status, status_s(@current_user)) -%> | <% else %><%= @report.status_name -%> | <% end %>
| Статья движения средств: | <%= f.select(:payment_detail, PaymentDetail.all, :include_blank => "Выберите статью") -%> |
| Сотрудник | Доля | Сумма <%= hidden_field_tag "all_hand", 1, :class => "required", :min =>1, :max=>1 %> |
|---|---|---|
| <%= 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()" %> | ||
| <%= (link_to "Обновить закупочные цены", update_purchase_price_soft_path(@report.id), :method => :post) if @report.done_materials.size > 0%> |
| Общий комментарий <%= f.text_area :com_stay_work, :rows => 8, :style=> 'width: 500px;' %> |
<%= render :partial =>"/problems/problem.html.erb", :locals =>{:f => f} %>