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,4 +1,4 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <%= link_to 'Edit', edit_directory_categorylisting_path(@directory_categorylisting) %> |
4
- <%= link_to 'Back', directory_categorylistings_path %>
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <%= link_to 'Edit', edit_directory_categorylisting_path(@directory_categorylisting) %> |
4
+ <%= link_to 'Back', directory_categorylistings_path %>
@@ -1,44 +1,44 @@
1
- <%= form_for([@member_address.profile, @member_address], url: form_url) do |f| %>
2
-
3
- <!-- PHC-Notifi Render Validation -->
4
- <%= render 'phcnotifi/validations', :object => @member_address %>
5
- <!-- PHC-Notifi Render Validation -->
6
-
7
- <!-- Form Fields -->
8
- <div class="form-group field_with_errors">
9
- <label><%= f.label :mcaddressl1, "Address Line1" %></label>
10
- <%= f.text_field :mcaddressl1, class: "form-control", placeholder: "Address Line 1 - Street Address" %>
11
- </div>
12
- <div class="form-group field_with_errors">
13
- <label><%= f.label :mcaddressl2, "Address Line2" %></label>
14
- <%= f.text_field :mcaddressl2, class: "form-control", placeholder: "Address Line 2 - Box - Suite - Floor" %>
15
- </div>
16
- <div class="form-group field_with_errors">
17
- <label><%= f.label :mccity, "City" %></label>
18
- <%= f.text_field :mccity, class: "form-control", placeholder: "City" %>
19
- </div>
20
- <div class="form-group field_with_errors">
21
- <label><%= f.label :mcprovince, "Province/State" %></label>
22
- <%= f.text_field :mcprovince, class: "form-control", placeholder: "Province/State" %>
23
- </div>
24
- <div class="form-group field_with_errors">
25
- <label><%= f.label :mccountry, "Country" %></label>
26
- <%= country_select("member_address", "mccountry", { priority_countries: ["CA", "GB", "FR", "US"], selected: "CA" }, { class: 'form-control', data: { attribute: "value" } }) %>
27
- </div>
28
- <div class="form-group field_with_errors">
29
- <label><%= f.label :mcpostalcode, "PostalCode" %></label>
30
- <%= f.text_field :mcpostalcode, class: "form-control", placeholder: "PostalCode" %>
31
- </div>
32
- <div class="form-group field_with_errors">
33
- <label><%= f.label :mctype, "Address Type" %></label>
34
- <%= f.select :mctype, [['Billing Address','Billing'],['Street Address','Street'],['Mailing Address','Mailing'],['Home Address','Home'],['Business Address','Business']], {}, class: "form-control" %>
35
- </div>
36
- <!-- Form Fields -->
37
-
38
- <!-- Form Button -->
39
- <div class="actions">
40
- <%= f.submit class: "btn btn-primary" %>
41
- </div>
42
- <!-- Form Button -->
43
-
44
- <% end %>
1
+ <%= form_for([@member_address.profile, @member_address], url: form_url) do |f| %>
2
+
3
+ <!-- PHC-Notifi Render Validation -->
4
+ <%= render 'phcnotifi/validations', :object => @member_address %>
5
+ <!-- PHC-Notifi Render Validation -->
6
+
7
+ <!-- Form Fields -->
8
+ <div class="form-group field_with_errors">
9
+ <label><%= f.label :mcaddressl1, "Address Line1" %></label>
10
+ <%= f.text_field :mcaddressl1, class: "form-control", placeholder: "Address Line 1 - Street Address" %>
11
+ </div>
12
+ <div class="form-group field_with_errors">
13
+ <label><%= f.label :mcaddressl2, "Address Line2" %></label>
14
+ <%= f.text_field :mcaddressl2, class: "form-control", placeholder: "Address Line 2 - Box - Suite - Floor" %>
15
+ </div>
16
+ <div class="form-group field_with_errors">
17
+ <label><%= f.label :mccity, "City" %></label>
18
+ <%= f.text_field :mccity, class: "form-control", placeholder: "City" %>
19
+ </div>
20
+ <div class="form-group field_with_errors">
21
+ <label><%= f.label :mcprovince, "Province/State" %></label>
22
+ <%= f.text_field :mcprovince, class: "form-control", placeholder: "Province/State" %>
23
+ </div>
24
+ <div class="form-group field_with_errors">
25
+ <label><%= f.label :mccountry, "Country" %></label>
26
+ <%= country_select("member_address", "mccountry", { priority_countries: ["CA", "GB", "FR", "US"], selected: "CA" }, { class: 'form-control', data: { attribute: "value" } }) %>
27
+ </div>
28
+ <div class="form-group field_with_errors">
29
+ <label><%= f.label :mcpostalcode, "PostalCode" %></label>
30
+ <%= f.text_field :mcpostalcode, class: "form-control", placeholder: "PostalCode" %>
31
+ </div>
32
+ <div class="form-group field_with_errors">
33
+ <label><%= f.label :mctype, "Address Type" %></label>
34
+ <%= f.select :mctype, [['Billing Address','Billing'],['Street Address','Street'],['Mailing Address','Mailing'],['Home Address','Home'],['Business Address','Business']], {}, class: "form-control" %>
35
+ </div>
36
+ <!-- Form Fields -->
37
+
38
+ <!-- Form Button -->
39
+ <div class="actions">
40
+ <%= f.submit class: "btn btn-primary" %>
41
+ </div>
42
+ <!-- Form Button -->
43
+
44
+ <% end %>
@@ -1,29 +1,29 @@
1
- <p>
2
- <strong>Address Line 1:</strong>
3
- <%= @member_address.mcaddressl1 %>
4
- </p>
5
-
6
- <p>
7
- <strong>Address Line 2:</strong>
8
- <%= @member_address.mcaddressl2 %>
9
- </p>
10
-
11
- <p>
12
- <strong>City:</strong>
13
- <%= @member_address.mccity %>
14
- </p>
15
-
16
- <p>
17
- <strong>Province:</strong>
18
- <%= @member_address.mcprovince %>
19
- </p>
20
-
21
- <p>
22
- <strong>Country:</strong>
23
- <%= @member_address.mccountry %>
24
- </p>
25
-
26
- <p>
27
- <strong>PostalCode:</strong>
28
- <%= @member_address.mcpostalcode %>
29
- </p>
1
+ <p>
2
+ <strong>Address Line 1:</strong>
3
+ <%= @member_address.mcaddressl1 %>
4
+ </p>
5
+
6
+ <p>
7
+ <strong>Address Line 2:</strong>
8
+ <%= @member_address.mcaddressl2 %>
9
+ </p>
10
+
11
+ <p>
12
+ <strong>City:</strong>
13
+ <%= @member_address.mccity %>
14
+ </p>
15
+
16
+ <p>
17
+ <strong>Province:</strong>
18
+ <%= @member_address.mcprovince %>
19
+ </p>
20
+
21
+ <p>
22
+ <strong>Country:</strong>
23
+ <%= @member_address.mccountry %>
24
+ </p>
25
+
26
+ <p>
27
+ <strong>PostalCode:</strong>
28
+ <%= @member_address.mcpostalcode %>
29
+ </p>
@@ -1,12 +1,12 @@
1
- <div class="scroller" style="height: 320px;" data-always-visible="1" data-rail-visible1="0" data-handle-color="#D7DCE2">
2
- <ul class="list-group feeds">
3
- <% @versions.each do |version| %>
4
- <li class="list-group-item">
5
- <i class="fa fa-bell-o fa-fw"></i>
6
- <strong>EVENT #<%= version.id %></strong> -
7
- <i> <%= l(version.created_at, format: "%-d/%m/%Y") %> </i> -
8
- <%= version.event.capitalize %> - Profile <%= l(version.created_at, format: "%H:%M %Z") %>
9
- </li>
10
- <% end %>
11
- </ul>
12
- </div>
1
+ <div class="scroller" style="height: 320px;" data-always-visible="1" data-rail-visible1="0" data-handle-color="#D7DCE2">
2
+ <ul class="list-group feeds">
3
+ <% @versions.each do |version| %>
4
+ <li class="list-group-item">
5
+ <i class="fa fa-bell-o fa-fw"></i>
6
+ <strong>EVENT #<%= version.id %></strong> -
7
+ <i> <%= l(version.created_at, format: "%-d/%m/%Y") %> </i> -
8
+ <%= version.event.capitalize %> - Profile <%= l(version.created_at, format: "%H:%M %Z") %>
9
+ </li>
10
+ <% end %>
11
+ </ul>
12
+ </div>
@@ -1,31 +1,31 @@
1
- <div class="col-md-6">
2
-
3
- <div class="panel panel-default">
4
-
5
- <div class="panel-heading">
6
- <%= @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname %>
7
- </div>
8
-
9
- <div class="panel-body">
10
- <%= render 'phcmembers/member/addresses/components/address_address' %>
11
- </div>
12
-
13
- </div>
14
-
15
- </div>
16
-
17
- <div class="col-md-6">
18
-
19
- <div class="panel panel-default">
20
-
21
- <div class="panel-heading">
22
- <%= @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname %> Address Change Logs
23
- </div>
24
-
25
- <div class="panel-body">
26
- <%= render 'phcmembers/member/addresses/components/address_audits' %>
27
- </div>
28
-
29
- </div>
30
-
31
- </div>
1
+ <div class="col-md-6">
2
+
3
+ <div class="panel panel-default">
4
+
5
+ <div class="panel-heading">
6
+ <%= @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname %>
7
+ </div>
8
+
9
+ <div class="panel-body">
10
+ <%= render 'phcmembers/member/addresses/components/address_address' %>
11
+ </div>
12
+
13
+ </div>
14
+
15
+ </div>
16
+
17
+ <div class="col-md-6">
18
+
19
+ <div class="panel panel-default">
20
+
21
+ <div class="panel-heading">
22
+ <%= @members_profile_info.mfirstname + ' ' + @members_profile_info.mlastname %> Address Change Logs
23
+ </div>
24
+
25
+ <div class="panel-body">
26
+ <%= render 'phcmembers/member/addresses/components/address_audits' %>
27
+ </div>
28
+
29
+ </div>
30
+
31
+ </div>
@@ -1,40 +1,40 @@
1
- <!-- Title Variables -->
2
- <% phc_title "Member Address Manager" %>
3
- <% phc_title_tagline "Update Address for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %>
4
- <% phc_breadcrumb_one link_to "Dashboard", phcmembers.modules_dashboards_index_path %>
5
- <% phc_breadcrumb_two link_to "Members List", phcmembers.member_profiles_path %>
6
- <% phc_breadcrumb_three yield(:phc_title_tagline) %>
7
- <!-- Title System -->
8
-
9
- <!-- Page Title Bar -->
10
- <section class="content-header">
11
- <!-- Page Title and BreadCrumb -->
12
- <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
13
- <ol class="breadcrumb">
14
- <li><%= yield(:phc_breadcrumb_one) %></li>
15
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
16
- </ol>
17
- <!-- Page Title and BreadCrumb -->
18
- </section>
19
- <!-- Page Title Bar -->
20
-
21
- <!-- Main Content -->
22
- <section class="content">
23
- <div class="row">
24
- <div class="col-lg-12">
25
- <div class="box">
26
- <div class="box-header with-border">
27
- <h3 class="box-title"><%= yield(:phc_title) %></h3>
28
- </div>
29
- <div class="box-body">
30
-
31
- <!-- Page Form (Edit) -->
32
- <%= render 'form', { form_url: member_profile_address_path } %>
33
- <!-- Page Form (Edit) -->
34
-
35
- </div>
36
- </div>
37
- </div>
38
- </div>
39
- </section>
40
- <!-- Main Content -->
1
+ <!-- Title Variables -->
2
+ <% phc_title "Member Address Manager" %>
3
+ <% phc_title_tagline "Update Address for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %>
4
+ <% phc_breadcrumb_one link_to "Dashboard", phcmembers.modules_dashboards_index_path %>
5
+ <% phc_breadcrumb_two link_to "Members List", phcmembers.member_profiles_path %>
6
+ <% phc_breadcrumb_three yield(:phc_title_tagline) %>
7
+ <!-- Title System -->
8
+
9
+ <!-- Page Title Bar -->
10
+ <section class="content-header">
11
+ <!-- Page Title and BreadCrumb -->
12
+ <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
13
+ <ol class="breadcrumb">
14
+ <li><%= yield(:phc_breadcrumb_one) %></li>
15
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
16
+ </ol>
17
+ <!-- Page Title and BreadCrumb -->
18
+ </section>
19
+ <!-- Page Title Bar -->
20
+
21
+ <!-- Main Content -->
22
+ <section class="content">
23
+ <div class="row">
24
+ <div class="col-lg-12">
25
+ <div class="box">
26
+ <div class="box-header with-border">
27
+ <h3 class="box-title"><%= yield(:phc_title) %></h3>
28
+ </div>
29
+ <div class="box-body">
30
+
31
+ <!-- Page Form (Edit) -->
32
+ <%= render 'form', { form_url: member_profile_address_path } %>
33
+ <!-- Page Form (Edit) -->
34
+
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ </section>
40
+ <!-- Main Content -->
@@ -1,74 +1,74 @@
1
- <!-- Title Variables -->
2
- <% phc_title "Member Address Manager" %>
3
- <% phc_title_tagline "Address Index for " + @members_profile_info.mfirstname + " " + @members_profile_info.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
- <!-- Index Table -->
31
- <div class="table-responsive">
32
- <table class="table table-bordered table-striped table-hover">
33
- <thead>
34
- <tr>
35
- <th>Address Line 1</th>
36
- <th>Address Line 2</th>
37
- <th>City</th>
38
- <th>Province</th>
39
- <th>Country</th>
40
- <th>PostalCode</th>
41
- <th>Type</th>
42
- </tr>
43
- </thead>
44
- <tbody>
45
- <% @member_addresses.each do |member_address| %>
46
- <tr>
47
- <td class="highlight"><%= link_to member_address.mcaddressl1, member_profile_address_path(member_address.profile, member_address) %></td>
48
- <td class="highlight"><%= link_to member_address.mcaddressl2, member_profile_address_path(member_address.profile, member_address) %></td>
49
- <td class="highlight"><%= link_to member_address.mccity, member_profile_address_path(member_address.profile, member_address) %></td>
50
- <td class="highlight"><%= link_to member_address.mcprovince, member_profile_address_path(member_address.profile, member_address) %></td>
51
- <td class="highlight"><%= link_to member_address.mccountry, member_profile_address_path(member_address.profile, member_address) %></td>
52
- <td class="highlight"><%= link_to member_address.mcpostalcode, member_profile_address_path(member_address.profile, member_address) %></td>
53
- <td class="highlight"><%= link_to member_address.mctype, member_profile_address_path(member_address.profile, member_address) %></td>
54
- </tr>
55
- <% end %>
56
- </tbody>
57
- </table>
58
- </div>
59
- <!-- Index Table -->
60
-
61
- <!-- Panel Footer -->
62
- <div class="box-footer clearfix">
63
- <%= link_to new_member_profile_address_path, class: "btn btn-primary" do %>
64
- <i class="fa fa-plus"></i> <%= "Add a New Address for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %>
65
- <% end %>
66
- </div>
67
- <!-- Panel Footer -->
68
-
69
- </div>
70
- </div>
71
- </div>
72
- </div>
73
- </section>
74
- <!-- Main Content -->
1
+ <!-- Title Variables -->
2
+ <% phc_title "Member Address Manager" %>
3
+ <% phc_title_tagline "Address Index for " + @members_profile_info.mfirstname + " " + @members_profile_info.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
+ <!-- Index Table -->
31
+ <div class="table-responsive">
32
+ <table class="table table-bordered table-striped table-hover">
33
+ <thead>
34
+ <tr>
35
+ <th>Address Line 1</th>
36
+ <th>Address Line 2</th>
37
+ <th>City</th>
38
+ <th>Province</th>
39
+ <th>Country</th>
40
+ <th>PostalCode</th>
41
+ <th>Type</th>
42
+ </tr>
43
+ </thead>
44
+ <tbody>
45
+ <% @member_addresses.each do |member_address| %>
46
+ <tr>
47
+ <td class="highlight"><%= link_to member_address.mcaddressl1, member_profile_address_path(member_address.profile, member_address) %></td>
48
+ <td class="highlight"><%= link_to member_address.mcaddressl2, member_profile_address_path(member_address.profile, member_address) %></td>
49
+ <td class="highlight"><%= link_to member_address.mccity, member_profile_address_path(member_address.profile, member_address) %></td>
50
+ <td class="highlight"><%= link_to member_address.mcprovince, member_profile_address_path(member_address.profile, member_address) %></td>
51
+ <td class="highlight"><%= link_to member_address.mccountry, member_profile_address_path(member_address.profile, member_address) %></td>
52
+ <td class="highlight"><%= link_to member_address.mcpostalcode, member_profile_address_path(member_address.profile, member_address) %></td>
53
+ <td class="highlight"><%= link_to member_address.mctype, member_profile_address_path(member_address.profile, member_address) %></td>
54
+ </tr>
55
+ <% end %>
56
+ </tbody>
57
+ </table>
58
+ </div>
59
+ <!-- Index Table -->
60
+
61
+ <!-- Panel Footer -->
62
+ <div class="box-footer clearfix">
63
+ <%= link_to new_member_profile_address_path, class: "btn btn-primary" do %>
64
+ <i class="fa fa-plus"></i> <%= "Add a New Address for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %>
65
+ <% end %>
66
+ </div>
67
+ <!-- Panel Footer -->
68
+
69
+ </div>
70
+ </div>
71
+ </div>
72
+ </div>
73
+ </section>
74
+ <!-- Main Content -->