% content_for :head do %> <%= javascript_include_tag 'jrails.autocomplete', 'jquery.suggest' %> <%= javascript_include_tag 'jquery.validate', 'messages_ru' %> <%= javascript_include_tag "jscal2"%> <%= javascript_include_tag "calendar2/js/lang/ru"%> <%= javascript_include_tag "private"%> <%= stylesheet_link_tag "jscal2" , :media => "all"%> <%= stylesheet_link_tag "messages" , :media => "all"%> <%= stylesheet_link_tag "index" , :media => "all"%> <%= stylesheet_link_tag "materialsTable" , :media => "all"%> <% end -%>
| Логин: | <%= f.text_field :name, :id => "report_name", :size => 20, :class => "required" %> <%= hidden_field_tag 'report_login_id', '', :class => "required" %> | |
| Данные о клиенте: | ||
| Дата работ: | <%= calendar_field_tag "date", @report.date, {:size=>9, :name => 'report[date]', :class =>"dateRUS required", :readonly => true, :change_materials => true} %> | |
| Категория: | <%= f.select(:category, Category.private.collect{ |c| [c.name, c.id]}, {}, :onchange => remote_function(:url => {:controller => 'private', :action => 'change_price'}, :with => "'type=' + $(this).val() + '&id='+#{@report.id}") ) %> | |
| Наличие денег: | <%= f.radio_button :money_type, 0, :class => 'money' %> Без денег за работы и материалы <%= f.radio_button :money_type, 3, :class => 'money' %> Наличный расчет |
|
| Номер чека: | <%= f.text_field "pay_doc_number", :id => "doc_number" %> | |
| Обоснование не взятия денег: | <%= select_tag "total_sum_comment_example", options_for_select(total_sum_comment), :onchange => "if(this.value!='-Примеры-'){$('#report_total_sum_comment').val(this.value) } else{$('#report_total_sum_comment').val('') }" %> <%= f.text_field :total_sum_comment %> | |
| Статус: | <% if @boss %> <%= f.select(:status, Report.status_priv) -%> <% else %> <%= @report.status_priv_name -%> <% end %> <% if @report.status.to_i == 1 && !@report.status_false_tracker_id.nil? %> <%= link_to "Заявка об отклоненном отчете в трекере № "+@report.status_false_tracker_id.to_s, "http://tracker.rinet.ru/main.php?mode=show_obji&obji="+@report.status_false_tracker_id.to_s, :target => '_blank' %> <% end -%> |
| <%= link_to_add_fields_pr "Добавить сотрудника", f, :done_employees %> |
| Общий комментарий <%= f.text_area :com_stay_work, :rows => 8, :style=> 'width: 500px;' %> |
<%= render :partial =>"/problems/problem.html.erb", :locals =>{:f => f} %>
| Коммент. к отклоненной заявке <%= f.text_area :com_imperfection, :rows => 3, :style=> 'width: 500px;' %> |