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