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

Version Path
papermill-2.1.1 app/views/papermill/_form.html.erb
papermill-2.1.0 app/views/papermill/_form.html.erb
papermill-2.0.2 app/views/papermill/_form.html.erb
papermill-2.0.1 app/views/papermill/_form.html.erb
papermill-2.0.0 app/views/papermill/_form.html.erb
papermill-2.0.0.pre app/views/papermill/_form.html.erb
papermill-1.4.3 app/views/papermill/_form.html.erb
papermill-1.4.2 app/views/papermill/_form.html.erb
papermill-1.4.1 app/views/papermill/_form.html.erb
papermill-1.4.0 app/views/papermill/_form.html.erb
papermill-1.3.6 app/views/papermill/_form.html.erb
papermill-1.3.5 app/views/papermill/_form.html.erb
papermill-1.3.4 app/views/papermill/_form.html.erb
papermill-1.3.3 app/views/papermill/_form.html.erb
papermill-1.3.2 app/views/papermill/_form.html.erb
papermill-1.3.1 app/views/papermill/_form.html.erb
papermill-1.3.0 app/views/papermill/_form.html.erb