phcdevworks_accounts_stripe 0.2.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -20
  3. data/README.md +46 -1
  4. data/Rakefile +8 -8
  5. data/app/assets/config/phcdevworks_accounts_stripe_manifest.js +2 -3
  6. data/app/assets/stylesheets/phcdevworks_accounts_stripe/application.css +15 -15
  7. data/app/controllers/phcdevworks_accounts_stripe/admin/customers_controller.rb +0 -0
  8. data/app/controllers/phcdevworks_accounts_stripe/admin/invoices_controller.rb +0 -0
  9. data/app/controllers/phcdevworks_accounts_stripe/admin/products_controller.rb +0 -0
  10. data/app/controllers/phcdevworks_accounts_stripe/admin/subscriptions_controller.rb +0 -0
  11. data/app/controllers/phcdevworks_accounts_stripe/application_controller.rb +0 -0
  12. data/app/controllers/phcdevworks_accounts_stripe/user/invoices_controller.rb +0 -0
  13. data/app/controllers/phcdevworks_accounts_stripe/user/product_controller.rb +0 -0
  14. data/app/controllers/phcdevworks_accounts_stripe/user/subscription_controller.rb +0 -0
  15. data/app/helpers/phcdevworks_accounts_stripe/admin/customers_helper.rb +0 -0
  16. data/app/helpers/phcdevworks_accounts_stripe/admin/invoices_helper.rb +0 -0
  17. data/app/helpers/phcdevworks_accounts_stripe/admin/plans_helper.rb +0 -0
  18. data/app/helpers/phcdevworks_accounts_stripe/admin/subscriptions_helper.rb +0 -0
  19. data/app/helpers/phcdevworks_accounts_stripe/application_helper.rb +0 -0
  20. data/app/helpers/phcdevworks_accounts_stripe/user/invoices_helper.rb +0 -0
  21. data/app/helpers/phcdevworks_accounts_stripe/user/plan_helper.rb +0 -0
  22. data/app/helpers/phcdevworks_accounts_stripe/user/subscription_helper.rb +0 -0
  23. data/app/jobs/phcdevworks_accounts_stripe/application_job.rb +4 -4
  24. data/app/mailers/phcdevworks_accounts_stripe/application_mailer.rb +6 -6
  25. data/app/models/phcdevworks_accounts_stripe/application_record.rb +0 -0
  26. data/app/views/layouts/phcdevworks_accounts_stripe/application.html.erb +36 -29
  27. data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/footer/_footer.html.erb +10 -8
  28. data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/navigation/_top_menu.html.erb +26 -25
  29. data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/sidebars/_side_menu.html.erb +491 -349
  30. data/app/views/phcdevworks_accounts_stripe/admin/customers/admin_customer_list.html.erb +44 -52
  31. data/app/views/phcdevworks_accounts_stripe/admin/invoices/admin_invoice_list.html.erb +61 -69
  32. data/app/views/phcdevworks_accounts_stripe/admin/products/admin_products_list.html.erb +46 -54
  33. data/app/views/phcdevworks_accounts_stripe/admin/subscriptions/admin_subscription_list.html.erb +48 -56
  34. data/app/views/phcdevworks_accounts_stripe/user/invoices/user_invoice_item.html.erb +0 -0
  35. data/app/views/phcdevworks_accounts_stripe/user/invoices/user_invoice_list.html.erb +0 -0
  36. data/app/views/phcdevworks_accounts_stripe/user/products/user_product_list.html.erb +0 -0
  37. data/app/views/phcdevworks_accounts_stripe/user/subscription/user_subscription_cancel.html.erb +0 -0
  38. data/app/views/phcdevworks_accounts_stripe/user/subscription/user_subscription_item.html.erb +0 -0
  39. data/config/initializers/stripe.rb +0 -0
  40. data/config/routes.rb +14 -17
  41. data/lib/phcdevworks_accounts_stripe/engine.rb +44 -47
  42. data/lib/phcdevworks_accounts_stripe/version.rb +3 -3
  43. data/lib/phcdevworks_accounts_stripe.rb +6 -6
  44. data/lib/tasks/phcdevworks_accounts_stripe_tasks.rake +4 -4
  45. metadata +41 -50
  46. data/app/assets/javascripts/phcdevworks_accounts_stripe/admin/invoices.coffee +0 -3
  47. data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/customers.css +0 -4
  48. data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/invoices.scss +0 -3
  49. data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/plans.css +0 -4
  50. data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/subscriptions.css +0 -4
  51. data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/invoices.css +0 -4
  52. data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/plan.css +0 -4
  53. data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/subscription.css +0 -4
