mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
* Add geist font * Design system css file * Add cursor ui/ux rules * Add shadows and shadow borders * Replace primitives with tokens for common text and backgrounds * Organize css * Update switch and checkbox class names * Add back global color variables
48 lines
2.0 KiB
Plaintext
48 lines
2.0 KiB
Plaintext
<%# locals: (account:) %>
|
|
|
|
<%= contextual_menu do %>
|
|
<div class="w-48 p-1 text-sm leading-6 text-primary bg-white shadow-lg shrink rounded-xl ring-1 ring-gray-900/5">
|
|
<% if account.plaid_account_id.present? %>
|
|
<%= link_to accounts_path,
|
|
data: { turbo_frame: :_top },
|
|
class: "block w-full py-2 px-3 space-x-2 text-primary hover:bg-gray-50 flex items-center rounded-lg" do %>
|
|
<%= lucide_icon "pencil-line", class: "w-5 h-5 text-secondary" %>
|
|
|
|
<span><%= t(".manage") %></span>
|
|
<% end %>
|
|
<% else %>
|
|
<%= link_to edit_account_path(account),
|
|
data: { turbo_frame: :modal },
|
|
class: "block w-full py-2 px-3 space-x-2 text-primary hover:bg-gray-50 flex items-center rounded-lg" do %>
|
|
<%= lucide_icon "pencil-line", class: "w-5 h-5 text-secondary" %>
|
|
|
|
<span><%= t(".edit") %></span>
|
|
<% end %>
|
|
|
|
<% unless account.crypto? %>
|
|
<%= link_to new_import_path,
|
|
data: { turbo_frame: :modal },
|
|
class: "block w-full py-2 px-3 space-x-2 text-primary hover:bg-gray-50 flex items-center rounded-lg" do %>
|
|
<%= lucide_icon "download", class: "w-5 h-5 text-secondary" %>
|
|
|
|
<span><%= t(".import") %></span>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%= button_to account_path(account),
|
|
method: :delete,
|
|
class: "block w-full py-2 px-3 space-x-2 text-red-600 hover:bg-red-50 flex items-center rounded-lg",
|
|
data: {
|
|
turbo_frame: :_top,
|
|
turbo_confirm: {
|
|
title: t(".confirm_title"),
|
|
body: t(".confirm_body_html"),
|
|
accept: t(".confirm_accept", name: account.name)
|
|
}
|
|
} do %>
|
|
<%= lucide_icon("trash-2", class: "w-5 h-5 mr-2") %> Delete account
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|