phcdevworks_accounts_stripe 0.1.6 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +39 -21
- data/app/assets/config/phcdevworks_accounts_stripe_manifest.js +2 -3
- data/app/controllers/phcdevworks_accounts_stripe/admin/customers_controller.rb +17 -17
- data/app/controllers/phcdevworks_accounts_stripe/admin/invoices_controller.rb +17 -17
- data/app/controllers/phcdevworks_accounts_stripe/admin/products_controller.rb +16 -16
- data/app/controllers/phcdevworks_accounts_stripe/admin/subscriptions_controller.rb +16 -16
- data/app/controllers/phcdevworks_accounts_stripe/application_controller.rb +10 -10
- data/app/controllers/phcdevworks_accounts_stripe/user/invoices_controller.rb +19 -19
- data/app/controllers/phcdevworks_accounts_stripe/user/product_controller.rb +13 -13
- data/app/controllers/phcdevworks_accounts_stripe/user/subscription_controller.rb +18 -18
- data/app/helpers/phcdevworks_accounts_stripe/admin/customers_helper.rb +4 -4
- data/app/helpers/phcdevworks_accounts_stripe/admin/invoices_helper.rb +4 -4
- data/app/helpers/phcdevworks_accounts_stripe/admin/plans_helper.rb +4 -4
- data/app/helpers/phcdevworks_accounts_stripe/admin/subscriptions_helper.rb +4 -4
- data/app/helpers/phcdevworks_accounts_stripe/application_helper.rb +18 -18
- data/app/helpers/phcdevworks_accounts_stripe/user/invoices_helper.rb +4 -4
- data/app/helpers/phcdevworks_accounts_stripe/user/plan_helper.rb +4 -4
- data/app/helpers/phcdevworks_accounts_stripe/user/subscription_helper.rb +4 -4
- data/app/mailers/phcdevworks_accounts_stripe/application_mailer.rb +2 -2
- data/app/models/phcdevworks_accounts_stripe/application_record.rb +5 -5
- data/app/views/layouts/phcdevworks_accounts_stripe/application.html.erb +34 -27
- data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/footer/_footer.html.erb +9 -7
- data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/navigation/_top_menu.html.erb +22 -21
- data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/sidebars/_side_menu.html.erb +491 -349
- data/app/views/phcdevworks_accounts_stripe/admin/customers/admin_customer_list.html.erb +59 -67
- data/app/views/phcdevworks_accounts_stripe/admin/invoices/admin_invoice_list.html.erb +81 -89
- data/app/views/phcdevworks_accounts_stripe/admin/products/admin_products_list.html.erb +61 -69
- data/app/views/phcdevworks_accounts_stripe/admin/subscriptions/admin_subscription_list.html.erb +67 -75
- data/app/views/phcdevworks_accounts_stripe/user/invoices/user_invoice_list.html.erb +88 -88
- data/app/views/phcdevworks_accounts_stripe/user/products/user_product_list.html.erb +66 -66
- data/app/views/phcdevworks_accounts_stripe/user/subscription/user_subscription_cancel.html.erb +66 -66
- data/app/views/phcdevworks_accounts_stripe/user/subscription/user_subscription_item.html.erb +70 -70
- data/config/initializers/stripe.rb +8 -8
- data/config/routes.rb +0 -3
- data/lib/phcdevworks_accounts_stripe/engine.rb +1 -4
- data/lib/phcdevworks_accounts_stripe/version.rb +1 -1
- metadata +47 -55
- data/app/assets/javascripts/phcdevworks_accounts_stripe/admin/invoices.coffee +0 -3
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/customers.css +0 -4
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/invoices.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/plans.css +0 -4
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/subscriptions.css +0 -4
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/invoices.css +0 -4
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/plan.css +0 -4
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/subscription.css +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cc0ce26f8ca66911c8021dd3de156268ecd3fd41462c5769013c41666eb7c76
|
4
|
+
data.tar.gz: 4e25bda04c88af03aece507197580276714bfb5ee216c3d3ceb7f8547a226ab2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0130a7c81835e1ae490345fdb273906adb3dd807fd2f4aebed74db9be990f20c5058279f07d4f8f10c962de95954c2320d72dd035b3d881c29fcef9bcf205a63
|
7
|
+
data.tar.gz: 86121d173a79de23f9b8e89f047e491f6e574db5ef976583865c15db2e59bb63b15017bdbd146ac6cae55e3d837a2a1536617883666c4d65970d81ea6b62f004
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,28 +1,46 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
### PHCDevworks Accounts Stripe Addon
|
2
|
+
|
3
|
+
Rails Stripe Management System add-on for PHCDevworks Accounts engines.
|
3
4
|
|
4
|
-
|
5
|
-
|
5
|
+
### Administrative Views
|
6
|
+
* View invoices
|
7
|
+
* View subscribers
|
8
|
+
* View customers
|
6
9
|
|
7
|
-
|
8
|
-
|
10
|
+
#### Step 1 - Add PHCDevworks Accounts Devise & PHCDevworks Accounts Stripe to your gemfile run command
|
11
|
+
|
12
|
+
gem 'phcdevworks_accounts_devise'
|
13
|
+
gem 'phcdevworks_accounts_stripe'
|
14
|
+
bundle install
|
9
15
|
|
10
|
-
|
11
|
-
|
12
|
-
```
|
16
|
+
#### Step 2 - Copy Phcdevworks Account's Database Tables
|
17
|
+
To copy requried database migrations, copy each command individually to your terminal's command line.
|
13
18
|
|
14
|
-
|
15
|
-
|
16
|
-
$ bundle
|
17
|
-
```
|
19
|
+
rails phcdevworks_accounts_devise:install:migrations
|
20
|
+
rails db:migrate
|
18
21
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
22
|
+
#### Step 3 - Mount Phcdevworks Account Devise & PHCDevworks Account Stripe to Add Routes
|
23
|
+
Mount Phcdevworks Press by adding code below to your routes file.
|
24
|
+
|
25
|
+
mount PhcdevworksAccountsDevise::Engine, :at => '/'
|
26
|
+
mount PhcdevworksAccountsStripe::Engine => "/"
|
27
|
+
|
28
|
+
#### Step 4 - Recompile Assets
|
29
|
+
To properly function re-compile your application's assets to copy over required files.
|
23
30
|
|
24
|
-
|
25
|
-
|
31
|
+
rails assets:clobber
|
32
|
+
rails assets:precompile
|
26
33
|
|
27
|
-
|
28
|
-
|
34
|
+
#### Step 5 - Add ENV Variables
|
35
|
+
|
36
|
+
Secret Key = ENV['PHCDEV_STRIPE_SK']
|
37
|
+
Publishable Key = ENV['PHCDEV_STRIPE_PK']
|
38
|
+
|
39
|
+
#### Customizations - Generate Contact Form View (Customization)
|
40
|
+
All Phcdevworks Stripe views and layouts can be overwritten by copying files to your application.
|
41
|
+
|
42
|
+
rails generate phcdevworks_accounts_stripe:views
|
43
|
+
|
44
|
+
### Status
|
45
|
+
|
46
|
+
[![Gem Version](https://badge.fury.io/rb/phcdevworks_accounts_stripe.svg)](https://badge.fury.io/rb/phcdevworks_accounts_stripe) [![Publish to Github.com](https://github.com/phcdevworks/phcdevworks_accounts_stripe/actions/workflows/publish_gem_github_com.yml/badge.svg)](https://github.com/phcdevworks/phcdevworks_accounts_stripe/actions/workflows/publish_gem_github_com.yml) [![Publish to Rubygems.org](https://github.com/phcdevworks/phcdevworks_accounts_stripe/actions/workflows/publish_gem_rubygems_org.yml/badge.svg)](https://github.com/phcdevworks/phcdevworks_accounts_stripe/actions/workflows/publish_gem_rubygems_org.yml)
|
@@ -1,3 +1,2 @@
|
|
1
|
-
//=
|
2
|
-
//= link phcthemes_admin_panel_pack_coloradmin.
|
3
|
-
//= link phcthemes_admin_panel_pack_coloradmin.js
|
1
|
+
//= link coloradmin/default/phcthemes_admin_panel_pack_coloradmin.css
|
2
|
+
//= link coloradmin/phcthemes_admin_panel_pack_coloradmin.js
|
@@ -1,17 +1,17 @@
|
|
1
|
-
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
-
|
3
|
-
module PhcdevworksAccountsStripe
|
4
|
-
class Admin::CustomersController < ApplicationController
|
5
|
-
|
6
|
-
# Filters
|
7
|
-
before_action :authenticate_user!
|
8
|
-
include PhcdevworksCore::PhcdevworksPluginsHelper
|
9
|
-
before_action :phcdevworks_accounts_admin_only
|
10
|
-
|
11
|
-
# Customers - List
|
12
|
-
def admin_customer_list
|
13
|
-
@admin_customer_list = Stripe::Customer.list({limit: 100})
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
1
|
+
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
+
|
3
|
+
module PhcdevworksAccountsStripe
|
4
|
+
class Admin::CustomersController < ApplicationController
|
5
|
+
|
6
|
+
# Filters
|
7
|
+
before_action :authenticate_user!
|
8
|
+
include PhcdevworksCore::PhcdevworksPluginsHelper
|
9
|
+
before_action :phcdevworks_accounts_admin_only
|
10
|
+
|
11
|
+
# Customers - List
|
12
|
+
def admin_customer_list
|
13
|
+
@admin_customer_list = Stripe::Customer.list({limit: 100})
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
@@ -1,17 +1,17 @@
|
|
1
|
-
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
-
|
3
|
-
module PhcdevworksAccountsStripe
|
4
|
-
class Admin::InvoicesController < ApplicationController
|
5
|
-
|
6
|
-
# Filters
|
7
|
-
before_action :authenticate_user!
|
8
|
-
include PhcdevworksCore::PhcdevworksPluginsHelper
|
9
|
-
before_action :phcdevworks_accounts_admin_only
|
10
|
-
|
11
|
-
# Customers - List
|
12
|
-
def admin_invoice_list
|
13
|
-
@admin_invoice_list = Stripe::Invoice.list({limit: 100})
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
1
|
+
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
+
|
3
|
+
module PhcdevworksAccountsStripe
|
4
|
+
class Admin::InvoicesController < ApplicationController
|
5
|
+
|
6
|
+
# Filters
|
7
|
+
before_action :authenticate_user!
|
8
|
+
include PhcdevworksCore::PhcdevworksPluginsHelper
|
9
|
+
before_action :phcdevworks_accounts_admin_only
|
10
|
+
|
11
|
+
# Customers - List
|
12
|
+
def admin_invoice_list
|
13
|
+
@admin_invoice_list = Stripe::Invoice.list({limit: 100})
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
@@ -1,16 +1,16 @@
|
|
1
|
-
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
-
|
3
|
-
module PhcdevworksAccountsStripe
|
4
|
-
class Admin::ProductsController < ApplicationController
|
5
|
-
|
6
|
-
# Filters
|
7
|
-
before_action :authenticate_user!
|
8
|
-
include PhcdevworksCore::PhcdevworksPluginsHelper
|
9
|
-
before_action :phcdevworks_accounts_admin_only
|
10
|
-
|
11
|
-
def admin_products_list
|
12
|
-
@admin_products_list = Stripe::Product.list
|
13
|
-
end
|
14
|
-
|
15
|
-
end
|
16
|
-
end
|
1
|
+
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
+
|
3
|
+
module PhcdevworksAccountsStripe
|
4
|
+
class Admin::ProductsController < ApplicationController
|
5
|
+
|
6
|
+
# Filters
|
7
|
+
before_action :authenticate_user!
|
8
|
+
include PhcdevworksCore::PhcdevworksPluginsHelper
|
9
|
+
before_action :phcdevworks_accounts_admin_only
|
10
|
+
|
11
|
+
def admin_products_list
|
12
|
+
@admin_products_list = Stripe::Product.list
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
@@ -1,16 +1,16 @@
|
|
1
|
-
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
-
|
3
|
-
module PhcdevworksAccountsStripe
|
4
|
-
class Admin::SubscriptionsController < ApplicationController
|
5
|
-
|
6
|
-
# Filters
|
7
|
-
before_action :authenticate_user!
|
8
|
-
include PhcdevworksCore::PhcdevworksPluginsHelper
|
9
|
-
before_action :phcdevworks_accounts_admin_only
|
10
|
-
|
11
|
-
def admin_subscription_list
|
12
|
-
@admin_subscription_list = Stripe::Subscription.list({limit: 100})
|
13
|
-
end
|
14
|
-
|
15
|
-
end
|
16
|
-
end
|
1
|
+
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
+
|
3
|
+
module PhcdevworksAccountsStripe
|
4
|
+
class Admin::SubscriptionsController < ApplicationController
|
5
|
+
|
6
|
+
# Filters
|
7
|
+
before_action :authenticate_user!
|
8
|
+
include PhcdevworksCore::PhcdevworksPluginsHelper
|
9
|
+
before_action :phcdevworks_accounts_admin_only
|
10
|
+
|
11
|
+
def admin_subscription_list
|
12
|
+
@admin_subscription_list = Stripe::Subscription.list({limit: 100})
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
@@ -1,10 +1,10 @@
|
|
1
|
-
module PhcdevworksAccountsStripe
|
2
|
-
class ApplicationController < ActionController::Base
|
3
|
-
|
4
|
-
# Load Requried Helper Files
|
5
|
-
helper PhcdevworksActiveMenus::Engine.helpers
|
6
|
-
helper PhcdevworksNotifications::Engine.helpers
|
7
|
-
helper PhcdevworksTitleseo::Engine.helpers
|
8
|
-
|
9
|
-
end
|
10
|
-
end
|
1
|
+
module PhcdevworksAccountsStripe
|
2
|
+
class ApplicationController < ActionController::Base
|
3
|
+
|
4
|
+
# Load Requried Helper Files
|
5
|
+
helper PhcdevworksActiveMenus::Engine.helpers
|
6
|
+
helper PhcdevworksNotifications::Engine.helpers
|
7
|
+
helper PhcdevworksTitleseo::Engine.helpers
|
8
|
+
|
9
|
+
end
|
10
|
+
end
|
@@ -1,19 +1,19 @@
|
|
1
|
-
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
-
|
3
|
-
module PhcdevworksAccountsStripe
|
4
|
-
class User::InvoicesController < ApplicationController
|
5
|
-
|
6
|
-
# Security Filters
|
7
|
-
before_action :authenticate_user!
|
8
|
-
|
9
|
-
def user_invoice_list
|
10
|
-
@user_invoice_list = Stripe::Invoice.list({customer: current_user.payments_customer_id})
|
11
|
-
end
|
12
|
-
|
13
|
-
def user_invoice_item
|
14
|
-
|
15
|
-
|
16
|
-
end
|
17
|
-
|
18
|
-
end
|
19
|
-
end
|
1
|
+
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
+
|
3
|
+
module PhcdevworksAccountsStripe
|
4
|
+
class User::InvoicesController < ApplicationController
|
5
|
+
|
6
|
+
# Security Filters
|
7
|
+
before_action :authenticate_user!
|
8
|
+
|
9
|
+
def user_invoice_list
|
10
|
+
@user_invoice_list = Stripe::Invoice.list({customer: current_user.payments_customer_id})
|
11
|
+
end
|
12
|
+
|
13
|
+
def user_invoice_item
|
14
|
+
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
@@ -1,13 +1,13 @@
|
|
1
|
-
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
-
|
3
|
-
module PhcdevworksAccountsStripe
|
4
|
-
class User::ProductController < ApplicationController
|
5
|
-
|
6
|
-
# Security Filters
|
7
|
-
before_action :authenticate_user!
|
8
|
-
|
9
|
-
def user_product_list
|
10
|
-
end
|
11
|
-
|
12
|
-
end
|
13
|
-
end
|
1
|
+
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
+
|
3
|
+
module PhcdevworksAccountsStripe
|
4
|
+
class User::ProductController < ApplicationController
|
5
|
+
|
6
|
+
# Security Filters
|
7
|
+
before_action :authenticate_user!
|
8
|
+
|
9
|
+
def user_product_list
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
@@ -1,18 +1,18 @@
|
|
1
|
-
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
-
|
3
|
-
module PhcdevworksAccountsStripe
|
4
|
-
class User::SubscriptionController < ApplicationController
|
5
|
-
|
6
|
-
# Security Filters
|
7
|
-
before_action :authenticate_user!
|
8
|
-
|
9
|
-
def user_subscription_item
|
10
|
-
@user_subscription_item = Stripe::Subscription.list({customer: current_user.payments_customer_id})
|
11
|
-
|
12
|
-
end
|
13
|
-
|
14
|
-
def user_subscription_cancel
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
1
|
+
require_dependency "phcdevworks_accounts_stripe/application_controller"
|
2
|
+
|
3
|
+
module PhcdevworksAccountsStripe
|
4
|
+
class User::SubscriptionController < ApplicationController
|
5
|
+
|
6
|
+
# Security Filters
|
7
|
+
before_action :authenticate_user!
|
8
|
+
|
9
|
+
def user_subscription_item
|
10
|
+
@user_subscription_item = Stripe::Subscription.list({customer: current_user.payments_customer_id})
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
def user_subscription_cancel
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module PhcdevworksAccountsStripe
|
2
|
-
module Admin::CustomersHelper
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module PhcdevworksAccountsStripe
|
2
|
+
module Admin::CustomersHelper
|
3
|
+
end
|
4
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module PhcdevworksAccountsStripe
|
2
|
-
module Admin::InvoicesHelper
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module PhcdevworksAccountsStripe
|
2
|
+
module Admin::InvoicesHelper
|
3
|
+
end
|
4
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module PhcdevworksAccountsStripe
|
2
|
-
module Admin::PlansHelper
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module PhcdevworksAccountsStripe
|
2
|
+
module Admin::PlansHelper
|
3
|
+
end
|
4
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module PhcdevworksAccountsStripe
|
2
|
-
module Admin::SubscriptionsHelper
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module PhcdevworksAccountsStripe
|
2
|
+
module Admin::SubscriptionsHelper
|
3
|
+
end
|
4
|
+
end
|
@@ -1,18 +1,18 @@
|
|
1
|
-
module PhcdevworksAccountsStripe
|
2
|
-
module ApplicationHelper
|
3
|
-
|
4
|
-
# PHCAccountsStripe - Invoice Status
|
5
|
-
def phcdev_invoice_status(status)
|
6
|
-
colors = {
|
7
|
-
'draft' => 'badge badge-secondary',
|
8
|
-
'open' => 'badge-success',
|
9
|
-
'paid' => 'badge-green',
|
10
|
-
'uncollectible' => 'badge-danger',
|
11
|
-
'void' => 'badge-dark'
|
12
|
-
}
|
13
|
-
content_tag(:span, class: "badge #{colors[status]} badge-square") do
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
1
|
+
module PhcdevworksAccountsStripe
|
2
|
+
module ApplicationHelper
|
3
|
+
|
4
|
+
# PHCAccountsStripe - Invoice Status
|
5
|
+
def phcdev_invoice_status(status)
|
6
|
+
colors = {
|
7
|
+
'draft' => 'badge badge-secondary',
|
8
|
+
'open' => 'badge-success',
|
9
|
+
'paid' => 'badge-green',
|
10
|
+
'uncollectible' => 'badge-danger',
|
11
|
+
'void' => 'badge-dark'
|
12
|
+
}
|
13
|
+
content_tag(:span, class: "badge #{colors[status]} badge-square") do
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module PhcdevworksAccountsStripe
|
2
|
-
module User::InvoicesHelper
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module PhcdevworksAccountsStripe
|
2
|
+
module User::InvoicesHelper
|
3
|
+
end
|
4
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module PhcdevworksAccountsStripe
|
2
|
-
module User::PlanHelper
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module PhcdevworksAccountsStripe
|
2
|
+
module User::PlanHelper
|
3
|
+
end
|
4
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module PhcdevworksAccountsStripe
|
2
|
-
module User::SubscriptionHelper
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module PhcdevworksAccountsStripe
|
2
|
+
module User::SubscriptionHelper
|
3
|
+
end
|
4
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
module PhcdevworksAccountsStripe
|
2
|
-
class ApplicationRecord < ActiveRecord::Base
|
3
|
-
self.abstract_class = true
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module PhcdevworksAccountsStripe
|
2
|
+
class ApplicationRecord < ActiveRecord::Base
|
3
|
+
self.abstract_class = true
|
4
|
+
end
|
5
|
+
end
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<!-- SEO and Site Description -->
|
11
11
|
<meta charset="utf-8">
|
12
12
|
<title><%= yield(:phc_seo_title) %></title>
|
13
|
-
<meta
|
13
|
+
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
|
14
14
|
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
15
15
|
<!-- SEO and Site Description -->
|
16
16
|
|
@@ -20,47 +20,54 @@
|
|
20
20
|
<!-- Rails Security Tags -->
|
21
21
|
|
22
22
|
<!-- CSS Styles -->
|
23
|
-
|
23
|
+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
|
24
|
+
<%= stylesheet_link_tag "coloradmin/default/phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
24
25
|
<!-- CSS Styles -->
|
25
26
|
|
26
|
-
<!-- JavaScript -->
|
27
|
-
<%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
|
28
|
-
<!-- JavaScript -->
|
29
|
-
|
30
27
|
</head>
|
31
28
|
<body>
|
32
29
|
|
33
|
-
<!-- Page Container -->
|
34
|
-
<div id="
|
30
|
+
<!-- -PHCDev- Page Container -->
|
31
|
+
<div id="app" class="app app-header-fixed app-sidebar-fixed app-with-wide-sidebar">
|
35
32
|
|
36
|
-
<!-- Page Header -->
|
37
|
-
<div id="header" class="header
|
33
|
+
<!-- -PHCDev- Page Container - Header -->
|
34
|
+
<div id="header" class="app-header">
|
38
35
|
<%= render "layouts/phcdevworks_accounts_stripe/components/backend/navigation/top_menu" %>
|
39
36
|
</div>
|
40
|
-
<!-- Page Header -->
|
37
|
+
<!-- -PHCDev- Page Container - Header -->
|
41
38
|
|
42
|
-
<!-- Page Sidebar -->
|
43
|
-
<div id="sidebar" class="sidebar">
|
39
|
+
<!-- -PHCDev- Page Container - Sidebar -->
|
40
|
+
<div id="sidebar" class="app-sidebar" data-disable-slide-animation="true">
|
44
41
|
<%= render "layouts/phcdevworks_accounts_stripe/components/backend/sidebars/side_menu" %>
|
45
42
|
</div>
|
46
|
-
<div class="sidebar-bg"></div>
|
47
|
-
|
48
|
-
|
49
|
-
<!-- Page Content -->
|
50
|
-
<div id="content" class="content">
|
51
|
-
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
52
|
-
<%= yield %>
|
53
|
-
</div>
|
54
|
-
<!-- Page Content -->
|
43
|
+
<div class="app-sidebar-bg"></div>
|
44
|
+
<div class="app-sidebar-mobile-backdrop"><a href="#" data-dismiss="app-sidebar-mobile" class="stretched-link"></a></div>
|
45
|
+
<!-- -PHCDev- Page Container - Sidebar -->
|
55
46
|
|
56
|
-
<!--
|
57
|
-
<div id="
|
58
|
-
|
47
|
+
<!-- -PHCDev- Page Container - Content -->
|
48
|
+
<div id="app" class="app app-content-full-height">
|
49
|
+
<div id="content" class="app-content d-flex flex-column p-0">
|
50
|
+
<!-- -PHCDev- Page Container - Main -->
|
51
|
+
<div class="app-content-padding flex-grow-1 overflow-hidden" data-scrollbar="true" data-height="100%">
|
52
|
+
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
53
|
+
<%= yield %>
|
54
|
+
</div>
|
55
|
+
<!-- -PHCDev- Page Container - Main -->
|
56
|
+
<!-- -PHCDev- Page Container - Footer -->
|
57
|
+
<div id="footer" class="app-footer m-0">
|
58
|
+
<%= render "layouts/phcdevworks_accounts_stripe/components/backend/footer/footer" %>
|
59
|
+
</div>
|
60
|
+
<!-- -PHCDev- Page Container - Footer -->
|
61
|
+
</div>
|
59
62
|
</div>
|
60
|
-
<!--
|
63
|
+
<!-- -PHCDev- Page Container - Content -->
|
61
64
|
|
62
65
|
</div>
|
63
|
-
<!-- Page Container -->
|
66
|
+
<!-- -PHCDev- Page Container -->
|
67
|
+
|
68
|
+
<!-- JavaScript -->
|
69
|
+
<%= javascript_include_tag "coloradmin/phcthemes_admin_panel_pack_coloradmin" %>
|
70
|
+
<!-- JavaScript -->
|
64
71
|
|
65
72
|
</body>
|
66
73
|
</html>
|
data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/footer/_footer.html.erb
CHANGED
@@ -1,15 +1,17 @@
|
|
1
|
-
<!-- -
|
1
|
+
<!-- -PHCDev- Page Container - Footer - Left -->
|
2
2
|
<span>
|
3
|
-
<!-- -
|
3
|
+
<!-- -PHCDev- Page Container - Footer - Left - Copyright -->
|
4
4
|
<i class="fab fa-osi font-weight-bolder"></i> 2012-<%= Time.now.year %> -
|
5
|
-
<span class="font-weight-bold">PHC</span>Devworks Accounts
|
6
|
-
<!-- -
|
5
|
+
<span class="font-weight-bold">PHC</span>Devworks Accounts (Devise) - Engine v<%= Gem.loaded_specs["phcdevworks_accounts_stripe"].version.to_s %>
|
6
|
+
<!-- -PHCDev- Page Container - Footer - Left - Copyright -->
|
7
7
|
</span>
|
8
|
-
<!-- -
|
8
|
+
<!-- -PHCDev- Page Container - Footer - Left -->
|
9
9
|
|
10
|
-
<!-- -
|
10
|
+
<!-- -PHCDev- Page Container - Footer - Right -->
|
11
11
|
<span class="float-right">
|
12
|
+
<!-- -PHCDev- Page Container - Footer - Right - Developed -->
|
12
13
|
Developed with <i class="fas fa-heart hanna_hearts"></i> by
|
13
14
|
<a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="font-weight-bold">PHC</span>Devworks</u></a>
|
15
|
+
<!-- -PHCDev- Page Container - Footer - Right - Developed -->
|
14
16
|
</span>
|
15
|
-
<!-- -
|
17
|
+
<!-- -PHCDev- Page Container - Footer - Right -->
|