@@ -1,67 +1,59 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDev- Title System -->
2
2
  <% phc_title "Customer Manager" %>
3
3
  <% phc_title_tagline "Stripe Customer List" %>
4
4
  <% phc_breadcrumb_one "Home" %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- PHCTitleSEO Title Variables -->
6
+ <!-- -PHCDev- Title System -->
7
7
 
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
8
+ <!-- -PHCDev- Page Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDev- Page Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
15
+ <!-- -PHCDev- Page Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDev- Page Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
22
-
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- Index - Table -->
36
- <div class="table-responsive">
37
- <table class="table table-striped table-bordered">
38
-
39
- <thead>
40
- <tr>
41
- <th>Customer Name</th>
42
- <th>Customer Email</th>
43
- </tr>
44
- </thead>
45
-
46
- <tbody>
47
- <% @admin_customer_list.each do |customers| %>
48
- <tr>
49
- <td><%= customers.name %></td>
50
- <td><%= customers.email %></td>
51
- </tr>
52
- <% end %>
53
- </tbody>
54
-
55
- </table>
56
- </div>
57
- <!-- Index - Table -->
58
-
59
- </div>
60
- <!-- Panel - Body -->
19
+ <!-- -PHCDev- Panel -->
20
+ <div class="panel panel-inverse">
61
21
 
22
+ <!-- -PHCDev- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
25
+ </div>
26
+ <!-- -PHCDev- Panel - Heading -->
27
+
28
+ <!-- -PHCDev- Panel - Body -->
29
+ <div class="panel-body">
30
+
31
+ <!-- -PHCDev- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
34
+
35
+ <thead>
36
+ <tr>
37
+ <th>Customer Name</th>
38
+ <th>Customer Email</th>
39
+ </tr>
40
+ </thead>
41
+
42
+ <tbody>
43
+ <% @admin_customer_list.each do |customers| %>
44
+ <tr>
45
+ <td><%= customers.name %></td>
46
+ <td><%= customers.email %></td>
47
+ </tr>
48
+ <% end %>
49
+ </tbody>
50
+
51
+ </table>
62
52
  </div>
63
- <!-- Panel -->
53
+ <!-- -PHCDev- Index - Table -->
64
54
 
65
55
  </div>
56
+ <!-- -PHCDev- Panel - Body -->
57
+
66
58
  </div>
67
- <!-- Page Content -->
59
+ <!-- -PHCDev- Panel -->
@@ -1,89 +1,81 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDev- Title System -->
2
2
  <% phc_title "Invoice Manager" %>
3
3
  <% phc_title_tagline "Stripe Invoice List" %>
4
4
  <% phc_breadcrumb_one "Home" %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- PHCTitleSEO Title Variables -->
6
+ <!-- -PHCDev- Title System -->
7
7
 
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
8
+ <!-- -PHCDev- Page Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDev- Page Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
15
+ <!-- -PHCDev- Page Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDev- Page Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- -PHCDev- Panel -->
20
+ <div class="panel panel-inverse">
22
21
 
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- Index - Table -->
36
- <div class="table-responsive">
37
- <table class="table table-striped table-bordered">
22
+ <!-- -PHCDev- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
25
+ </div>
26
+ <!-- -PHCDev- Panel - Heading -->
38
27
 
39
- <thead>
40
- <tr>
41
- <th>Status</th>
42
- <th>Account Name</th>
43
- <th>Invoice Amount</th>
44
- <th>Invoice Paid</th>
45
- <th>Invoice Due</th>
46
- <th>Due Date</th>
47
- <th>Invoice PDF Download</th>
48
- <th>Invoice Link</th>
49
- </tr>
50
- </thead>
28
+ <!-- -PHCDev- Panel - Body -->
29
+ <div class="panel-body">
51
30
 
52
- <tbody>
53
- <% @admin_invoice_list.each do |admin_invoice| %>
54
- <tr>
55
- <td><%= admin_invoice.status.capitalize %></td>
56
- <td><%= admin_invoice.account_name %></td>
57
- <td><%= number_to_currency(admin_invoice.amount_due/100) %></td>
58
- <td><%= number_to_currency(admin_invoice.amount_paid/100) %></td>
59
- <td><%= number_to_currency(admin_invoice.amount_remaining/100) %></td>
60
- <td><%= Time.at(admin_invoice.due_date).to_datetime.strftime("%B %d, %Y") %></td>
61
- <td>
62
- <i class="fad fa-external-link"></i>
63
- <%= link_to admin_invoice.invoice_pdf, target: "_blank" do %>
64
- Invoice #: <%= admin_invoice.number %>
65
- <% end %>
66
- </td>
67
- <td>
68
- <i class="fad fa-external-link"></i>
69
- <%= link_to admin_invoice.hosted_invoice_url, target: "_blank" do %>
70
- Invoice #: <%= admin_invoice.number %>
71
- <% end %>
72
- </td>
73
- </tr>
74
- <% end %>
75
- </tbody>
31
+ <!-- -PHCDev- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
76
34
 
77
- </table>
78
- </div>
79
- <!-- Index - Table -->
35
+ <thead>
36
+ <tr>
37
+ <th>Status</th>
38
+ <th>Account Name</th>
39
+ <th>Invoice Amount</th>
40
+ <th>Invoice Paid</th>
41
+ <th>Invoice Due</th>
42
+ <th>Due Date</th>
43
+ <th>Invoice PDF Download</th>
44
+ <th>Invoice Link</th>
45
+ </tr>
46
+ </thead>
80
47
 
81
- </div>
82
- <!-- Panel - Body -->
48
+ <tbody>
49
+ <% @admin_invoice_list.each do |admin_invoice| %>
50
+ <tr>
51
+ <td><%= admin_invoice.status.capitalize %></td>
52
+ <td><%= admin_invoice.account_name %></td>
53
+ <td><%= number_to_currency(admin_invoice.amount_due/100) %></td>
54
+ <td><%= number_to_currency(admin_invoice.amount_paid/100) %></td>
55
+ <td><%= number_to_currency(admin_invoice.amount_remaining/100) %></td>
56
+ <td><%= Time.at(admin_invoice.due_date).to_datetime.strftime("%B %d, %Y") %></td>
57
+ <td>
58
+ <i class="fad fa-external-link"></i>
59
+ <%= link_to admin_invoice.invoice_pdf, target: "_blank" do %>
60
+ Invoice #: <%= admin_invoice.number %>
61
+ <% end %>
62
+ </td>
63
+ <td>
64
+ <i class="fad fa-external-link"></i>
65
+ <%= link_to admin_invoice.hosted_invoice_url, target: "_blank" do %>
66
+ Invoice #: <%= admin_invoice.number %>
67
+ <% end %>
68
+ </td>
69
+ </tr>
70
+ <% end %>
71
+ </tbody>
83
72
 
73
+ </table>
84
74
  </div>
85
- <!-- Panel -->
75
+ <!-- -PHCDev- Index - Table -->
86
76
 
87
77
  </div>
78
+ <!-- -PHCDev- Panel - Body -->
79
+
88
80
  </div>
89
- <!-- Page Content -->
81
+ <!-- -PHCDev- Panel -->
@@ -1,69 +1,61 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDev- Title System -->
2
2
  <% phc_title "Products Manager" %>
3
3
  <% phc_title_tagline "Stripe Products List" %>
4
4
  <% phc_breadcrumb_one "Home" %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- PHCTitleSEO Title Variables -->
6
+ <!-- -PHCDev- Title System -->
7
7
 
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
8
+ <!-- -PHCDev- Page Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDev- Page Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
15
+ <!-- -PHCDev- Page Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDev- Page Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
22
-
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
25
-
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
31
-
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
34
-
35
- <!-- Index - Table -->
36
- <div class="table-responsive">
37
- <table class="table table-striped table-bordered">
38
-
39
- <thead>
40
- <tr>
41
- <th>Name</th>
42
- <th>Amount Monthly</th>
43
- <th>Amount Anually</th>
44
- </tr>
45
- </thead>
46
-
47
- <tbody>
48
- <% @admin_products_list.each do |product| %>
49
- <tr>
50
- <td><%= product.name %></td>
51
- <td><%= number_to_currency(Stripe::Price.list(product: product.id, recurring: {interval: "month"}).data[0].unit_amount/100) %></td>
52
- <td><%= number_to_currency(Stripe::Price.list(product: product.id, recurring: {interval: "year"}).data[0].unit_amount/100) %></td>
53
- </tr>
54
- <% end %>
55
- </tbody>
56
-
57
- </table>
58
- </div>
59
- <!-- Index - Table -->
60
-
61
- </div>
62
- <!-- Panel - Body -->
19
+ <!-- -PHCDev- Panel -->
20
+ <div class="panel panel-inverse">
63
21
 
22
+ <!-- -PHCDev- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
25
+ </div>
26
+ <!-- -PHCDev- Panel - Heading -->
27
+
28
+ <!-- -PHCDev- Panel - Body -->
29
+ <div class="panel-body">
30
+
31
+ <!-- -PHCDev- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
34
+
35
+ <thead>
36
+ <tr>
37
+ <th>Name</th>
38
+ <th>Amount Monthly</th>
39
+ <th>Amount Anually</th>
40
+ </tr>
41
+ </thead>
42
+
43
+ <tbody>
44
+ <% @admin_products_list.each do |product| %>
45
+ <tr>
46
+ <td><%= product.name %></td>
47
+ <td><%= number_to_currency(Stripe::Price.list(product: product.id, recurring: {interval: "month"}).data[0].unit_amount/100) %></td>
48
+ <td><%= number_to_currency(Stripe::Price.list(product: product.id, recurring: {interval: "year"}).data[0].unit_amount/100) %></td>
49
+ </tr>
50
+ <% end %>
51
+ </tbody>
52
+
53
+ </table>
64
54
  </div>
65
- <!-- Panel -->
55
+ <!-- -PHCDev- Index - Table -->
66
56
 
67
57
  </div>
58
+ <!-- -PHCDev- Panel - Body -->
59
+
68
60
  </div>
69
- <!-- Page Content -->
61
+ <!-- -PHCDev- Panel -->
@@ -1,75 +1,67 @@
1
- <!-- PHCTitleSEO Title Variables -->
1
+ <!-- -PHCDev- Title System -->
2
2
  <% phc_title "Subscription Manager" %>
3
3
  <% phc_title_tagline "Stripe Subscriptions List" %>
4
4
  <% phc_breadcrumb_one "Home" %>
5
5
  <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- PHCTitleSEO Title Variables -->
6
+ <!-- -PHCDev- Title System -->
7
7
 
8
- <!-- Page Bradcrumbs -->
9
- <ol class="breadcrumb pull-right">
8
+ <!-- -PHCDev- Page Bradcrumbs -->
9
+ <ol class="breadcrumb float-xl-end">
10
10
  <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
11
  <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
- <!-- Page Bradcrumbs -->
13
+ <!-- -PHCDev- Page Bradcrumbs -->
14
14
 
15
- <!-- Page Header -->
16
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
- <!-- Page Header -->
15
+ <!-- -PHCDev- Page Header -->
16
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
+ <!-- -PHCDev- Page Header -->
18
18
 
19
- <!-- Page Content -->
20
- <div class="row">
21
- <div class="col-lg-12">
19
+ <!-- -PHCDev- Panel -->
20
+ <div class="panel panel-inverse">
22
21
 
23
- <!-- Panel -->
24
- <div class="panel panel-inverse">
22
+ <!-- -PHCDev- Panel - Heading -->
23
+ <div class="panel-heading">
24
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
25
+ </div>
26
+ <!-- -PHCDev- Panel - Heading -->
25
27
 
