Skip to content

Commit 0a1e43e

Browse files
remove radio
1 parent 5480c15 commit 0a1e43e

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

app/views/admin/edition_images/_image_upload.html.erb

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,7 @@
2323
accept: "image/png, image/jpeg, image/gif, image/svg+xml",
2424
} %>
2525

26-
<% if image_kind.present? %>
27-
<%= hidden_field_tag("images[][image_data][image_kind]", image_kind.name) %>
28-
<% else %>
29-
<%= render "govuk_publishing_components/components/radio", {
30-
heading: "What kind of image is this?",
31-
name: "images[][image_data][image_kind]",
32-
items: @edition.permitted_image_kinds.map do |image_kind|
33-
{
34-
value: image_kind.name,
35-
text: image_kind.display_name,
36-
}
37-
end,
38-
} %>
39-
<% end %>
26+
<%= hidden_field_tag("images[][image_data][image_kind]", image_kind.name) %>
4027

4128
<%= render "govuk_publishing_components/components/details", {
4229
title: "You must use an SVG for charts and diagrams",

0 commit comments

Comments
 (0)