WIP Make dropdowns more configurable, add invitations menu to admin page

This commit is contained in:
2024-02-09 18:57:07 +01:00
parent 67689dcce3
commit fcda3b9c8c
3 changed files with 35 additions and 5 deletions

View File

@@ -43,7 +43,26 @@
<tr>
<th>Invitations available</th>
<td>
<%= @user.invitations.count %>
<div class="flex justify-between">
<span>
<%= @user.invitations.count %>
</span>
<span>
<%= render DropdownComponent.new(size: :small, icon_name: "edit") do %>
<%= render DropdownLinkComponent.new(
href: ""
) do %>
Add more
<% end %>
<%= render DropdownLinkComponent.new(
href: "",
separator: true, add_class: "text-red-700"
) do %>
Remove all
<% end %>
<% end %>
</span>
</div>
</td>
</tr>
<tr>