26
- <!-- Panel - Heading -->
27
- <div class="panel-heading">
28
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
- </div>
30
- <!-- Panel - Heading -->
28
+ <!-- -PHCDev- Panel - Body -->
29
+ <div class="panel-body">
31
30
 
32
- <!-- Panel - Body -->
33
- <div class="panel-body">
31
+ <!-- -PHCDev- Index - Table -->
32
+ <div class="table-responsive">
33
+ <table class="table table-striped table-bordered">
34
34
 
35
- <!-- Index - Table -->
36
- <div class="table-responsive">
37
- <table class="table table-striped table-bordered">
35
+ <thead>
36
+ <tr>
37
+ <th>Status</th>
38
+ <th>Customer Name</th>
39
+ <th>Customer Email</th>
40
+ <th>Next Payment Date</th>
41
+ <th>Date Created</th>
42
+ <th>Amount Due</th>
43
+ </tr>
44
+ </thead>
38
45
 
39
- <thead>
40
- <tr>
41
- <th>Status</th>
42
- <th>Customer Name</th>
43
- <th>Customer Email</th>
44
- <th>Next Payment Date</th>
45
- <th>Date Created</th>
46
- <th>Amount Due</th>
47
- </tr>
48
- </thead>
46
+ <tbody>
47
+ <% @admin_subscription_list.each do |subscription| %>
48
+ <tr>
49
+ <td><%= subscription.status.capitalize %></td>
50
+ <td><%= Stripe::Customer.retrieve(subscription.customer).name %></td>
51
+ <td><%= Stripe::Customer.retrieve(subscription.customer).email %></td>
52
+ <td><%= Time.at(subscription.current_period_end).to_datetime.strftime("%B %d, %Y") %></td>
53
+ <td><%= Time.at(subscription.created).to_datetime.strftime("%B %d, %Y") %></td>
54
+ <td><%= number_to_currency(subscription.plan.amount/100) %></td>
55
+ </tr>
56
+ <% end %>
57
+ </tbody>
49
58
 
50
- <tbody>
51
- <% @admin_subscription_list.each do |subscription| %>
52
- <tr>
53
- <td><%= subscription.status.capitalize %></td>
54
- <td><%= Stripe::Customer.retrieve(subscription.customer).name %></td>
55
- <td><%= Stripe::Customer.retrieve(subscription.customer).email %></td>
56
- <td><%= Time.at(subscription.created).to_datetime.strftime("%B %d, %Y") %></td>
57
- <td><%= Time.at(subscription.current_period_end).to_datetime.strftime("%B %d, %Y") %></td>
58
- <td><%= number_to_currency(subscription.plan.amount/100) %></td>
59
- </tr>
60
- <% end %>
61
- </tbody>
59
+ </table>
60
+ </div>
61
+ <!-- -PHCDev- Index - Table -->
62
62
 
63
- </table>
64
- </div>
65
- <!-- Index - Table -->
63
+ </div>
64
+ <!-- -PHCDev- Panel - Body -->
66
65
 
67
- </div>
68
- <!-- Panel - Body -->
69
-
70
- </div>
71
- <!-- Panel -->
72
-
73
- </div>
74
66
  </div>
