Plans, subscriptions

* Plans controller
* Subscription controller
* Clean admin controller
* Ember Plans route
* Index page
* New Plans
* Translations
This commit is contained in:
Rimian Perkins
2019-09-24 16:04:42 +10:00
parent dfef3c49cf
commit 0d82bcf37e
14 changed files with 47 additions and 21 deletions
+10 -1
View File
@@ -38,10 +38,19 @@ en:
confirm_payment: Confirm payment
success: Go back
admin:
payment_history:
dashboard:
title: Dashboard
table:
head:
user: User
payment_intent: Payment ID
receipt_email: Receipt Email
amount: Amount
plans:
title: Plans
new: New
table:
head:
plan: Plan
subscriptions:
title: Subscriptions
+1
View File
@@ -3,6 +3,7 @@
DiscoursePatrons::Engine.routes.draw do
get '/admin' => 'admin#index'
get '/admin/subscriptions' => 'subscriptions#index'
get '/admin/plans/:plan_id' => 'plans#show'
get '/' => 'patrons#index'
get '/:pid' => 'patrons#show'
resources :patrons, only: [:index, :create]