Added group_categories creation page in admin panel
• Added: - group_categories creation page in admin panel
This commit is contained in:
@@ -74,6 +74,11 @@ en:
|
||||
title: Promotions
|
||||
monthly_funding:
|
||||
title: Monthly Funding
|
||||
group_categories:
|
||||
create: Create
|
||||
delete: Delete
|
||||
text: Text
|
||||
title: Group Categories
|
||||
admin:
|
||||
account_actions:
|
||||
action: Perform action
|
||||
|
||||
@@ -51,6 +51,7 @@ SimpleNavigation::Configuration.run do |navigation|
|
||||
s.item :moderation, safe_join([fa_icon('id-card-o fw'), t('verifications.moderation.title')]), settings_verifications_moderation_url, if: -> { current_user.admin? }
|
||||
s.item :promotions, safe_join([fa_icon('star fw'), t('promotions.title')]), settings_promotions_url, if: -> { current_user.admin? }
|
||||
s.item :monthly_funding, safe_join([fa_icon('money fw'), t('monthly_funding.title')]), settings_expenses_url, if: -> { current_user.admin? }
|
||||
s.item :group_categories, safe_join([fa_icon('users fw'), t('group_categories.title')]), settings_group_categories_url, if: -> { current_user.admin? }
|
||||
end
|
||||
|
||||
n.item :logout, safe_join([fa_icon('sign-out fw'), t('auth.logout')]), destroy_user_session_url, link_html: { 'data-method' => 'delete' }
|
||||
|
||||
@@ -97,6 +97,7 @@ Rails.application.routes.draw do
|
||||
|
||||
resources :promotions, only: [:index, :new, :create, :edit, :update, :destroy]
|
||||
resources :expenses, only: [:index, :new, :create, :edit, :update, :destroy]
|
||||
resources :group_categories, only: [:index, :new, :create, :edit, :update, :destroy]
|
||||
|
||||
namespace :verifications do
|
||||
get :moderation, to: 'moderation#index', as: :moderation
|
||||
|
||||
Reference in New Issue
Block a user