mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Move merchants to top-level namespace (#895)
This commit is contained in:
parent
2681dd96b1
commit
dc3147c101
29 changed files with 153 additions and 145 deletions
29
config/locales/views/merchants/en.yml
Normal file
29
config/locales/views/merchants/en.yml
Normal file
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
en:
|
||||
merchants:
|
||||
create:
|
||||
success: New merchant created successfully
|
||||
destroy:
|
||||
success: Merchant deleted successfully
|
||||
edit:
|
||||
title: Edit merchant
|
||||
form:
|
||||
name_placeholder: Merchant name
|
||||
submit_create: Add merchant
|
||||
submit_edit: Update
|
||||
index:
|
||||
empty: No merchants yet
|
||||
new_long: New merchant
|
||||
new_short: New
|
||||
title: Merchants
|
||||
list:
|
||||
confirm_accept: Delete merchant
|
||||
confirm_body: Are you sure you want to delete this merchant? Removing this merchant
|
||||
will unlink all associated transactions and may effect your reporting.
|
||||
confirm_title: Delete merchant?
|
||||
delete: Delete merchant
|
||||
edit: Edit merchant
|
||||
new:
|
||||
title: New merchant
|
||||
update:
|
||||
success: Merchant updated successfully
|
|
@ -50,33 +50,6 @@ en:
|
|||
transaction: transaction
|
||||
mark_transfers:
|
||||
success: Marked as transfer
|
||||
merchants:
|
||||
create:
|
||||
success: New merchant created successfully
|
||||
destroy:
|
||||
success: Merchant deleted successfully
|
||||
edit:
|
||||
title: Edit merchant
|
||||
form:
|
||||
name_placeholder: Merchant name
|
||||
submit_create: Add merchant
|
||||
submit_edit: Update
|
||||
index:
|
||||
empty: No merchants yet
|
||||
new_long: New merchant
|
||||
new_short: New
|
||||
title: Merchants
|
||||
list:
|
||||
confirm_accept: Delete merchant
|
||||
confirm_body: Are you sure you want to delete this merchant? Removing this
|
||||
merchant will unlink all associated transactions and may effect your reporting.
|
||||
confirm_title: Delete merchant?
|
||||
delete: Delete merchant
|
||||
edit: Edit merchant
|
||||
new:
|
||||
title: New merchant
|
||||
update:
|
||||
success: Merchant updated successfully
|
||||
selection_bar:
|
||||
mark_transfers: Mark as transfers?
|
||||
mark_transfers_confirm: Mark as transfers
|
||||
|
|
|
@ -48,6 +48,8 @@ Rails.application.routes.draw do
|
|||
end
|
||||
end
|
||||
|
||||
resources :merchants, only: %i[ index new create edit update destroy ]
|
||||
|
||||
resources :transactions do
|
||||
collection do
|
||||
post "bulk_delete"
|
||||
|
@ -59,7 +61,6 @@ Rails.application.routes.draw do
|
|||
scope module: :transactions, as: :transaction do
|
||||
resources :rows, only: %i[ show update ]
|
||||
resources :rules, only: %i[ index ]
|
||||
resources :merchants, only: %i[ index new create edit update destroy ]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue