image fix

This commit is contained in:
2026-05-05 23:02:38 +02:00
parent 4aaed0607c
commit 54625b8583
3 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -10,7 +10,9 @@
"Bash(rm /Users/tasi/Work/TTG/teletypegames/apps/frontend/src/pages/catalog/\\\\[name\\\\].astro)",
"Bash(npm install *)",
"Bash(npx vue-tsc *)",
"Bash(npx vite *)"
"Bash(npx vite *)",
"Bash(xargs ls -la)",
"Bash(xargs ls)"
]
}
}
+2 -2
View File
@@ -34,7 +34,7 @@ ActiveAdmin.register Member do
f.input :motto
f.input :avatar_filename,
hint: "Fallback image filename (e.g. mr.zero.png) — only used when no image is selected above."
f.input :image, as: :select,
f.input :image_id, as: :select, label: "Image",
collection: Image.order(:original_filename).map { |img| [img.original_filename, img.id] },
include_blank: "— no image (use avatar_filename) —"
end
@@ -49,7 +49,7 @@ ActiveAdmin.register Member do
f.input :motto
f.input :avatar_filename,
hint: "Fallback image filename (e.g. mr.zero.png) — only used when no image is selected above."
f.input :image, as: :select,
f.input :image_id, as: :select, label: "Image",
collection: Image.order(:original_filename).map { |img| [img.original_filename, img.id] },
include_blank: "— no image (use avatar_filename) —"
end
+2 -2
View File
@@ -44,7 +44,7 @@ ActiveAdmin.register Software do
f.input :status, as: :select, collection: %w[development demo released archived]
f.input :highlighted
f.input :license
f.input :image, as: :select,
f.input :image_id, as: :select, label: "Image",
collection: Image.order(:original_filename).map { |img| [img.original_filename, img.id] },
include_blank: "— no image —"
f.input :desc, as: :text, input_html: { rows: 4 }
@@ -82,7 +82,7 @@ ActiveAdmin.register Software do
f.input :status, as: :select, collection: %w[development demo released archived]
f.input :highlighted
f.input :license
f.input :image, as: :select,
f.input :image_id, as: :select, label: "Image",
collection: Image.order(:original_filename).map { |img| [img.original_filename, img.id] },
include_blank: "— no image —"
f.input :desc, as: :text, input_html: { rows: 4 }