From 50ca5e40f461290a2db7452b95f80dd3188dba1d Mon Sep 17 00:00:00 2001 From: erdgeist Date: Fri, 24 Jul 2026 18:04:56 +0200 Subject: Rename layout classes to what they actually do --- app/views/assets/new.html.erb | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'app/views/assets/new.html.erb') diff --git a/app/views/assets/new.html.erb b/app/views/assets/new.html.erb index 8a7a6094..7bb8a9ce 100644 --- a/app/views/assets/new.html.erb +++ b/app/views/assets/new.html.erb @@ -1,29 +1,29 @@ -
+

New asset

<%= form_for(@asset, :html => { :multipart => true }) do |f| %> <%= form_error_messages(f) %>
-
<%= f.label :name %>
-
<%= f.text_field :name %>
+
<%= f.label :name %>
+
<%= f.text_field :name %>
-
<%= f.label :upload, "File" %>
-
+
<%= f.label :upload, "File" %>
+
<%= f.file_field :upload %>

…or drop a file here.

-
<%= f.label :creator %>
-
<%= f.text_field :creator %>
+
<%= f.label :creator %>
+
<%= f.text_field :creator %>
-
<%= f.label :source_url, "Source URL" %>
-
<%= f.text_field :source_url %>
+
<%= f.label :source_url, "Source URL" %>
+
<%= f.text_field :source_url %>
-
<%= f.label :license_key, "License" %>
-
+
<%= f.label :license_key, "License" %>
+
<%= f.select :license_key, options_for_select( [["— none —", ""]] + AssetLicense.keys.map { |key| [t("asset_licenses.#{key}"), key] }, @@ -31,8 +31,8 @@ ) %>
-
attach to page
-
+
attach to page
+
<%= text_field_tag :asset_node_search_term, @attach_node&.title, :placeholder => "Search for a page…", :autocomplete => "off" %> @@ -42,17 +42,17 @@ Optional — attaches this asset to that page, all pending versions included.
-
-
+
+
Applies only if the page has no headline yet.
-
Actions
-
-
-
<%= f.submit 'Create' %>
-
<%= link_to 'Back', assets_path %>
+
Actions
+
+
+
<%= f.submit 'Create' %>
+
<%= link_to 'Back', assets_path %>
-- cgit v1.3