diff --git a/app/assets/svg/icons/lucide/outline/square-pen.svg b/app/assets/svg/icons/lucide/outline/square-pen.svg new file mode 100644 index 00000000..06515ddf --- /dev/null +++ b/app/assets/svg/icons/lucide/outline/square-pen.svg @@ -0,0 +1 @@ + diff --git a/app/assets/svg/icons/lucide/outline/trash-2.svg b/app/assets/svg/icons/lucide/outline/trash-2.svg new file mode 100644 index 00000000..1a24da1a --- /dev/null +++ b/app/assets/svg/icons/lucide/outline/trash-2.svg @@ -0,0 +1 @@ + diff --git a/app/views/families/edit.html.erb b/app/views/families/edit.html.erb index a35e2cfb..28595887 100644 --- a/app/views/families/edit.html.erb +++ b/app/views/families/edit.html.erb @@ -88,7 +88,7 @@ <% if policy(@family).destroy? %> <%= link_to family_path(@family), method: :delete, - data: { turbo_confirm: 'Are you sure you want to delete this family? This action cannot be undone and will remove all members.' }, + data: { confirm: 'Are you sure you want to delete this family? This action cannot be undone.', turbo_confirm: 'Are you sure you want to delete this family? This action cannot be undone.' }, class: "text-red-600 hover:text-red-800 dark:text-red-400 dark:hover:text-red-300 font-medium" do %> Delete Family <% end %> @@ -97,4 +97,4 @@ <% end %> - \ No newline at end of file + diff --git a/app/views/families/show.html.erb b/app/views/families/show.html.erb index 4de2e6a6..3ab4bab5 100644 --- a/app/views/families/show.html.erb +++ b/app/views/families/show.html.erb @@ -17,7 +17,8 @@ <% if policy(@family).update? %> <%= link_to edit_family_path(@family), class: "bg-blue-600 hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600 text-white px-4 py-2 rounded-md font-medium transition-colors duration-200" do %> - <%= t('families.show.edit', default: 'Edit Family') %> + <%= icon 'square-pen', class: "inline-block w-4 h-4 mr-2 -mt-1" %> + <%= t('families.show.edit', default: 'Edit') %> <% end %> <% end %> @@ -35,7 +36,8 @@ method: :delete, data: { confirm: 'Are you sure you want to delete this family? This action cannot be undone.', turbo_confirm: 'Are you sure you want to delete this family? This action cannot be undone.' }, class: "bg-red-600 hover:bg-red-700 dark:bg-red-500 dark:hover:bg-red-600 text-white px-4 py-2 rounded-md font-medium transition-colors duration-200" do %> - Delete Family + <%= icon 'trash-2', class: "inline-block w-4 h-4 mr-2 -mt-1" %> + Delete <% end %> <% end %>