<% html_title @paste.title %>

<%= l(:label_paste_edit, :link => link_to_paste(@paste)).html_safe %>

<%= render :partial => "authorship", :locals => { :paste => @paste } %>

<%= labelled_form_for @paste, :url => { :action => "update", :id => @paste }, :html => { :method => :put } do |f| %>
<%= hidden_field_tag "fork" %>

<%= f.text_field :title, :label => :field_paste_title %>

<%= f.select :lang, pastebin_language_choices, :label => :field_paste_lang %>

<%= f.text_area :text, :label => :field_paste_text, :rows => 25, :cols => 80 %>

<%= l(:text_paste_update_or_make_new, :update => f.submit(l(:button_paste_update)), :make_new => submit_tag(l(:button_paste_make_new), :onclick => "$('fork').value = 'yes'")).html_safe %> <% end %>