Sha256: c7502a520f4fc0120e4d13d7f74904e0e4c699cdbc09d44180e4c190bf355c88
Contents?: true
Size: 930 Bytes
Versions: 5
Compression:
Stored size: 930 Bytes
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>
Version data entries
5 entries across 5 versions & 1 rubygems