2024-04-09 16:08:58 +04:00
|
|
|
<h1 class="text-3xl font-semibold font-display"><%= t(".title") %></h1>
|
2024-02-08 10:46:05 -06:00
|
|
|
<%= modal do %>
|
2024-09-13 11:45:27 -04:00
|
|
|
<div class="flex flex-col w-screen max-w-xl" data-controller="list-keyboard-navigation">
|
2024-10-18 14:37:42 -04:00
|
|
|
<% if params[:step] == 'method' %>
|
2024-02-27 12:43:49 -05:00
|
|
|
<div class="border-b border-alpha-black-25 p-4 text-gray-400 flex items-center space-x-3">
|
|
|
|
<span>How would you like to add it?</span>
|
2024-02-08 10:46:05 -06:00
|
|
|
</div>
|
2024-02-27 12:43:49 -05:00
|
|
|
<div class="flex flex-col p-2 text-sm grow">
|
|
|
|
<button hidden data-controller="hotkey" data-hotkey="k,K,ArrowUp,ArrowLeft" data-action="list-keyboard-navigation#focusPrevious">Previous</button>
|
|
|
|
<button hidden data-controller="hotkey" data-hotkey="j,J,ArrowDown,ArrowRight" data-action="list-keyboard-navigation#focusNext">Next</button>
|
2024-10-18 14:37:42 -04:00
|
|
|
|
|
|
|
<%= render "entry_method", text: t(".manual_entry"), icon: "keyboard" %>
|
|
|
|
|
|
|
|
<%= link_to new_import_path(import: { type: "AccountImport" }), class: "flex items-center gap-4 w-full text-center focus:outline-none focus:bg-gray-50 border border-transparent focus:border focus:border-gray-200 px-2 hover:bg-gray-50 rounded-lg p-2" do %>
|
2024-10-09 15:22:08 -04:00
|
|
|
<span class="flex w-8 h-8 shrink-0 grow-0 items-center justify-center rounded-lg bg-alpha-black-50 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.02)]">
|
|
|
|
<%= lucide_icon("sheet", class: "text-gray-500 w-5 h-5") %>
|
|
|
|
</span>
|
2024-10-18 14:37:42 -04:00
|
|
|
<%= t(".csv_entry") %>
|
2024-10-09 15:22:08 -04:00
|
|
|
<% end %>
|
2024-10-18 14:37:42 -04:00
|
|
|
|
|
|
|
<%= render "entry_method", text: t(".connected_entry"), icon: "link-2", disabled: true %>
|
2024-02-27 12:43:49 -05:00
|
|
|
</div>
|
|
|
|
<div class="border-t border-alpha-black-25 p-4 text-gray-500 text-sm flex justify-between">
|
|
|
|
<div class="flex space-x-5">
|
|
|
|
<div class="flex items-center space-x-2">
|
2024-06-13 09:16:00 -04:00
|
|
|
<span>Select</span>
|
|
|
|
<kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-5 h-5 shrink-0 grow-0 items-center justify-center"><%= lucide_icon("corner-down-left", class: "inline w-3 h-3") %></kbd>
|
2024-02-27 12:43:49 -05:00
|
|
|
</div>
|
|
|
|
<div class="flex items-center space-x-2">
|
2024-06-13 09:16:00 -04:00
|
|
|
<span>Navigate</span>
|
|
|
|
<kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-5 h-5 shrink-0 grow-0 items-center justify-center"><%= lucide_icon("arrow-up", class: "inline w-3 h-3") %></kbd>
|
|
|
|
<kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-5 h-5 shrink-0 grow-0 items-center justify-center"><%= lucide_icon("arrow-down", class: "inline w-3 h-3") %></kbd>
|
2024-02-27 12:43:49 -05:00
|
|
|
</div>
|
2024-02-08 10:46:05 -06:00
|
|
|
</div>
|
|
|
|
<div class="flex items-center space-x-2">
|
2024-06-13 09:16:00 -04:00
|
|
|
<button data-action="modal#close">Close</button>
|
|
|
|
<kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-8 h-5 shrink-0 grow-0 items-center justify-center text-xs">ESC</kbd>
|
2024-02-08 10:46:05 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-02-27 12:43:49 -05:00
|
|
|
<% else %>
|
|
|
|
<div class="border-b border-alpha-black-25 p-4 text-gray-800 flex items-center space-x-3">
|
2024-10-18 14:37:42 -04:00
|
|
|
<%= link_to new_account_path(step: "method"), class: "flex w-8 h-8 shrink-0 grow-0 items-center justify-center rounded-lg bg-alpha-black-50 focus:outline-gray-300 focus:outline" do %>
|
2024-04-09 16:08:58 +04:00
|
|
|
<%= lucide_icon("arrow-left", class: "text-gray-500 w-5 h-5") %>
|
2024-02-27 12:43:49 -05:00
|
|
|
<% end %>
|
2024-10-18 14:37:42 -04:00
|
|
|
<span>Add account</span>
|
2024-02-08 10:46:05 -06:00
|
|
|
</div>
|
2024-06-13 09:16:00 -04:00
|
|
|
|
2024-10-18 14:37:42 -04:00
|
|
|
<div class="p-4">
|
2024-08-23 08:47:08 -04:00
|
|
|
<%= render "form", account: @account, url: new_account_form_url(@account) %>
|
|
|
|
</div>
|
2024-02-08 10:46:05 -06:00
|
|
|
<% end %>
|
2024-02-09 20:21:19 -05:00
|
|
|
</div>
|
2024-04-09 16:08:58 +04:00
|
|
|
<% end %>
|