diff --git a/app/components/admin/site_customization/images/index_component.html.erb b/app/components/admin/site_customization/images/index_component.html.erb new file mode 100644 index 000000000..a6357caed --- /dev/null +++ b/app/components/admin/site_customization/images/index_component.html.erb @@ -0,0 +1,22 @@ +<%= header %> + +
| <%= t("admin.site_customization.images.index.image") %> | +<%= t("admin.actions.actions") %> | +
|---|---|
| + <%= image.name %> (<%= image.required_width %>x<%= image.required_height %>) + | ++ <%= render Admin::SiteCustomization::Images::TableActionsComponent.new(image) %> + | +
| <%= t("admin.site_customization.images.index.image") %> | -<%= t("admin.actions.actions") %> | -
|---|---|
| - <%= image.name %> (<%= image.required_width %>x<%= image.required_height %>) - | -
- <%= form_for([:admin, image], html: { id: "edit_#{dom_id(image)}" }) do |f| %>
-
- <%= image_tag image.image if image.persisted_attachment? %>
- <%= f.file_field :image, label: false %>
-
-
- <%= f.submit(t("admin.site_customization.images.index.update"), class: "button hollow") %>
- <%= link_to t("admin.site_customization.images.index.delete"), admin_site_customization_image_path(image), method: :delete, class: "button hollow alert" if image.persisted_attachment? %>
-
- <% end %>
- |
-