mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 05:25:24 +02:00
Move categories to top-level namespace (#894)
This commit is contained in:
parent
a947db92b2
commit
2681dd96b1
48 changed files with 229 additions and 223 deletions
43
config/locales/views/categories/en.yml
Normal file
43
config/locales/views/categories/en.yml
Normal file
|
@ -0,0 +1,43 @@
|
|||
---
|
||||
en:
|
||||
categories:
|
||||
create:
|
||||
success: New transaction category created successfully
|
||||
deletions:
|
||||
create:
|
||||
success: Transaction category deleted successfully
|
||||
new:
|
||||
category: Category
|
||||
delete_and_leave_uncategorized: Delete "%{category_name}" and leave uncategorized
|
||||
delete_and_recategorize: Delete "%{category_name}" and assign new category
|
||||
delete_category: Delete category?
|
||||
explanation: By deleting this category, every transaction that has the "%{category_name}"
|
||||
category will be uncategorized. Instead of leaving them uncategorized, you
|
||||
can also assign a new category below.
|
||||
replacement_category_prompt: Select category
|
||||
dropdowns:
|
||||
row:
|
||||
delete: Delete category
|
||||
edit: Edit category
|
||||
show:
|
||||
add_new: Add new
|
||||
clear: Clear
|
||||
no_categories: No categories found
|
||||
search_placeholder: Search
|
||||
edit:
|
||||
edit: Edit category
|
||||
form:
|
||||
create: Create category
|
||||
update: Update
|
||||
index:
|
||||
categories: Categories
|
||||
new: New
|
||||
menu:
|
||||
loading: Loading...
|
||||
new:
|
||||
new_category: New category
|
||||
row:
|
||||
delete: Delete category
|
||||
edit: Edit category
|
||||
update:
|
||||
success: Transaction category updated successfully
|
|
@ -22,47 +22,6 @@ en:
|
|||
bulk_update:
|
||||
failure: Could not update transactions
|
||||
success: "%{count} transactions updated"
|
||||
categories:
|
||||
create:
|
||||
success: New transaction category created successfully
|
||||
deletions:
|
||||
create:
|
||||
success: Transaction category deleted successfully
|
||||
new:
|
||||
category: Category
|
||||
delete_and_leave_uncategorized: Delete "%{category_name}" and leave uncategorized
|
||||
delete_and_recategorize: Delete "%{category_name}" and assign new category
|
||||
delete_category: Delete category?
|
||||
explanation: By deleting this category, every transaction that has the "%{category_name}"
|
||||
category will be uncategorized. Instead of leaving them uncategorized,
|
||||
you can also assign a new category below.
|
||||
replacement_category_prompt: Select category
|
||||
dropdowns:
|
||||
row:
|
||||
delete: Delete category
|
||||
edit: Edit category
|
||||
show:
|
||||
add_new: Add new
|
||||
clear: Clear
|
||||
no_categories: No categories found
|
||||
search_placeholder: Search
|
||||
edit:
|
||||
edit: Edit category
|
||||
form:
|
||||
create: Create category
|
||||
update: Update
|
||||
index:
|
||||
categories: Categories
|
||||
new: New
|
||||
menu:
|
||||
loading: Loading...
|
||||
new:
|
||||
new_category: New category
|
||||
row:
|
||||
delete: Delete category
|
||||
edit: Edit category
|
||||
update:
|
||||
success: Transaction category updated successfully
|
||||
create:
|
||||
success: New transaction created successfully
|
||||
destroy:
|
||||
|
|
|
@ -41,6 +41,13 @@ Rails.application.routes.draw do
|
|||
resources :deletions, only: %i[ new create ], module: :tags
|
||||
end
|
||||
|
||||
resources :categories do
|
||||
resources :deletions, only: %i[ new create ], module: :categories
|
||||
collection do
|
||||
resource :dropdown, only: :show, module: :categories, as: :category_dropdown
|
||||
end
|
||||
end
|
||||
|
||||
resources :transactions do
|
||||
collection do
|
||||
post "bulk_delete"
|
||||
|
@ -51,14 +58,6 @@ Rails.application.routes.draw do
|
|||
|
||||
scope module: :transactions, as: :transaction do
|
||||
resources :rows, only: %i[ show update ]
|
||||
|
||||
resources :categories do
|
||||
resources :deletions, only: %i[ new create ], module: :categories
|
||||
collection do
|
||||
resource :dropdown, only: :show, module: :categories, as: :category_dropdown
|
||||
end
|
||||
end
|
||||
|
||||
resources :rules, only: %i[ index ]
|
||||
resources :merchants, only: %i[ index new create edit update destroy ]
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue