<%= image_tag(@asset.url, :id => "cropbox") %>
<% fields_for :papermill_asset, @asset do |f| %> <% for attribute in [:crop_x, :crop_y, :crop_w, :crop_h] %> <%= f.hidden_field attribute, :id => attribute %> <% end %> <%= submit_tag I18n.t('papermill.save') %> <% end -%>
<%= link_to_function I18n.t("papermill.back"), "popup('#{edit_papermill_path(@asset)}')" %>