<%= form_for @plugin, :html => {:method => 'put', :class => 'form-horizontal'} do |c| %> <%= error_messages_for 'plugin', :header_message => t(:try_again), :message => t(:plugin_error) %>
<%= c.text_field :name, :class => 'form-control' %>
<%= c.text_area :html, :class => 'form-control', :rows => 14 %>
<%= c.text_area :css, :class => 'form-control', :rows => 14 %>
<%= c.text_area :js, :class => 'form-control', :rows => 14 %>

<%= c.submit t(:plugin_save), :class => 'btn btn-primary' %>

<% end %>

<%= t(:plugin_delete_message) %>

<%= button_to t(:plugin_delete), plugin_path(@plugin.id), :method => 'delete', :data => { :confirm => t(:confirm_plugin_delete) }, :class => 'btn btn-danger' %>