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/edit.html.erb | 46 +++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'app/views/assets/edit.html.erb') diff --git a/app/views/assets/edit.html.erb b/app/views/assets/edit.html.erb index d0a39aa3..46f8ed9f 100644 --- a/app/views/assets/edit.html.erb +++ b/app/views/assets/edit.html.erb @@ -1,34 +1,34 @@ -
+

Editing 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 %>
<% if @asset.upload.present? %> -
Current File
-
<%= @asset.upload.url %> (<%= number_to_human_size(@asset.upload.size) %>)
+
Current File
+
<%= @asset.upload.url %> (<%= number_to_human_size(@asset.upload.size) %>)
<% end %> -
<%= f.label :upload, "Replace file" %>
-
+
<%= f.label :upload, "Replace 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] }, @@ -36,8 +36,8 @@ ) %>
-
attach to page
-
+
attach to page
+
<%= text_field_tag :asset_node_search_term, @attach_node&.title, :placeholder => "Search for a page…", :autocomplete => "off" %> @@ -47,18 +47,18 @@ Optional — attaches this asset to that page, all pending versions included.
-
-
+
+
Applies only if the page has no headline yet.
-
Actions
-
-
-
<%= f.submit 'Update' %>
-
<%= link_to 'Show', @asset %>
-
<%= link_to 'Back', assets_path %>
+
Actions
+
+
+
<%= f.submit 'Update' %>
+
<%= link_to 'Show', @asset %>
+
<%= link_to 'Back', assets_path %>
-- cgit v1.3