% content_for :head do %>
<%= stylesheet_link_tag "materialsTable" , :media => "all"%>
<%= javascript_include_tag 'jrails.autocomplete', 'jquery.suggest' %>
<%= javascript_include_tag 'jquery.validate', 'messages_ru', 'mod2' %>
<%= javascript_include_tag 'jquery-ui' %>
<%= 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 -%>
<% form_for @report, :url => {:action => 'update'}, :html =>{:autocomplete => "off", :multipart => true} do |f| -%>
<%= render :partial => 'form', :locals => {:f =>f} %>
<% if @boss || @report.status != 2 -%>
<%= f.submit 'Сохранить', :class => "controlButton" %>
<% end %>
<% end %>
<%= button_to 'Лог редактирования', audit_path(@report.id), :method => :get -%>
<% if @boss || @report.status != 2 -%>
<%= button_to 'Удалить', undergrounds_path(@report), :method => :delete, :confirm => "Вы уверены?" -%>
<% end -%>