1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-07 06:25:19 +02:00

Import / export UI

This commit is contained in:
Zach Gollwitzer 2025-07-23 20:15:02 -04:00
parent b7c56e2fb7
commit a681c4756c
2 changed files with 24 additions and 0 deletions

View file

@ -122,6 +122,27 @@
</div>
<% end %>
<%= settings_section title: "Data Import/Export" do %>
<div class="space-y-4">
<div class="flex gap-4 items-center">
<%= render DS::Link.new(
text: "Import data",
icon: "import",
href: new_family_import_path,
variant: "secondary",
full_width: true
) %>
<%= render DS::Link.new(
text: "Export data",
icon: "database",
href: new_family_export_path,
variant: "secondary",
full_width: true
) %>
</div>
</div>
<% end %>
<%= settings_section title: t(".danger_zone_title") do %>
<div class="space-y-4">
<% if Current.user.admin? %>

View file

@ -24,6 +24,9 @@ Rails.application.routes.draw do
end
end
resources :family_exports, only: %i[new create]
resources :family_imports, only: %i[new create]
get "changelog", to: "pages#changelog"
get "feedback", to: "pages#feedback"