<% content_for :head do %> <%= stylesheet_link_tag "materialsTable" , :media => "all"%> <%= javascript_include_tag 'jrails.autocomplete', 'jquery.suggest' %> <%= javascript_include_tag 'jquery.validate', 'messages_ru' %> <%= javascript_include_tag "jquery.meio.mask.min" %> <%= javascript_include_tag 'ams' %> <%= 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 -%>
<%= button_to 'Удалить', am_path(@report), :method => :delete, :confirm => "Вы уверены?" -%>