New asset

<%= form_for(@asset, :html => { :multipart => true }) do |f| %> <%= form_error_messages(f) %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :upload, "File" %>
<%= f.file_field :upload %>
<%= f.label :creator %>
<%= f.text_field :creator %>
<%= f.label :source_url, "Source URL" %>
<%= f.text_field :source_url %>
<%= f.label :license_key, "License" %>
<%= f.select :license_key, options_for_select( [["— none —", ""]] + AssetLicense.keys.map { |key| [t("asset_licenses.#{key}"), key] }, @asset.license_key ) %>
Actions
<%= f.submit 'Create' %>
<%= link_to 'Back', assets_path %>
<% end %>