phcmembers 11.0.0 → 12.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -20
  3. data/README.md +45 -45
  4. data/Rakefile +33 -33
  5. data/app/assets/config/phcmembers_manifest.js +2 -2
  6. data/app/assets/javascripts/phcmembers/application.js +2 -2
  7. data/app/assets/stylesheets/phcmembers/application.scss +2 -2
  8. data/app/controllers/phcmembers/api/directories_controller.rb +18 -18
  9. data/app/controllers/phcmembers/application_controller.rb +17 -17
  10. data/app/controllers/phcmembers/directory/categories_controller.rb +68 -68
  11. data/app/controllers/phcmembers/directory/categorylistings_controller.rb +21 -21
  12. data/app/controllers/phcmembers/member/addresses_controller.rb +75 -75
  13. data/app/controllers/phcmembers/member/listings_controller.rb +77 -77
  14. data/app/controllers/phcmembers/member/profiles_controller.rb +68 -68
  15. data/app/controllers/phcmembers/modules/dashboards_controller.rb +14 -14
  16. data/app/helpers/phcmembers/application_helper.rb +14 -14
  17. data/app/jobs/phcmembers/application_job.rb +4 -4
  18. data/app/mailers/phcmembers/application_mailer.rb +8 -8
  19. data/app/models/phcmembers/application_record.rb +5 -5
  20. data/app/models/phcmembers/connections.rb +7 -7
  21. data/app/models/phcmembers/directory.rb +7 -7
  22. data/app/models/phcmembers/directory/category.rb +29 -19
  23. data/app/models/phcmembers/directory/categorylisting.rb +12 -18
  24. data/app/models/phcmembers/member.rb +7 -7
  25. data/app/models/phcmembers/member/address.rb +45 -17
  26. data/app/models/phcmembers/member/listing.rb +66 -26
  27. data/app/models/phcmembers/member/profile.rb +49 -49
  28. data/app/models/phcmembers/versions_address.rb +5 -0
  29. data/app/models/phcmembers/versions_category.rb +5 -0
  30. data/app/models/phcmembers/versions_category_listing.rb +5 -0
  31. data/app/models/phcmembers/versions_listing.rb +5 -0
  32. data/app/models/phcmembers/versions_profile.rb +5 -0
  33. data/app/views/layouts/phcmembers/application.html.erb +56 -56
  34. data/app/views/layouts/phcmembers/components/backend/footer/_footer.html.erb +4 -4
  35. data/app/views/layouts/phcmembers/components/backend/navigation/_navigation.html.erb +60 -60
  36. data/app/views/layouts/phcmembers/components/backend/topbar/_topbar.html.erb +5 -5
  37. data/app/views/layouts/phcmembers/components/backend/topbar/_topbar_links.html.erb +0 -0
  38. data/app/views/layouts/phcmembers/directory/directory_all.html.erb +56 -56
  39. data/app/views/layouts/phcmembers/members/members_all.html.erb +56 -56
  40. data/app/views/phcmembers/directory/categories/_form.html.erb +15 -15
  41. data/app/views/phcmembers/directory/categories/components/_category_audits.html.erb +14 -14
  42. data/app/views/phcmembers/directory/categories/components/_category_list.html.erb +7 -7
  43. data/app/views/phcmembers/directory/categories/components/_category_main.html.erb +31 -31
  44. data/app/views/phcmembers/directory/categories/edit.html.erb +38 -38
  45. data/app/views/phcmembers/directory/categories/index.html.erb +47 -47
  46. data/app/views/phcmembers/directory/categories/new.html.erb +36 -36
  47. data/app/views/phcmembers/directory/categories/show.html.erb +27 -27
  48. data/app/views/phcmembers/directory/categorylistings/index.html.erb +63 -63
  49. data/app/views/phcmembers/directory/categorylistings/show.html.erb +4 -4
  50. data/app/views/phcmembers/member/addresses/_form.html.erb +44 -44
  51. data/app/views/phcmembers/member/addresses/components/_address_address.html.erb +29 -29
  52. data/app/views/phcmembers/member/addresses/components/_address_audits.html.erb +12 -12
  53. data/app/views/phcmembers/member/addresses/components/_address_main.html.erb +31 -31
  54. data/app/views/phcmembers/member/addresses/edit.html.erb +40 -40
  55. data/app/views/phcmembers/member/addresses/index.html.erb +74 -74
  56. data/app/views/phcmembers/member/addresses/new.html.erb +40 -40
  57. data/app/views/phcmembers/member/addresses/show.html.erb +27 -27
  58. data/app/views/phcmembers/member/listings/_form.html.erb +68 -68
  59. data/app/views/phcmembers/member/listings/components/_listing_address.html.erb +48 -48
  60. data/app/views/phcmembers/member/listings/components/_listing_audits.html.erb +14 -14
  61. data/app/views/phcmembers/member/listings/components/_listing_main.html.erb +31 -31
  62. data/app/views/phcmembers/member/listings/edit.html.erb +40 -40
  63. data/app/views/phcmembers/member/listings/index.html.erb +76 -76
  64. data/app/views/phcmembers/member/listings/new.html.erb +40 -40
  65. data/app/views/phcmembers/member/listings/show.html.erb +27 -27
  66. data/app/views/phcmembers/member/profiles/_form.html.erb +36 -36
  67. data/app/views/phcmembers/member/profiles/components/_profile_main.html.erb +44 -44
  68. data/app/views/phcmembers/member/profiles/components/_profile_sidebar.html.erb +28 -28
  69. data/app/views/phcmembers/member/profiles/edit.html.erb +39 -39
  70. data/app/views/phcmembers/member/profiles/index.html.erb +68 -68
  71. data/app/views/phcmembers/member/profiles/new.html.erb +39 -39
  72. data/app/views/phcmembers/member/profiles/show.html.erb +31 -31
  73. data/app/views/phcmembers/modules/dashboards/index.html.erb +66 -66
  74. data/config/initializers/friendly_id.rb +92 -92
  75. data/config/initializers/paper_trail.rb +1 -0
  76. data/config/locales/en.yml +9 -9
  77. data/config/routes.rb +36 -36
  78. data/db/migrate/20160724220339_create_phcmembers_member_profiles.rb +23 -23
  79. data/db/migrate/20160725153306_create_phcmembers_member_addresses.rb +26 -26
  80. data/db/migrate/20160725182257_create_phcmembers_directory_categories.rb +18 -18
  81. data/db/migrate/20160727024006_create_phcmembers_member_listings.rb +30 -30
  82. data/db/migrate/20160727042756_create_phcmembers_directory_categorylistings.rb +19 -19
  83. data/db/migrate/20170509002355_create_phcmembers_friendly_id_slugs.rb +15 -0
  84. data/db/migrate/20170517064030_create_phcmembers_versions_profiles.rb +12 -0
  85. data/db/migrate/20170517064049_create_phcmembers_versions_listings.rb +12 -0
  86. data/db/migrate/20170517064114_create_phcmembers_versions_addresses.rb +12 -0
  87. data/db/migrate/20170517064208_create_phcmembers_versions_categorylistings.rb +12 -0
  88. data/db/migrate/20170517064427_create_phcmembers_versions_categories.rb +12 -0
  89. data/lib/phcmembers.rb +4 -4
  90. data/lib/phcmembers/engine.rb +73 -73
  91. data/lib/phcmembers/version.rb +3 -3
  92. data/lib/tasks/phcmembers_tasks.rake +4 -4
  93. metadata +59 -7
  94. data/db/migrate/20160707154842_create_versions.rb +0 -80
  95. data/db/migrate/20170509002355_create_friendly_id_slugs.rb +0 -15
