<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :upload %>
<%= f.file_field :upload %>
<%= t("assets.form.drop_hint") %>
<%= f.label :creator %>
<%= f.text_field :creator %>
<%= f.label :source_url %>
<%= f.text_field :source_url %>
<%= f.label :license_key %>
<%= f.select :license_key,
options_for_select(
[[t("assets.form.none_option"), ""]] + AssetLicense.keys.map { |key| [t("asset_licenses.#{key}"), key] },
@asset.license_key
) %>
<%= t("assets.form.attach_to_page") %>
<%= text_field_tag :asset_node_search_term, @attach_node&.title,
:placeholder => t("assets.form.attach_search_placeholder"), :autocomplete => "off" %>
<%= hidden_field_tag :node_id, @attach_node&.id %>
<%= t("assets.form.attach_hint") %>
<%= t("assets.form.headline_hint") %>
<%= t("admin.columns.actions") %>
<%= f.submit t("admin.common.create") %>
<%= link_to t("admin.common.back"), assets_path %>