<.tabbed_layout>
+ <:tab_append>
+ <.button_dropdown text="Actions" class="justify-center w-full sm:w-50">
+ <:option>
+ <.link
+ href={~p"/sources/#{@media_item.source_id}/media/#{@media_item}?delete_files=true"}
+ method="delete"
+ data-confirm="Are you sure you want to delete this record and all associated files on disk? This cannot be undone."
+ >
+ Delete Files
+
+
+
+
+
<:tab title="Attributes">
<%= if media_file_exists?(@media_item) do %>
@@ -28,18 +42,6 @@
<.list_items_from_map map={Map.from_struct(@media_item)} />
-
-
- <.link
- href={~p"/sources/#{@media_item.source_id}/media/#{@media_item}?delete_files=true"}
- method="delete"
- data-confirm="Are you sure you want to delete this record and all associated files on disk? This cannot be undone."
- >
- <.button color="bg-meta-1" rounding="rounded-lg">
- Delete Files
-
-
-
<:tab title="Tasks">
<%= if match?([_|_], @media_item.tasks) do %>
diff --git a/lib/pinchflat_web/controllers/media_profiles/media_profile_html/show.html.heex b/lib/pinchflat_web/controllers/media_profiles/media_profile_html/show.html.heex
index 0cff841..0160e86 100644
--- a/lib/pinchflat_web/controllers/media_profiles/media_profile_html/show.html.heex
+++ b/lib/pinchflat_web/controllers/media_profiles/media_profile_html/show.html.heex
@@ -19,33 +19,35 @@
<.tabbed_layout>
+ <:tab_append>
+ <.button_dropdown text="Actions" class="justify-center w-full sm:w-50">
+ <:option>
+ <.link
+ href={~p"/media_profiles/#{@media_profile}"}
+ method="delete"
+ data-confirm="Are you sure you want to delete this profile and all its sources (leaving files in place)? This cannot be undone."
+ >
+ Delete Profile
+
+
+ <:option>
+ <.link
+ href={~p"/media_profiles/#{@media_profile}?delete_files=true"}
+ method="delete"
+ data-confirm="Are you sure you want to delete this profile, all its sources, and its files on disk? This cannot be undone."
+ class="mt-5 md:mt-0"
+ >
+ Delete Profile + Files
+
+
+
+
+
<:tab title="Attributes">
Attributes for "<%= @media_profile.name %>"
<.list_items_from_map map={Map.from_struct(@media_profile)} />
-
-
- <.link
- href={~p"/media_profiles/#{@media_profile}"}
- method="delete"
- data-confirm="Are you sure you want to delete this profile and all its sources (leaving files in place)? This cannot be undone."
- >
- <.button color="bg-meta-1" rounding="rounded-lg">
- Delete Profile and its Sources
-
-
- <.link
- href={~p"/media_profiles/#{@media_profile}?delete_files=true"}
- method="delete"
- data-confirm="Are you sure you want to delete this profile, all its sources, and its files on disk? This cannot be undone."
- class="mt-5 md:mt-0"
- >
- <.button color="bg-meta-1" rounding="rounded-lg">
- Delete Profile, Sources, and Files
-
-
-
<:tab title="Sources">
<.table rows={@media_profile.sources} table_class="text-black dark:text-white">