mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-10 07:55:21 +02:00
Import / export UI
This commit is contained in:
parent
b7c56e2fb7
commit
a681c4756c
2 changed files with 24 additions and 0 deletions
|
@ -122,6 +122,27 @@
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% 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 %>
|
<%= settings_section title: t(".danger_zone_title") do %>
|
||||||
<div class="space-y-4">
|
<div class="space-y-4">
|
||||||
<% if Current.user.admin? %>
|
<% if Current.user.admin? %>
|
||||||
|
|
|
@ -24,6 +24,9 @@ Rails.application.routes.draw do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
resources :family_exports, only: %i[new create]
|
||||||
|
resources :family_imports, only: %i[new create]
|
||||||
|
|
||||||
get "changelog", to: "pages#changelog"
|
get "changelog", to: "pages#changelog"
|
||||||
get "feedback", to: "pages#feedback"
|
get "feedback", to: "pages#feedback"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue