phcmemberspro 7.6.0 → 7.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7922510f8a46284815cd54557e32fc5f7aff33ba
4
- data.tar.gz: 0c406a1fbb617ea54f66b130d8b029cff1b100f1
3
+ metadata.gz: 77115f8efd637d1e8d20f810261889aff61772fc
4
+ data.tar.gz: dbb74cda2474e55fc88ee08b981d4eca378b1aea
5
5
  SHA512:
6
- metadata.gz: 7eef5806e7550184551a080dbd9e20b134569935b29d8aebdc4d92489539f98cb46ba17f1af7a1841b71c83a8a1e83e96a7b0df5baee6da380a7838b1f12e3d1
7
- data.tar.gz: a07fb5de451368b360f0962c8cc86c3574a8a2409ca4d32b9024d738f5829db0ef720ae942afa21e55cea5b56e166ea59bcb89bfc35754cc1502a617dd68204a
6
+ metadata.gz: cbc22944beefe6fda27c6ce05ddfd8b901260f8c7c22ec765bc64876a76eaa968ef139f4953a3bf1198898e05585dab6062ffd0b5d666c42ce54dfc1c4de7b04
7
+ data.tar.gz: 71d2e70a41e43adcf794c25fa96c10b126706615ca9992ad2cf7cd2f1d46099a703b2996fb40c634d505e22c518a17c05d0526945756ff44d14ce38e8c6be373
@@ -1,6 +1,20 @@
1
1
  require_dependency "phcmemberspro/application_controller"
2
2
 
3
3
  module Phcmemberspro
4
- class Directory::MainsController < ApplicationController
5
- end
4
+ class Directory::MainsController < ApplicationController
5
+
6
+ # Security & Action Filters
7
+ before_action :require_user
8
+
9
+ # Dashboard Index
10
+ def index
11
+ @members_main = Phcmemberspro::Members::Main.where(oganization_id: membership_info.org_id)
12
+ @members_business = Phcmemberspro::Members::Business.where(oganization_id: membership_info.org_id)
13
+ @members_contact = Phcmemberspro::Members::Contact.where(oganization_id: membership_info.org_id)
14
+
15
+ @directory_category = Phcmemberspro::Directory::Category.where(oganization_id: membership_info.org_id)
16
+ @directory_catlists = Phcmemberspro::Directory::Catlist.where(oganization_id: membership_info.org_id)
17
+ end
18
+
19
+ end
6
20
  end
@@ -0,0 +1,58 @@
1
+ <div class="row widget-row">
2
+ <div class="col-md-3">
3
+ <!-- BEGIN WIDGET THUMB -->
4
+ <div class="widget-thumb widget-bg-color-white text-uppercase margin-bottom-20 bordered">
5
+ <h4 class="widget-thumb-heading"><%="MEMBER".pluralize(2) %></h4>
6
+ <div class="widget-thumb-wrap">
7
+ <i class="widget-thumb-icon bg-green icon-bulb"></i>
8
+ <div class="widget-thumb-body">
9
+ <span class="widget-thumb-subtitle">TOTAL ALL</span>
10
+ <span class="widget-thumb-body-stat" data-counter="counterup" data-value="<%= @members_main.count(:all) %>">0</span>
11
+ </div>
12
+ </div>
13
+ </div>
14
+ <!-- END WIDGET THUMB -->
15
+ </div>
16
+ <div class="col-md-3">
17
+ <!-- BEGIN WIDGET THUMB -->
18
+ <div class="widget-thumb widget-bg-color-white text-uppercase margin-bottom-20 bordered">
19
+ <h4 class="widget-thumb-heading"><%="BUSINESS".pluralize(2) %></h4>
20
+ <div class="widget-thumb-wrap">
21
+ <i class="widget-thumb-icon bg-red icon-layers"></i>
22
+ <div class="widget-thumb-body">
23
+ <span class="widget-thumb-subtitle">TOTAL ALL</span>
24
+ <span class="widget-thumb-body-stat" data-counter="counterup" data-value="<%= @members_business.count(:all) %>">0</span>
25
+ </div>
26
+ </div>
27
+ </div>
28
+ <!-- END WIDGET THUMB -->
29
+ </div>
30
+ <div class="col-md-3">
31
+ <!-- BEGIN WIDGET THUMB -->
32
+ <div class="widget-thumb widget-bg-color-white text-uppercase margin-bottom-20 bordered">
33
+ <h4 class="widget-thumb-heading"><%="LISTING".pluralize(2) %></h4>
34
+ <div class="widget-thumb-wrap">
35
+ <i class="widget-thumb-icon bg-purple icon-list"></i>
36
+ <div class="widget-thumb-body">
37
+ <span class="widget-thumb-subtitle">ACTIVE TOTAL</span>
38
+ <span class="widget-thumb-body-stat" data-counter="counterup" data-value="<%= @directory_catlists.count(:all) %>">0</span>
39
+ </div>
40
+ </div>
41
+ </div>
42
+ <!-- END WIDGET THUMB -->
43
+ </div>
44
+ <div class="col-md-3">
45
+ <!-- BEGIN WIDGET THUMB -->
46
+ <div class="widget-thumb widget-bg-color-white text-uppercase margin-bottom-20 bordered">
47
+ <h4 class="widget-thumb-heading"><%="DIRECTORY".pluralize(2) %></h4>
48
+ <div class="widget-thumb-wrap">
49
+ <i class="widget-thumb-icon bg-blue icon-bar-chart"></i>
50
+ <div class="widget-thumb-body">
51
+ <span class="widget-thumb-subtitle">CATEGORY TOTAL</span>
52
+ <span class="widget-thumb-body-stat" data-counter="counterup" data-value="<%= @directory_category.count(:all) %>">0</span>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ <!-- END WIDGET THUMB -->
57
+ </div>
58
+ </div>
@@ -1,3 +1,3 @@
1
1
  module Phcmemberspro
2
- VERSION = "7.6.0"
2
+ VERSION = "7.7.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcmemberspro
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.6.0
4
+ version: 7.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
@@ -509,6 +509,7 @@ files:
509
509
  - app/views/phcmemberspro/directory/listings/index.html.erb
510
510
  - app/views/phcmemberspro/directory/listings/new.html.erb
511
511
  - app/views/phcmemberspro/directory/listings/show.html.erb
512
+ - app/views/phcmemberspro/directory/mains/index.html.erb
512
513
  - app/views/phcmemberspro/members/businesses/_form.html.erb
513
514
  - app/views/phcmemberspro/members/businesses/_formpatch.html.erb
514
515
  - app/views/phcmemberspro/members/businesses/components/_business_address.html.erb