Sha256: ca29cae0514f946004f793e2e5369ef3b71f13bb9a9e390733e38a92420efe71
Contents?: true
Size: 1.03 KB
Versions: 3
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 %>'}); close_popup(self); return false;" method="post" action="/papermill/<%= @asset.id %>"> <input type="hidden" value="put" name="_method"/> <% fields_for :papermill_asset, @asset do |form| %> <% PapermillAsset.columns.map{|c| [c.name, c.type] }.reject{ |c| ["slug", "file_file_name", "file_content_type", "file_file_size", "position", "assetable_id", "assetable_type", "assetable_key", "type", "id", "created_at", "updated_at"].include?(c.first) }.each do |c| %> <p> <%= form.label c.first, t("papermill.#{c.first}") %><br /> <% if c.last == :text %> <%= form.text_area c.first %> <% else %> <%= form.text_field c.first %> <% end -%> </p> <% end %> <%= 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
papermill-0.16.3 | app/views/papermill/_form.html.erb |
papermill-0.16.2 | app/views/papermill/_form.html.erb |
papermill-0.16.1 | app/views/papermill/_form.html.erb |