diff --git a/app/views/settings/profiles/show.html.erb b/app/views/settings/profiles/show.html.erb index e1f0d653..e2fd8e7b 100644 --- a/app/views/settings/profiles/show.html.erb +++ b/app/views/settings/profiles/show.html.erb @@ -122,6 +122,27 @@ <% end %> +<%= settings_section title: "Data Import/Export" do %> +
+
+ <%= 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 + ) %> +
+
+<% end %> + <%= settings_section title: t(".danger_zone_title") do %>
<% if Current.user.admin? %> diff --git a/config/routes.rb b/config/routes.rb index e2817432..d382a584 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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"