@@ -1,28 +1,28 @@
1
- <div class="card">
2
- <%= image_tag @member_profile.gravatar_url, :class => 'card-img-top' %>
3
- <div class="card-block">
4
- <h4 class="card-title"><%= @member_profile.mfirstname + ' ' + @member_profile.mlastname %></h4>
5
- <h4 class="card-title"><%= @member_profile.mtitle %></h4>
6
- <%= link_to 'Update Member', edit_member_profile_path(@member_profile), class: "btn btn-primary" %>
7
- <%= link_to 'Delete Member', @member_profile, method: :delete, data: { confirm: 'Are you sure? Removing a member will delete all records, including business information and any member directory connections.' }, class: "btn btn-danger" %>
8
- </div>
9
- </div>
10
- <div class="card">
11
- <div class="card-block">
12
- <ul class="nav">
13
-
14
- </ul>
15
- </div>
16
- </div>
17
- <div class="card">
18
- <div class="card-block">
19
- <!-- STATS -->
20
- <div class="row list-separated profile-stat">
21
-
22
- </div>
23
- <!-- STATS -->
24
- <div>
25
-
26
- </div>
27
- </div>
28
- </div>
1
+ <div class="card">
2
+ <%= image_tag @member_profile.gravatar_url, :class => 'card-img-top' %>
3
+ <div class="card-block">
4
+ <h4 class="card-title"><%= @member_profile.mfirstname + ' ' + @member_profile.mlastname %></h4>
5
+ <h4 class="card-title"><%= @member_profile.mtitle %></h4>
6
+ <%= link_to 'Update Member', edit_member_profile_path(@member_profile), class: "btn btn-primary" %>
7
+ <%= link_to 'Delete Member', @member_profile, method: :delete, data: { confirm: 'Are you sure? Removing a member will delete all records, including business information and any member directory connections.' }, class: "btn btn-danger" %>
8
+ </div>
9
+ </div>
10
+ <div class="card">
11
+ <div class="card-block">
12
+ <ul class="nav">
13
+
14
+ </ul>
15
+ </div>
16
+ </div>
17
+ <div class="card">
18
+ <div class="card-block">
19
+ <!-- STATS -->
20
+ <div class="row list-separated profile-stat">
21
+
22
+ </div>
23
+ <!-- STATS -->
24
+ <div>
25
+
26
+ </div>
27
+ </div>
28
+ </div>
@@ -1,39 +1,39 @@
1
- <!-- Title System -->
2
- <% phc_title "Members Manager" %>
3
- <% phc_title_tagline "Update Member Information for " + @member_profile.mfirstname + " " + @member_profile.mlastname %>
4
- <% phc_breadcrumb_one link_to "Dashboard", phcmembers.modules_dashboards_index_path %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- Title System -->
7
-
8
- <!-- Page Title Bar -->
9
- <section class="content-header">
10
- <!-- Page Title and BreadCrumb -->
11
- <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
12
- <ol class="breadcrumb">
13
- <li><%= yield(:phc_breadcrumb_one) %></li>
14
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
15
- </ol>
16
- <!-- Page Title and BreadCrumb -->
17
- </section>
18
- <!-- Page Title Bar -->
19
-
20
- <!-- Main Content -->
21
- <section class="content">
22
- <div class="row">
23
- <div class="col-lg-12">
24
- <div class="box">
25
- <div class="box-header with-border">
26
- <h3 class="box-title"><%= yield(:phc_title) %></h3>
27
- </div>
28
- <div class="box-body">
29
-
30
- <!-- Page Form (Edit) -->
31
- <%= render 'form', member_profile: @member_profile %>
32
- <!-- Page Form (Edit) -->
33
-
34
- </div>
35
- </div>
36
- </div>
37
- </div>
38
- </section>
39
- <!-- Main Content -->
1
+ <!-- Title System -->
2
+ <% phc_title "Members Manager" %>
3
+ <% phc_title_tagline "Update Member Information for " + @member_profile.mfirstname + " " + @member_profile.mlastname %>
4
+ <% phc_breadcrumb_one link_to "Dashboard", phcmembers.modules_dashboards_index_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- Title System -->
7
+
8
+ <!-- Page Title Bar -->
9
+ <section class="content-header">
10
+ <!-- Page Title and BreadCrumb -->
11
+ <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
12
+ <ol class="breadcrumb">
13
+ <li><%= yield(:phc_breadcrumb_one) %></li>
14
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
15
+ </ol>
16
+ <!-- Page Title and BreadCrumb -->
17
+ </section>
18
+ <!-- Page Title Bar -->
19
+
20
+ <!-- Main Content -->
21
+ <section class="content">
22
+ <div class="row">
23
+ <div class="col-lg-12">
24
+ <div class="box">
25
+ <div class="box-header with-border">
26
+ <h3 class="box-title"><%= yield(:phc_title) %></h3>
27
+ </div>
28
+ <div class="box-body">
29
+
30
+ <!-- Page Form (Edit) -->
31
+ <%= render 'form', member_profile: @member_profile %>
32
+ <!-- Page Form (Edit) -->
33
+
34
+ </div>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </section>
39
+ <!-- Main Content -->
@@ -1,68 +1,68 @@
1
- <!-- Title System -->
2
- <% phc_title "Members Manager" %>
3
- <% phc_title_tagline "Members List" %>
4
- <% phc_breadcrumb_one link_to "Dashboard", phcmembers.modules_dashboards_index_path %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- Title System -->
7
-
8
- <!-- Page Title Bar -->
9
- <section class="content-header">
10
- <!-- Page Title and BreadCrumb -->
11
- <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
12
- <ol class="breadcrumb">
13
- <li><%= yield(:phc_breadcrumb_one) %></li>
14
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
15
- </ol>
16
- <!-- Page Title and BreadCrumb -->
17
- </section>
18
- <!-- Page Title Bar -->
19
-
20
- <!-- Main Content -->
21
- <section class="content">
22
- <div class="row">
23
- <div class="col-lg-12">
24
- <div class="box">
25
- <div class="box-header with-border">
26
- <h3 class="box-title"><%= yield(:phc_title) %></h3>
27
- </div>
28
- <div class="box-body">
29
-
30
- <!-- Index Table -->
31
- <div class="table-responsive">
32
- <table class="table table-bordered table-striped table-hover">
33
- <thead>
34
- <tr>
35
- <th>First Name</th>
36
- <th>Last Name</th>
37
- <th>Email</th>
38
- <th>Phone</th>
39
- </tr>
40
- </thead>
41
- <tbody>
42
- <% @member_profiles.each do |member_profile| %>
43
- <tr>
44
- <td class="highlight"><%= link_to member_profile.mfirstname, member_profile %></td>
45
- <td class="highlight"><%= link_to member_profile.mlastname, member_profile %></td>
46
- <td class="highlight"><%= link_to member_profile.memail, member_profile %></td>
47
- <td class="highlight"><%= link_to member_profile.mphone, member_profile %></td>
48
- </tr>
49
- <% end %>
50
- </tbody>
51
- </table>
52
- </div>
53
- <!-- Index Table -->
54
-
55
- <!-- Panel Footer -->
56
- <div class="box-footer clearfix">
57
- <%= link_to new_member_profile_path, class: "btn btn-primary" do %>
58
- <i class="fa fa-plus"></i> Create a New Member
59
- <% end %>
60
- </div>
61
- <!-- Panel Footer -->
62
-
63
- </div>
64
- </div>
65
- </div>
66
- </div>
67
- </section>
68
- <!-- Main Content -->
1
+ <!-- Title System -->
2
+ <% phc_title "Members Manager" %>
3
+ <% phc_title_tagline "Members List" %>
4
+ <% phc_breadcrumb_one link_to "Dashboard", phcmembers.modules_dashboards_index_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- Title System -->
7
+
8
+ <!-- Page Title Bar -->
9
+ <section class="content-header">
10
+ <!-- Page Title and BreadCrumb -->
11
+ <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
12
+ <ol class="breadcrumb">
13
+ <li><%= yield(:phc_breadcrumb_one) %></li>
14
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
15
+ </ol>
16
+ <!-- Page Title and BreadCrumb -->
17
+ </section>
18
+ <!-- Page Title Bar -->
19
+
20
+ <!-- Main Content -->
21
+ <section class="content">
22
+ <div class="row">
23
+ <div class="col-lg-12">
24
+ <div class="box">
25
+ <div class="box-header with-border">
26
+ <h3 class="box-title"><%= yield(:phc_title) %></h3>
27
+ </div>
28
+ <div class="box-body">
29
+
30
+ <!-- Index Table -->
31
+ <div class="table-responsive">
32
+ <table class="table table-bordered table-striped table-hover">
33
+ <thead>
34
+ <tr>
35
+ <th>First Name</th>
36
+ <th>Last Name</th>
37
+ <th>Email</th>
38
+ <th>Phone</th>
39
+ </tr>
40
+ </thead>
41
+ <tbody>
42
+ <% @member_profiles.each do |member_profile| %>
43
+ <tr>
44
+ <td class="highlight"><%= link_to member_profile.mfirstname, member_profile %></td>
45
+ <td class="highlight"><%= link_to member_profile.mlastname, member_profile %></td>
46
+ <td class="highlight"><%= link_to member_profile.memail, member_profile %></td>
47
+ <td class="highlight"><%= link_to member_profile.mphone, member_profile %></td>
48
+ </tr>
49
+ <% end %>
50
+ </tbody>
51
+ </table>
52
+ </div>
53
+ <!-- Index Table -->
54
+
55
+ <!-- Panel Footer -->
56
+ <div class="box-footer clearfix">
57
+ <%= link_to new_member_profile_path, class: "btn btn-primary" do %>
58
+ <i class="fa fa-plus"></i> Create a New Member
59
+ <% end %>
60
+ </div>
61
+ <!-- Panel Footer -->
62
+
63
+ </div>
64
+ </div>
65
+ </div>
66
+ </div>
67
+ </section>
68
+ <!-- Main Content -->
@@ -1,39 +1,39 @@
1
- <!-- Title System -->
2
- <% phc_title "Members Manager" %>
3
- <% phc_title_tagline "Create a New Member" %>
4
- <% phc_breadcrumb_one link_to "Dashboard", phcmembers.modules_dashboards_index_path %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- Title System -->
7
-
8
- <!-- Page Title Bar -->
9
- <section class="content-header">
10
- <!-- Page Title and BreadCrumb -->
11
- <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
12
- <ol class="breadcrumb">
13
- <li><%= yield(:phc_breadcrumb_one) %></li>
14
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
15
- </ol>
16
- <!-- Page Title and BreadCrumb -->
17
- </section>
18
- <!-- Page Title Bar -->
19
-
20
- <!-- Main Content -->
21
- <section class="content">
22
- <div class="row">
23
- <div class="col-lg-12">
24
- <div class="box">
25
- <div class="box-header with-border">
26
- <h3 class="box-title"><%= yield(:phc_title) %></h3>
27
- </div>
28
- <div class="box-body">
29
-
30
- <!-- Page Form (New) -->
31
- <%= render 'form', member_profile: @member_profile %>
32
- <!-- Page Form (New) -->
33
-
34
- </div>
35
- </div>
36
- </div>
37
- </div>
38
- </section>
39
- <!-- Main Content -->
1
+ <!-- Title System -->
2
+ <% phc_title "Members Manager" %>
3
+ <% phc_title_tagline "Create a New Member" %>
4
+ <% phc_breadcrumb_one link_to "Dashboard", phcmembers.modules_dashboards_index_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- Title System -->
7
+
8
+ <!-- Page Title Bar -->
9
+ <section class="content-header">
10
+ <!-- Page Title and BreadCrumb -->
11
+ <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
12
+ <ol class="breadcrumb">
13
+ <li><%= yield(:phc_breadcrumb_one) %></li>
14
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
15
+ </ol>
16
+ <!-- Page Title and BreadCrumb -->
17
+ </section>
18
+ <!-- Page Title Bar -->
19
+
20
+ <!-- Main Content -->
21
+ <section class="content">
22
+ <div class="row">
23
+ <div class="col-lg-12">
24
+ <div class="box">
25
+ <div class="box-header with-border">
26
+ <h3 class="box-title"><%= yield(:phc_title) %></h3>
27
+ </div>
28
+ <div class="box-body">
29
+
30
+ <!-- Page Form (New) -->
31
+ <%= render 'form', member_profile: @member_profile %>
32
+ <!-- Page Form (New) -->
33
+
34
+ </div>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </section>
39
+ <!-- Main Content -->
@@ -1,31 +1,31 @@
1
- <!-- Title System -->
2
- <% phc_title "Members Manager" %>
3
- <% phc_title_tagline "Create a New Member" %>
4
- <% phc_breadcrumb_one link_to "Dashboard", phcmembers.modules_dashboards_index_path %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- Title System -->
7
-
8
- <!-- Page Title Bar -->
9
- <section class="content-header">
10
- <!-- Page Title and BreadCrumb -->
11
- <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
12
- <ol class="breadcrumb">
13
- <li><%= yield(:phc_breadcrumb_one) %></li>
14
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
15
- </ol>
16
- <!-- Page Title and BreadCrumb -->
17
- </section>
18
- <!-- Page Title Bar -->
19
-
20
- <!-- Main Content -->
21
- <section class="content">
22
- <div class="row">
23
- <div class="col-md-3">
24
- <%= render 'phcmembers/member/profiles/components/profile_sidebar' %>
25
- </div>
26
- <div class="col-md-9">
27
- <%= render 'phcmembers/member/profiles/components/profile_main' %>
28
- </div>
29
- </div>
30
- </section>
31
- <!-- Main Content -->
1
+ <!-- Title System -->
2
+ <% phc_title "Members Manager" %>
3
+ <% phc_title_tagline "Create a New Member" %>
4
+ <% phc_breadcrumb_one link_to "Dashboard", phcmembers.modules_dashboards_index_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- Title System -->
7
+
8
+ <!-- Page Title Bar -->
9
+ <section class="content-header">
10
+ <!-- Page Title and BreadCrumb -->
11
+ <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
12
+ <ol class="breadcrumb">
13
+ <li><%= yield(:phc_breadcrumb_one) %></li>
14
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
15
+ </ol>
16
+ <!-- Page Title and BreadCrumb -->
17
+ </section>
18
+ <!-- Page Title Bar -->
19
+
20
+ <!-- Main Content -->
21
+ <section class="content">
22
+ <div class="row">
23
+ <div class="col-md-3">
24
+ <%= render 'phcmembers/member/profiles/components/profile_sidebar' %>
25
+ </div>
26
+ <div class="col-md-9">
27
+ <%= render 'phcmembers/member/profiles/components/profile_main' %>
28
+ </div>
29
+ </div>
30
+ </section>
31
+ <!-- Main Content -->
@@ -1,66 +1,66 @@
1
- <!-- Title Variables -->
2
- <% phc_title "Membership Dashboard" %>
3
- <% phc_title_tagline "YOur Membership Stats" %>
4
- <% phc_breadcrumb_one link_to "Dashboard", phcmembers.modules_dashboards_index_path %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
- <!-- Title System -->
7
-
8
- <!-- Page Title Bar -->
9
- <section class="content-header">
10
- <!-- Page Title and BreadCrumb -->
11
- <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
12
- <ol class="breadcrumb">
13
- <li><%= yield(:phc_breadcrumb_one) %></li>
14
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
15
- </ol>
16
- <!-- Page Title and BreadCrumb -->
17
- </section>
18
- <!-- Page Title Bar -->
19
-
20
- <!-- Main Content -->
21
- <section class="content">
22
- <div class="row">
23
-
24
- <div class="col-md-3 col-sm-6 col-xs-12">
25
- <div class="info-box">
26
- <span class="info-box-icon bg-aqua"><i class="ion ion-ios-gear-outline"></i></span>
27
- <div class="info-box-content">
28
- <span class="info-box-text"> <%= "Member".pluralize(2) %></span>
29
- <span class="info-box-number"><%= @member_profile.count(:all) %></span>
30
- </div>
31
- </div>
32
- </div>
33
-
34
- <div class="col-md-3 col-sm-6 col-xs-12">
35
- <div class="info-box">
36
- <span class="info-box-icon bg-aqua"><i class="ion ion-ios-gear-outline"></i></span>
37
- <div class="info-box-content">
38
- <span class="info-box-text"><%= "Listing".pluralize(2) %></span>
39
- <span class="info-box-number"><%= @member_listing.count(:all) %></span>
40
- </div>
41
- </div>
42
- </div>
43
-
44
- <div class="col-md-3 col-sm-6 col-xs-12">
45
- <div class="info-box">
46
- <span class="info-box-icon bg-aqua"><i class="ion ion-ios-gear-outline"></i></span>
47
- <div class="info-box-content">
48
- <span class="info-box-text"><%= "Address".pluralize(2) %></span>
49
- <span class="info-box-number"><%= @member_address.count(:all) %><</span>
50
- </div>
51
- </div>
52
- </div>
53
-
54
- <div class="col-md-3 col-sm-6 col-xs-12">
55
- <div class="info-box">
56
- <span class="info-box-icon bg-aqua"><i class="ion ion-ios-gear-outline"></i></span>
57
- <div class="info-box-content">
58
- <span class="info-box-text"><%= "Category".pluralize(2) %></span>
59
- <span class="info-box-number"><%= @directory_category.count(:all) %></span>
60
- </div>
61
- </div>
62
- </div>
63
-
64
- </div>
65
- </section>
66
- <!-- Main Content -->
1
+ <!-- Title Variables -->
2
+ <% phc_title "Membership Dashboard" %>
3
+ <% phc_title_tagline "YOur Membership Stats" %>
4
+ <% phc_breadcrumb_one link_to "Dashboard", phcmembers.modules_dashboards_index_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- Title System -->
7
+
8
+ <!-- Page Title Bar -->
9
+ <section class="content-header">
10
+ <!-- Page Title and BreadCrumb -->
11
+ <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
12
+ <ol class="breadcrumb">
13
+ <li><%= yield(:phc_breadcrumb_one) %></li>
14
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
15
+ </ol>
16
+ <!-- Page Title and BreadCrumb -->
17
+ </section>
18
+ <!-- Page Title Bar -->
19
+
20
+ <!-- Main Content -->
21
+ <section class="content">
22
+ <div class="row">
23
+
24
+ <div class="col-md-3 col-sm-6 col-xs-12">
25
+ <div class="info-box">
26
+ <span class="info-box-icon bg-aqua"><i class="ion ion-ios-gear-outline"></i></span>
27
+ <div class="info-box-content">
28
+ <span class="info-box-text"> <%= "Member".pluralize(2) %></span>
29
+ <span class="info-box-number"><%= @member_profile.count(:all) %></span>
30
+ </div>
31
+ </div>
32
+ </div>
33
+
34
+ <div class="col-md-3 col-sm-6 col-xs-12">
35
+ <div class="info-box">
36
+ <span class="info-box-icon bg-aqua"><i class="ion ion-ios-gear-outline"></i></span>
37
+ <div class="info-box-content">
38
+ <span class="info-box-text"><%= "Listing".pluralize(2) %></span>
39
+ <span class="info-box-number"><%= @member_listing.count(:all) %></span>
40
+ </div>
41
+ </div>
42
+ </div>
43
+
44
+ <div class="col-md-3 col-sm-6 col-xs-12">
45
+ <div class="info-box">
46
+ <span class="info-box-icon bg-aqua"><i class="ion ion-ios-gear-outline"></i></span>
47
+ <div class="info-box-content">
48
+ <span class="info-box-text"><%= "Address".pluralize(2) %></span>
49
+ <span class="info-box-number"><%= @member_address.count(:all) %><</span>
50
+ </div>
51
+ </div>
52
+ </div>
53
+
54
+ <div class="col-md-3 col-sm-6 col-xs-12">
55
+ <div class="info-box">
56
+ <span class="info-box-icon bg-aqua"><i class="ion ion-ios-gear-outline"></i></span>
57
+ <div class="info-box-content">
58
+ <span class="info-box-text"><%= "Category".pluralize(2) %></span>
59
+ <span class="info-box-number"><%= @directory_category.count(:all) %></span>
60
+ </div>
61
+ </div>
62
+ </div>
63
+
64
+ </div>
65
+ </section>
66
+ <!-- Main Content -->