<% @PAGE_TITLE = "Asset: #{@asset.title}" %>

<%= simple_form_for([:a, @asset], html: { class: "form-horizontal" }) do |f| %>
Basics <%= f.input :title, hint: @asset.image_title? ? "From Image: #{@asset.image_title}" : nil %> <%= f.input :caption, as: :text, input_html: { rows: 5 }, hint: @asset.image_description? ? "From Image: #{@asset.image_description}" : nil %>

Replace:

Drop File Here to Replace Asset

Rights <%= f.input :owner, hint: @asset.image_copyright? ? "From Image: #{@asset.image_copyright}" : nil, input_html: { class: "span5" } %> <%= f.input :url, input_html: { class: "span5" } %>
Metadata
<%= f.input :image_taken, as: :date %>
<%= f.input :image_gravity, as: :select, collection: AssetHostCore::Asset::GRAVITY_OPTIONS %>
Internal <%= f.input :notes, input_html: { rows: 5 } %>
<%= f.submit "Update Asset", class: "btn btn-primary" %> <%= link_to "Destroy Asset", a_asset_path(@asset), :method => :delete, :class => "btn btn-danger pull-right", :data => { confirm: "Are you sure you want to delete this asset? You are responsible for making sure no content is using it before deletion." } %>
<% end %>