diff --git a/app/views/admin/users/index.html.erb b/app/views/admin/users/index.html.erb index cefa2597e..a89b4d675 100644 --- a/app/views/admin/users/index.html.erb +++ b/app/views/admin/users/index.html.erb @@ -51,10 +51,16 @@
<% @families_with_users.each do |family, users| %> <% pending_invitations = @invitations_by_family[family.id] || [] %> -
"> - + <%= render DS::Disclosure.new( + variant: :bare, + summary_class: "list-none focus-ring flex items-center justify-between gap-4 px-4 py-3 cursor-pointer select-none hover:bg-surface-hover", + class: "bg-container-inset rounded-lg overflow-hidden", + data: { + controller: "admin-invitation-delete", + admin_invitation_delete_delete_all_label_value: t(".invitations.delete_all") + } + ) do |disclosure| %> + <% disclosure.with_summary_content do %>
<%= icon "users", class: "w-5 h-5 text-secondary shrink-0" %>
@@ -80,7 +86,7 @@ <% end %> <%= icon "chevron-down", class: "w-4 h-4 text-secondary transition-transform group-open:rotate-180" %>
-
+ <% end %>
@@ -154,12 +160,16 @@ @@ -174,7 +184,7 @@ <% end %> <% end %> - + <% end %> <% end %> <% else %> diff --git a/app/views/settings/profiles/show.html.erb b/app/views/settings/profiles/show.html.erb index 6a08fd33c..a94d1816d 100644 --- a/app/views/settings/profiles/show.html.erb +++ b/app/views/settings/profiles/show.html.erb @@ -28,12 +28,12 @@ <% end %> <% unless Current.user.ui_layout_intro? %> - <%= settings_section title: Current.family&.moniker == "Group" ? t(".group_title", default: "Group") : t(".household_title"), subtitle: t(".household_subtitle", moniker_plural: family_moniker_plural_downcase, moniker: family_moniker_downcase) do %> + <%= settings_section title: Current.family&.moniker == "Group" ? t(".group_title") : t(".household_title"), subtitle: t(".household_subtitle", moniker_plural: family_moniker_plural_downcase, moniker: family_moniker_downcase) do %>
<%= styled_form_with model: Current.user, class: "space-y-4", data: { controller: "auto-submit-form" } do |form| %> <%= form.fields_for :family do |family_fields| %> - <% name_label = Current.family&.moniker == "Group" ? t(".group_form_label", default: "Group name") : t(".household_form_label") %> - <% name_placeholder = Current.family&.moniker == "Group" ? t(".group_form_input_placeholder", default: "Enter group name") : t(".household_form_input_placeholder") %> + <% name_label = Current.family&.moniker == "Group" ? t(".group_form_label") : t(".household_form_label") %> + <% name_placeholder = Current.family&.moniker == "Group" ? t(".group_form_input_placeholder") : t(".household_form_input_placeholder") %> <%= family_fields.text_field :name, placeholder: name_placeholder, label: name_label,
<%= form_with url: admin_invitation_path(invitation), method: :delete, class: "inline" do |f| %> - + <%= render DS::Button.new( + text: t(".invitations.delete"), + type: "submit", + variant: :outline_destructive, + size: :sm, + data: { + admin_invitation_delete_target: "button", + action: "click->admin-invitation-delete#handleClick" + } + ) %> <% end %>