Sha256: ae01c3d65178f632c6bea786c4803eb6cab7eb6e10cf44b368135b1eebfef8c4

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

<form onsubmit="jQuery.ajax({data:jQuery.param(jQuery(this).serializeArray()), dataType:'script', type:'post', url:'/papermill/<%= @asset.id %>'}); try {jQuery(document).trigger('close.facebox');} catch (e) {}; try{Shadowbox.close();} catch (e) {};  try{self.close();} catch (e) {}; return false;" method="post" action="/papermill/<%= @asset.id %>">
  <input type="hidden" value="put" name="_method"/>
  
  <% fields_for :papermill_asset, @asset do |form| %>
    <p>
      <%= form.label :title, t("papermill.title") %><br />
      <%= form.text_field :title, :class => "text_field" %>
    </p>
    <p>
      <%= form.label :copyright, t("papermill.copyright") %><br />
      <%= form.text_field :copyright, :class => "text_field" %>
    </p>
    <p>
      <%= form.label :description, t("papermill.description") %><br />
      <%= form.text_area :description %>
    </p>
    <%= submit_tag t('papermill.save') %>
  <% end %>
</form>
<%= javascript_include_tag("http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js") if params[:with_jquery] %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
papermill-0.16.0 app/views/papermill/_form.html.erb