phcdevworks_accounts_stripe 0.1.7 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +39 -21
  4. data/app/assets/config/phcdevworks_accounts_stripe_manifest.js +2 -3
  5. data/app/controllers/phcdevworks_accounts_stripe/admin/customers_controller.rb +17 -17
  6. data/app/controllers/phcdevworks_accounts_stripe/admin/invoices_controller.rb +17 -17
  7. data/app/controllers/phcdevworks_accounts_stripe/admin/products_controller.rb +16 -16
  8. data/app/controllers/phcdevworks_accounts_stripe/admin/subscriptions_controller.rb +16 -16
  9. data/app/controllers/phcdevworks_accounts_stripe/application_controller.rb +10 -10
  10. data/app/controllers/phcdevworks_accounts_stripe/user/invoices_controller.rb +19 -19
  11. data/app/controllers/phcdevworks_accounts_stripe/user/product_controller.rb +13 -13
  12. data/app/controllers/phcdevworks_accounts_stripe/user/subscription_controller.rb +18 -18
  13. data/app/helpers/phcdevworks_accounts_stripe/admin/customers_helper.rb +4 -4
  14. data/app/helpers/phcdevworks_accounts_stripe/admin/invoices_helper.rb +4 -4
  15. data/app/helpers/phcdevworks_accounts_stripe/admin/plans_helper.rb +4 -4
  16. data/app/helpers/phcdevworks_accounts_stripe/admin/subscriptions_helper.rb +4 -4
  17. data/app/helpers/phcdevworks_accounts_stripe/application_helper.rb +18 -18
  18. data/app/helpers/phcdevworks_accounts_stripe/user/invoices_helper.rb +4 -4
  19. data/app/helpers/phcdevworks_accounts_stripe/user/plan_helper.rb +4 -4
  20. data/app/helpers/phcdevworks_accounts_stripe/user/subscription_helper.rb +4 -4
  21. data/app/mailers/phcdevworks_accounts_stripe/application_mailer.rb +2 -2
  22. data/app/models/phcdevworks_accounts_stripe/application_record.rb +5 -5
  23. data/app/views/layouts/phcdevworks_accounts_stripe/application.html.erb +34 -27
  24. data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/footer/_footer.html.erb +9 -7
  25. data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/navigation/_top_menu.html.erb +22 -21
  26. data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/sidebars/_side_menu.html.erb +491 -349
  27. data/app/views/phcdevworks_accounts_stripe/admin/customers/admin_customer_list.html.erb +59 -67
  28. data/app/views/phcdevworks_accounts_stripe/admin/invoices/admin_invoice_list.html.erb +81 -89
  29. data/app/views/phcdevworks_accounts_stripe/admin/products/admin_products_list.html.erb +61 -69
  30. data/app/views/phcdevworks_accounts_stripe/admin/subscriptions/admin_subscription_list.html.erb +67 -75
  31. data/app/views/phcdevworks_accounts_stripe/user/invoices/user_invoice_list.html.erb +88 -88
  32. data/app/views/phcdevworks_accounts_stripe/user/products/user_product_list.html.erb +66 -66
  33. data/app/views/phcdevworks_accounts_stripe/user/subscription/user_subscription_cancel.html.erb +66 -66
  34. data/app/views/phcdevworks_accounts_stripe/user/subscription/user_subscription_item.html.erb +70 -70
  35. data/config/initializers/stripe.rb +8 -8
  36. data/config/routes.rb +0 -3
  37. data/lib/phcdevworks_accounts_stripe/engine.rb +1 -4
  38. data/lib/phcdevworks_accounts_stripe/version.rb +1 -1
  39. metadata +49 -58
  40. data/app/assets/javascripts/phcdevworks_accounts_stripe/admin/invoices.coffee +0 -3
  41. data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/customers.css +0 -4
  42. data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/invoices.scss +0 -3
  43. data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/plans.css +0 -4
  44. data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/subscriptions.css +0 -4
  45. data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/invoices.css +0 -4
  46. data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/plan.css +0 -4
  47. data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/subscription.css +0 -4
@@ -1,40 +1,41 @@
1
1
  <!-- -PHC- Topbar - Navigation Header -->
2
2
  <div class="navbar-header">
3
3
 
4
- <%= link_to phcdevworks_accounts_stripe.admin_products_path, class: "navbar-brand" do %>
4
+ <button type="button" class="navbar-mobile-toggler" data-toggle="app-sidebar-mobile">
5
+ <span class="icon-bar"></span>
6
+ <span class="icon-bar"></span>
7
+ <span class="icon-bar"></span>
8
+ </button>
9
+
10
+ <%= link_to phcdevworks_accounts_devise.user_path, class: "navbar-brand" do %>
5
11
  <strong>PHCDevworks</strong>Accounts
6
12
  <% end %>
7
13
 
8
- <button type="button" class="navbar-toggle" data-click="sidebar-toggled">
9
- <span class="icon-bar"></span>
10
- <span class="icon-bar"></span>
11
- <span class="icon-bar"></span>
12
- </button>
13
-
14
14
  </div>
15
15
  <!-- -PHC- Topbar - Navigation Header -->
16
16
 
17
17
  <!-- -PHC- Topbar - Navigation Main -->
18
18
  <% if current_user %>
19
- <ul class="navbar-nav navbar-right">
20
-
21
- <!-- -PHC- Topbar - Navigation Main - User Menu -->
22
- <li class="dropdown navbar-user">
23
- <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
19
+ <div class="navbar-nav">
20
+ <div class="navbar-item navbar-user dropdown">
21
+ <a href="#" class="navbar-link dropdown-toggle d-flex align-items-center" data-bs-toggle="dropdown">
24
22
  <%= image_tag current_user.gravatar_url %>
25
- <span class="d-none d-md-inline"><%= current_user.firstname + " " + current_user.lastname %></span> <b class="caret"></b>
23
+ <span>
24
+ <span class="d-none d-md-inline"><%= current_user.firstname + " " + current_user.lastname %></span>
25
+ <b class="caret"></b>
26
+ </span>
26
27
  </a>
27
- <div class="dropdown-menu dropdown-menu-right">
28
- <%= link_to phcdevworks_accounts.edit_user_registration_path, class: "dropdown-item" do %>
28
+ <div class="dropdown-menu dropdown-menu-end me-1">
29
+ <%= link_to phcdevworks_accounts_devise.edit_user_registration_path, class: "dropdown-item" do %>
29
30
  <i class="fad fa-cogs"></i> Account Settings
30
31
  <% end %>
31
- <%= link_to phcdevworks_accounts.destroy_user_session_path, method: :delete, class: "dropdown-item" do %>
32
+ <%= link_to phcdevworks_accounts_devise.destroy_user_session_path, method: :delete, class: "dropdown-item" do %>
32
33
  <i class="fad fa-sign-out-alt"></i> Logout
33
34
  <% end %>
34
35
  </div>
35
- </li>
36
- <!-- -PHC- Topbar - Navigation Main - User Menu -->
37
-
38
- </ul>
36
+ </div>
37
+ </div>
39
38
  <% end %>
40
- <!-- -PHC- Topbar - Navigation Main -->
39
+
40
+ </div>
41
+ <!-- -PHC- Topbar - Navigation Main -->