75
- <!-- Page Content -->
67
+ <!-- -PHCDev- Panel -->
File without changes
data/config/routes.rb CHANGED
@@ -1,17 +1,14 @@
1
- PhcdevworksAccountsStripe::Engine.routes.draw do
2
-
3
- # User Routes
4
- match "/user/subscription", to: "user/subscription#user_subscription_item", via: "get"
5
- match "/user/plan", to: "user/plans#user_plan_list", via: "get"
6
- match "/user/invoices", to: "user/invoices#user_invoice_list", via: "get"
7
-
8
- # Admin Routes
9
- match "/admin/customers", to: "admin/customers#admin_customer_list", via: "get"
10
- match "/admin/invoices", to: "admin/invoices#admin_invoice_list", via: "get"
11
- match "/admin/products", to: "admin/products#admin_products_list", via: "get"
12
- match "/admin/subscriptions", to: "admin/subscriptions#admin_subscription_list", via: "get"
13
-
14
- # Mount Routes
15
- mount PhcdevworksAccounts::Engine, :at => '/'
16
-
17
- end
1
+ PhcdevworksAccountsStripe::Engine.routes.draw do
2
+
3
+ # User Routes
4
+ match "/user/subscription", to: "user/subscription#user_subscription_item", via: "get"
5
+ match "/user/plan", to: "user/plans#user_plan_list", via: "get"
6
+ match "/user/invoices", to: "user/invoices#user_invoice_list", via: "get"
7
+
8
+ # Admin Routes
9
+ match "/admin/customers", to: "admin/customers#admin_customer_list", via: "get"
10
+ match "/admin/invoices", to: "admin/invoices#admin_invoice_list", via: "get"
11
+ match "/admin/products", to: "admin/products#admin_products_list", via: "get"
12
+ match "/admin/subscriptions", to: "admin/subscriptions#admin_subscription_list", via: "get"
13
+
14
+ end
@@ -1,47 +1,44 @@
1
- module PhcdevworksAccountsStripe
2
- class Engine < ::Rails::Engine
3
-
4
- # Load Main Dependencies
5
- require "jbuilder"
6
- require "paper_trail"
7
- require "friendly_id"
8
-
9
- # Load Theme Dependencies
10
- require "phcthemes_admin_panel_pack"
11
- require "phcthemes_web_theme_pack"
12
-
13
- # Load Helper Dependencies
14
- require "phcdevworks_core"
15
- require "phcdevworks_active_menus"
16
- require "phcdevworks_notifications"
17
- require "phcdevworks_titleseo"
18
-
19
- # Load Upload Dependencies
20
- require "aws-sdk-s3"
21
- require "google-cloud-storage"
22
- require "mini_magick"
23
-
24
- # Frontend Dependencies
25
- require "wicked"
26
- require "gravtastic"
27
- require "friendly_id"
28
-
29
- # Mailer Dependencies
30
- require "mail_form"
31
-
32
- # Load User Accounts
33
- require "phcdevworks_accounts"
34
-
35
- # Engine Namespace
36
- isolate_namespace PhcdevworksAccountsStripe
37
-
38
- # Rspec Generators
39
- config.generators do |g|
40
- g.test_framework :rspec
41
- g.fixture_replacement :factory_bot
42
- g.factory_bot dir: 'spec/factories'
43
- g.factory_bot suffix: "factory"
44
- end
45
-
46
- end
47
- end
1
+ module PhcdevworksAccountsStripe
2
+ class Engine < ::Rails::Engine
3
+
4
+ # Load Main Dependencies
5
+ require "jbuilder"
6
+ require "paper_trail"
7
+ require "friendly_id"
8
+
9
+ # Load Theme Dependencies
10
+ require "phcthemes_admin_panel_pack"
11
+ require "phcthemes_web_theme_pack"
12
+
13
+ # Load Helper Dependencies
14
+ require "phcdevworks_core"
15
+ require "phcdevworks_active_menus"
16
+ require "phcdevworks_notifications"
17
+ require "phcdevworks_titleseo"
18
+
19
+ # Load Upload Dependencies
20
+ require "aws-sdk-s3"
21
+ require "google-cloud-storage"
22
+ require "mini_magick"
23
+
24
+ # Frontend Dependencies
25
+ require "wicked"
26
+ require "gravtastic"
27
+ require "friendly_id"
28
+
29
+ # Mailer Dependencies
30
+ require "mail_form"
31
+
32
+ # Engine Namespace
33
+ isolate_namespace PhcdevworksAccountsStripe
34
+
35
+ # Rspec Generators
36
+ config.generators do |g|
37
+ g.test_framework :rspec
38
+ g.fixture_replacement :factory_bot
39
+ g.factory_bot dir: 'spec/factories'
40
+ g.factory_bot suffix: "factory"
41
+ end
42
+
43
+ end
44
+ end
@@ -1,3 +1,3 @@
1
- module PhcdevworksAccountsStripe
2
- VERSION = "0.2.0"
3
- end
1
+ module PhcdevworksAccountsStripe
2
+ VERSION = "1.0.2"
3
+ end