Sha256: 0b428d92c1222c5a87da50b7f943ceabf2960addee9ab34d37a969ee5c4cfbfe
Contents?: true
Size: 949 Bytes
Versions: 17
Compression:
Stored size: 949 Bytes
Contents
<form onsubmit="jQuery.ajax({data:jQuery.param(jQuery(this).serializeArray()), dataType:'script', type:'post', url:'/papermill/<%= @asset.id %>'}); return false;" method="post" class="edit_papermill_asset"> <input type="hidden" value="put" name="_method"/> <div id="error" style="display:none;"></div> <% fields_for :papermill_asset, @asset do |form| %> <% @asset.papermill_options[:editable_fields].each do |field| %> <% key = field.keys.first %> <p> <%= form.label(key, (field[key][:label] || t("papermill.#{key}")).to_s) %><br /> <% case field[key][:type] when "text" %> <%= form.text_area key %> <% when "string" %> <%= form.text_field key %> <% when "boolean" -%> <%= form.check_box key %> <% else %> <%= form.text_field key %> <% end -%> </p> <% end %> <% end %> <%= submit_tag t('papermill.save') %> </form>
Version data entries
17 entries across 17 versions & 1 rubygems