Sha256: ed68409d5c7885ff02a61761fd9619af162f85bdf2534c63098eead4a8b71bae

Contents?: true

Size: 951 Bytes

Versions: 10

Compression:

Stored size: 951 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.assetable_papermill_options[:editable_fields].each do |field| %>
    <% key = field.keys.first %>
      <p>
        <%= form.label key, field[key][:label] || t("papermill.#{key}") %><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

10 entries across 10 versions & 1 rubygems

Version Path
papermill-1.1.6 app/views/papermill/_form.html.erb
papermill-1.1.5 app/views/papermill/_form.html.erb
papermill-1.1.4 app/views/papermill/_form.html.erb
papermill-1.1.3 app/views/papermill/_form.html.erb
papermill-1.1.2 app/views/papermill/_form.html.erb
papermill-1.1.1 app/views/papermill/_form.html.erb
papermill-1.1.0 app/views/papermill/_form.html.erb
papermill-1.0.7 app/views/papermill/_form.html.erb
papermill-1.0.6 app/views/papermill/_form.html.erb
papermill-1.0.5 app/views/papermill/_form.html.erb