diff --git a/app/views/accounts/new.html.erb b/app/views/accounts/new.html.erb index 2beba399..bb544e85 100644 --- a/app/views/accounts/new.html.erb +++ b/app/views/accounts/new.html.erb @@ -46,8 +46,13 @@ <%= render "entry_method", type: @account.accountable, text: "Enter account balance manually", icon: "keyboard" %> + <%= link_to new_import_path, 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 %> + + <%= lucide_icon("sheet", class: "text-gray-500 w-5 h-5") %> + + Upload CSV + <% end %> <%= render "entry_method", type: @account.accountable, text: "Securely link bank account with data provider (coming soon)", icon: "link-2", disabled: true %> - <%= render "entry_method", type: @account.accountable, text: "Upload spreadsheet (coming soon)", icon: "sheet", disabled: true %>
diff --git a/app/views/accounts/show.html.erb b/app/views/accounts/show.html.erb index c3f5fd6f..78825eec 100644 --- a/app/views/accounts/show.html.erb +++ b/app/views/accounts/show.html.erb @@ -27,7 +27,7 @@ <%= t(".edit") %> <% end %> - <%= link_to new_import_path(account_id: @account.id), + <%= link_to new_import_path, class: "block w-full py-2 px-3 space-x-2 text-gray-900 hover:bg-gray-50 flex items-center rounded-lg" do %> <%= lucide_icon "download", class: "w-5 h-5 text-gray-500" %> diff --git a/app/views/imports/_empty.html.erb b/app/views/imports/_empty.html.erb index 41b98a06..bf0f1e70 100644 --- a/app/views/imports/_empty.html.erb +++ b/app/views/imports/_empty.html.erb @@ -1,7 +1,7 @@

<%= t(".message") %>

- <%= link_to new_import_path(enable_type_selector: true), class: "btn btn--primary flex items-center gap-2", data: { turbo_frame: "modal" } do %> + <%= link_to new_import_path, class: "btn btn--primary flex items-center gap-2", data: { turbo_frame: "modal" } do %> <%= lucide_icon("plus", class: "w-5 h-5") %> <%= t(".new") %> <% end %> diff --git a/app/views/transactions/_header.html.erb b/app/views/transactions/_header.html.erb index 6e47a265..3e532fad 100644 --- a/app/views/transactions/_header.html.erb +++ b/app/views/transactions/_header.html.erb @@ -11,7 +11,7 @@
<% end %> - <%= link_to new_import_path(enable_type_selector: true), class: "btn btn--outline flex items-center gap-2", data: { turbo_frame: "modal" } do %> + <%= link_to new_import_path, class: "btn btn--outline flex items-center gap-2", data: { turbo_frame: "modal" } do %> <%= lucide_icon("download", class: "text-gray-500 w-4 h-4") %>

<%= t(".import") %>

<% end %>