phcmembers 2.2.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +4 -4
  4. data/Rakefile +15 -5
  5. data/app/assets/config/phcmembers_manifest.js +2 -0
  6. data/app/assets/stylesheets/phcmembers/_custom.scss +0 -9
  7. data/app/assets/stylesheets/phcmembers/application.scss +23 -0
  8. data/app/controllers/phcmembers/api/directories_controller.rb +18 -0
  9. data/app/controllers/phcmembers/application_controller.rb +4 -1
  10. data/app/controllers/phcmembers/dashboard/mains_controller.rb +19 -0
  11. data/app/controllers/phcmembers/directory/categories_controller.rb +6 -4
  12. data/app/controllers/phcmembers/directory/listings_controller.rb +71 -0
  13. data/app/controllers/phcmembers/members/businesses_controller.rb +83 -0
  14. data/app/controllers/phcmembers/members/contacts_controller.rb +13 -17
  15. data/app/controllers/phcmembers/members/mains_controller.rb +10 -7
  16. data/app/helpers/phcmembers/application_helper.rb +0 -1
  17. data/app/jobs/phcmembers/application_job.rb +4 -0
  18. data/app/mailers/phcmembers/application_mailer.rb +6 -0
  19. data/app/models/phcmembers/api.rb +7 -0
  20. data/app/models/phcmembers/application_record.rb +5 -0
  21. data/app/models/phcmembers/directory.rb +0 -3
  22. data/app/models/phcmembers/directory/category.rb +6 -3
  23. data/app/models/phcmembers/directory/listing.rb +20 -0
  24. data/app/models/phcmembers/members.rb +0 -3
  25. data/app/models/phcmembers/members/business.rb +44 -0
  26. data/app/models/phcmembers/members/contact.rb +10 -9
  27. data/app/models/phcmembers/members/main.rb +4 -3
  28. data/app/views/layouts/phcmembers/application.html.erb +12 -8
  29. data/app/views/layouts/phcmembers/directory/directory_all.html.erb +12 -8
  30. data/app/views/layouts/phcmembers/members/members_all.html.erb +12 -8
  31. data/app/views/phcmembers/directory/categories/_form.html.erb +2 -1
  32. data/app/views/phcmembers/directory/categories/components/_category_audits.html.erb +25 -0
  33. data/app/views/phcmembers/directory/categories/components/_category_list.html.erb +7 -0
  34. data/app/views/phcmembers/directory/categories/components/_category_main.html.erb +24 -0
  35. data/app/views/phcmembers/directory/categories/edit.html.erb +30 -11
  36. data/app/views/phcmembers/directory/categories/index.html.erb +37 -37
  37. data/app/views/phcmembers/directory/categories/new.html.erb +28 -9
  38. data/app/views/phcmembers/directory/categories/show.html.erb +34 -0
  39. data/app/views/phcmembers/directory/listings/_form.html.erb +15 -0
  40. data/app/views/phcmembers/directory/listings/_formpatch.html.erb +15 -0
  41. data/app/views/phcmembers/directory/listings/components/_listing_audits.html.erb +25 -0
  42. data/app/views/phcmembers/directory/listings/components/_listing_list.html.erb +48 -0
  43. data/app/views/phcmembers/directory/listings/components/_listing_main.html.erb +21 -0
  44. data/app/views/phcmembers/directory/listings/edit.html.erb +45 -0
  45. data/app/views/phcmembers/directory/listings/index.html.erb +73 -0
  46. data/app/views/phcmembers/directory/listings/new.html.erb +45 -0
  47. data/app/views/phcmembers/directory/listings/show.html.erb +34 -0
  48. data/app/views/phcmembers/members/businesses/_form.html.erb +65 -0
  49. data/app/views/phcmembers/members/businesses/_formpatch.html.erb +65 -0
  50. data/app/views/phcmembers/members/businesses/components/_business_address.html.erb +48 -0
  51. data/app/views/phcmembers/members/businesses/components/_business_audits.html.erb +25 -0
  52. data/app/views/phcmembers/members/businesses/components/_business_main.html.erb +21 -0
  53. data/app/views/phcmembers/members/businesses/edit.html.erb +46 -0
  54. data/app/views/phcmembers/members/businesses/index.html.erb +76 -0
  55. data/app/views/phcmembers/members/businesses/new.html.erb +47 -0
  56. data/app/views/phcmembers/members/businesses/show.html.erb +35 -0
  57. data/app/views/phcmembers/members/contacts/_form.html.erb +14 -26
  58. data/app/views/phcmembers/members/contacts/_formpatch.html.erb +14 -26
  59. data/app/views/phcmembers/members/contacts/components/_contact_address.html.erb +29 -0
  60. data/app/views/phcmembers/members/contacts/components/_contact_audits.html.erb +25 -0
  61. data/app/views/phcmembers/members/contacts/components/_contact_main.html.erb +21 -0
  62. data/app/views/phcmembers/members/contacts/edit.html.erb +30 -11
  63. data/app/views/phcmembers/members/contacts/index.html.erb +57 -37
  64. data/app/views/phcmembers/members/contacts/new.html.erb +30 -11
  65. data/app/views/phcmembers/members/contacts/show.html.erb +35 -51
  66. data/app/views/phcmembers/members/mains/_form.html.erb +14 -15
  67. data/app/views/phcmembers/members/mains/components/_profile_main.html.erb +48 -0
  68. data/app/views/phcmembers/members/mains/components/_profile_sidebar.html.erb +67 -0
  69. data/app/views/phcmembers/members/mains/edit.html.erb +28 -9
  70. data/app/views/phcmembers/members/mains/index.html.erb +53 -43
  71. data/app/views/phcmembers/members/mains/new.html.erb +27 -8
  72. data/app/views/phcmembers/members/mains/show.html.erb +31 -53
  73. data/config/routes.rb +22 -10
  74. data/db/migrate/20160706184011_create_phcmembers_members_businesses.rb +27 -0
  75. data/db/migrate/{20160227194651_create_phcmembers_members_contacts.rb → 20160706184249_create_phcmembers_members_contacts.rb} +3 -6
  76. data/db/migrate/{20160227150117_create_phcmembers_members_mains.rb → 20160706184353_create_phcmembers_members_mains.rb} +8 -2
  77. data/db/migrate/20160706184527_create_phcmembers_directory_listings.rb +15 -0
  78. data/db/migrate/{20160227205022_create_phcmembers_directory_categories.rb → 20160706184708_create_phcmembers_directory_categories.rb} +4 -2
  79. data/db/migrate/20160707154842_create_versions.rb +80 -0
  80. data/lib/phcmembers/engine.rb +11 -8
  81. data/lib/phcmembers/version.rb +2 -2
  82. metadata +132 -155
  83. data/LICENSE +0 -238
  84. data/app/assets/stylesheets/adminlte_overrides.scss +0 -56
  85. data/app/assets/stylesheets/phcmembers/_variables.scss +0 -0
  86. data/app/assets/stylesheets/phcmembers/application.css.scss +0 -12
  87. data/app/assets/stylesheets/phcmembers/dashboard.scss +0 -3
  88. data/app/assets/stylesheets/scaffolds.scss +0 -73
  89. data/app/controllers/phcmembers/api/catsapi_controller.rb +0 -15
  90. data/app/controllers/phcmembers/api/listapi_controller.rb +0 -16
  91. data/app/controllers/phcmembers/dashboard/indices_controller.rb +0 -20
  92. data/app/controllers/phcmembers/directory/catlists_controller.rb +0 -98
  93. data/app/controllers/phcmembers/members/listings_controller.rb +0 -87
  94. data/app/helpers/nav_helper.rb +0 -29
  95. data/app/helpers/phcmembers/dashboard_helper.rb +0 -4
  96. data/app/helpers/phcmembers/directory/categories_helper.rb +0 -4
  97. data/app/helpers/phcmembers/directory/catlists_helper.rb +0 -4
  98. data/app/helpers/phcmembers/members/contacts_helper.rb +0 -4
  99. data/app/helpers/phcmembers/members/listings_helper.rb +0 -4
  100. data/app/helpers/phcmembers/members/mains_helper.rb +0 -4
  101. data/app/models/phcmembers/api/category.rb +0 -8
  102. data/app/models/phcmembers/api/catlist.rb +0 -9
  103. data/app/models/phcmembers/directory/catlist.rb +0 -17
  104. data/app/models/phcmembers/members/listing.rb +0 -42
  105. data/app/views/layouts/_application_header.html.erb +0 -133
  106. data/app/views/layouts/_application_sidebar.html.erb +0 -39
  107. data/app/views/layouts/application.html.erb +0 -19
  108. data/app/views/phcmembers/api/catsapi/index.json.rabl +0 -2
  109. data/app/views/phcmembers/api/listapi/index.json.rabl +0 -6
  110. data/app/views/phcmembers/dashboard/indices/index.html.erb +0 -51
  111. data/app/views/phcmembers/directory/catlists/_form.html.erb +0 -15
  112. data/app/views/phcmembers/directory/catlists/index.html.erb +0 -37
  113. data/app/views/phcmembers/directory/catlists/new.html.erb +0 -26
  114. data/app/views/phcmembers/members/listings/_form.html.erb +0 -54
  115. data/app/views/phcmembers/members/listings/_formpatch.html.erb +0 -54
  116. data/app/views/phcmembers/members/listings/edit.html.erb +0 -27
  117. data/app/views/phcmembers/members/listings/index.html.erb +0 -58
  118. data/app/views/phcmembers/members/listings/new.html.erb +0 -25
  119. data/app/views/phcmembers/members/listings/show.html.erb +0 -56
  120. data/db/migrate/20160227160416_create_phcmembers_members_listings.rb +0 -23
  121. data/db/migrate/20160227212144_create_phcmembers_directory_catlists.rb +0 -13
  122. data/lib/generators/phcmembers/views_generator.rb +0 -53
  123. data/lib/templates/erb/controller/view.html.erb +0 -9
  124. data/lib/templates/erb/scaffold/_form.html.erb +0 -30
  125. data/lib/templates/erb/scaffold/edit.html.erb +0 -15
  126. data/lib/templates/erb/scaffold/index.html.erb +0 -52
  127. data/lib/templates/erb/scaffold/new.html.erb +0 -13
  128. data/lib/templates/erb/scaffold/show.html.erb +0 -38
@@ -2,49 +2,37 @@
2
2
 
3
3
  <!-- PHC-Notifi Render Validation -->
4
4
  <%= render 'phcnotifi/validations', :object => @members_contact %>
5
-
6
- <div class="form-group field_with_errors">
7
- <label><%= f.label :mccontactname, "Contact Name*" %></label>
8
- <%= f.text_field :mccontactname, class: "form-control", placeholder: "Mailing Contact Name" %>
9
- </div>
10
- <div class="form-group field_with_errors">
11
- <label><%= f.label :mccompanyname, "Company Name" %></label>
12
- <%= f.text_field :mccompanyname, class: "form-control", placeholder: "Company Name" %>
13
- </div>
5
+
14
6
  <div class="form-group field_with_errors">
15
- <label><%= f.label :mcaddressl1, "Mailing Address Line1" %></label>
16
- <%= f.text_field :mcaddressl1, class: "form-control", placeholder: "Mailing Street Address" %>
7
+ <label><%= f.label :mcaddressl1, "Address Line1" %></label>
8
+ <%= f.text_field :mcaddressl1, class: "form-control", placeholder: "Address Line 1 - Street Address" %>
17
9
  </div>
18
10
  <div class="form-group field_with_errors">
19
- <label><%= f.label :mcaddressl2, "Mailing Address Line2" %></label>
20
- <%= f.text_field :mcaddressl2, class: "form-control", placeholder: "Mailing Address POBox" %>
11
+ <label><%= f.label :mcaddressl2, "Address Line2" %></label>
12
+ <%= f.text_field :mcaddressl2, class: "form-control", placeholder: "Address Line 2 - Box - Suite - Floor" %>
21
13
  </div>
22
14
  <div class="form-group field_with_errors">
23
15
  <label><%= f.label :mccity, "City" %></label>
24
- <%= f.text_field :mccity, class: "form-control", placeholder: "Mailing City" %>
16
+ <%= f.text_field :mccity, class: "form-control", placeholder: "City" %>
25
17
  </div>
26
18
  <div class="form-group field_with_errors">
27
- <label><%= f.label :mcprovince, "Province or State" %></label>
28
- <%= f.text_field :mcprovince, class: "form-control", placeholder: "Mailing Province or State" %>
19
+ <label><%= f.label :mcprovince, "Province/State" %></label>
20
+ <%= f.text_field :mcprovince, class: "form-control", placeholder: "Province/State" %>
29
21
  </div>
30
22
  <div class="form-group field_with_errors">
31
23
  <label><%= f.label :mccountry, "Country" %></label>
32
- <%= f.text_field :mccountry, class: "form-control", placeholder: "Mailing Country" %>
24
+ <%= country_select("members_contact", "mccountry", { priority_countries: ["CA", "GB", "FR", "US"], selected: "CA" }, { class: 'form-control', data: { attribute: "value" } }) %>
33
25
  </div>
34
26
  <div class="form-group field_with_errors">
35
27
  <label><%= f.label :mcpostalcode, "PostalCode" %></label>
36
- <%= f.text_field :mcpostalcode, class: "form-control", placeholder: "Mailing PostalCode" %>
37
- </div>
38
- <div class="form-group field_with_errors">
39
- <label><%= f.label :mcphone, "" %></label>
40
- <%= f.text_field :mcphone, class: "form-control", placeholder: "Contact Phone Number" %>
28
+ <%= f.text_field :mcpostalcode, class: "form-control", placeholder: "PostalCode" %>
41
29
  </div>
42
- <div class="form-group field_with_errors">
43
- <label><%= f.label :mcemail, "Email" %></label>
44
- <%= f.text_field :mcemail, class: "form-control", placeholder: "Contact Email" %>
30
+ <div class="form-group">
31
+ <label><%= f.label :mctype, "Address Type" %></label>
32
+ <%= f.select :mctype, [['Billing Address','Billing'],['Street Address','Street'],['Mailing Address','Mailing'],['Home Address','Home'],['Business Address','Business']], {}, class: "form-control" %>
45
33
  </div>
46
34
  <div class="actions">
47
- <%= f.submit "Submit", class: "btn btn-primary" %>
35
+ <%= f.submit "Submit", class: "btn blue-hoki" %>
48
36
  </div>
49
37
 
50
38
  <% end %>
@@ -2,49 +2,37 @@
2
2
 
3
3
  <!-- PHC-Notifi Render Validation -->
4
4
  <%= render 'phcnotifi/validations', :object => @members_contact %>
5
-
6
- <div class="form-group field_with_errors">
7
- <label><%= f.label :mccontactname, "Contact Name*" %></label>
8
- <%= f.text_field :mccontactname, class: "form-control", placeholder: "Mailing Contact Name" %>
9
- </div>
10
- <div class="form-group field_with_errors">
11
- <label><%= f.label :mccompanyname, "Company Name" %></label>
12
- <%= f.text_field :mccompanyname, class: "form-control", placeholder: "Company Name" %>
13
- </div>
5
+
14
6
  <div class="form-group field_with_errors">
15
- <label><%= f.label :mcaddressl1, "Mailing Address Line1" %></label>
16
- <%= f.text_field :mcaddressl1, class: "form-control", placeholder: "Mailing Street Address" %>
7
+ <label><%= f.label :mcaddressl1, "Address Line1" %></label>
8
+ <%= f.text_field :mcaddressl1, class: "form-control", placeholder: "Address Line 1 - Street Address" %>
17
9
  </div>
18
10
  <div class="form-group field_with_errors">
19
- <label><%= f.label :mcaddressl2, "Mailing Address Line2" %></label>
20
- <%= f.text_field :mcaddressl2, class: "form-control", placeholder: "Mailing Address POBox" %>
11
+ <label><%= f.label :mcaddressl2, "Address Line2" %></label>
12
+ <%= f.text_field :mcaddressl2, class: "form-control", placeholder: "Address Line 2 - Box - Suite - Floor" %>
21
13
  </div>
22
14
  <div class="form-group field_with_errors">
23
15
  <label><%= f.label :mccity, "City" %></label>
24
- <%= f.text_field :mccity, class: "form-control", placeholder: "Mailing City" %>
16
+ <%= f.text_field :mccity, class: "form-control", placeholder: "City" %>
25
17
  </div>
26
18
  <div class="form-group field_with_errors">
27
- <label><%= f.label :mcprovince, "Province or State" %></label>
28
- <%= f.text_field :mcprovince, class: "form-control", placeholder: "Mailing Province or State" %>
19
+ <label><%= f.label :mcprovince, "Province/State" %></label>
20
+ <%= f.text_field :mcprovince, class: "form-control", placeholder: "Province/State" %>
29
21
  </div>
30
22
  <div class="form-group field_with_errors">
31
23
  <label><%= f.label :mccountry, "Country" %></label>
32
- <%= f.text_field :mccountry, class: "form-control", placeholder: "Mailing Country" %>
24
+ <%= country_select("members_contact", "mccountry", { priority_countries: ["CA", "GB", "FR", "US"], selected: "CA" }, { class: 'form-control', data: { attribute: "value" } }) %>
33
25
  </div>
34
26
  <div class="form-group field_with_errors">
35
27
  <label><%= f.label :mcpostalcode, "PostalCode" %></label>
36
- <%= f.text_field :mcpostalcode, class: "form-control", placeholder: "Mailing PostalCode" %>
37
- </div>
38
- <div class="form-group field_with_errors">
39
- <label><%= f.label :mcphone, "Contact Phone" %></label>
40
- <%= f.text_field :mcphone, class: "form-control", placeholder: "Contact Phone Number" %>
28
+ <%= f.text_field :mcpostalcode, class: "form-control", placeholder: "PostalCode" %>
41
29
  </div>
42
- <div class="form-group field_with_errors">
43
- <label><%= f.label :mcemail, "Contact Email" %></label>
44
- <%= f.text_field :mcemail, class: "form-control", placeholder: "Contact Email" %>
30
+ <div class="form-group">
31
+ <label><%= f.label :mctype, "Address Type" %></label>
32
+ <%= f.select :mctype, [['Billing Address','Billing'],['Street Address','Street'],['Mailing Address','Mailing'],['Home Address','Home'],['Business Address','Business']], {}, class: "form-control" %>
45
33
  </div>
46
34
  <div class="actions">
47
- <%= f.submit "Submit", class: "btn btn-primary" %>
35
+ <%= f.submit "Submit", class: "btn blue-hoki" %>
48
36
  </div>
49
37
 
50
38
  <% end %>
@@ -0,0 +1,29 @@
1
+ <p>
2
+ <strong>Address Line 1:</strong>
3
+ <%= @members_contact.mcaddressl1 %>
4
+ </p>
5
+
6
+ <p>
7
+ <strong>Address Line 2:</strong>
8
+ <%= @members_contact.mcaddressl2 %>
9
+ </p>
10
+
11
+ <p>
12
+ <strong>City:</strong>
13
+ <%= @members_contact.mccity %>
14
+ </p>
15
+
16
+ <p>
17
+ <strong>Province:</strong>
18
+ <%= @members_contact.mcprovince %>
19
+ </p>
20
+
21
+ <p>
22
+ <strong>Country:</strong>
23
+ <%= @members_contact.mccountry %>
24
+ </p>
25
+
26
+ <p>
27
+ <strong>PostalCode:</strong>
28
+ <%= @members_contact.mcpostalcode %>
29
+ </p>
@@ -0,0 +1,25 @@
1
+ <div class="scroller" style="height: 320px;" data-always-visible="1" data-rail-visible1="0" data-handle-color="#D7DCE2">
2
+ <ul class="feeds">
3
+ <% @versions.each do |version| %>
4
+ <li>
5
+ <div class="col1">
6
+ <div class="cont">
7
+ <div class="cont-col1">
8
+ <div class="label label-sm label-success">
9
+ <i class="fa fa-bell-o"></i>
10
+ </div>
11
+ </div>
12
+ <div class="cont-col2">
13
+ <div class="desc">
14
+ <strong>LOG #<%= version.id %></strong> - <i> <%= l(version.created_at, format: "%-d/%m/%Y") %> </i> - <i> <%= l(version.created_at, format: "%-d/%m/%Y") %> </i> - <%= version.event.capitalize %> - <%= @members_main.mfirstname + ' ' + @members_main.mlastname %> - Address
15
+ </div>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ <div class="col2">
20
+ <div class="date"> <%= l(version.created_at, format: "%H:%M %Z") %> </div>
21
+ </div>
22
+ </li>
23
+ <% end %>
24
+ </ul>
25
+ </div>
@@ -0,0 +1,21 @@
1
+ <div class="col-md-6">
2
+ <div class="card">
3
+ <div class="card-header">
4
+ <%= @members_main.mfirstname + ' ' + @members_main.mlastname %> Address
5
+ </div>
6
+ <div class="card-block">
7
+ <%= render 'phcmembers/members/contacts/components/contact_address' %>
8
+ </div>
9
+ </div>
10
+ </div>
11
+
12
+ <div class="col-md-6">
13
+ <div class="card">
14
+ <div class="card-header">
15
+ <%= @members_main.mfirstname + ' ' + @members_main.mlastname %> Address Change Log
16
+ </div>
17
+ <div class="card-block">
18
+ <%= render 'phcmembers/members/contacts/components/contact_audits' %>
19
+ </div>
20
+ </div>
21
+ </div>
@@ -1,27 +1,46 @@
1
- <!-- Bread Crumbs -->
2
- <div class="row wrapper border-bottom white-bg page-heading">
1
+ <!-- Title System -->
2
+ <% phc_title "PHCMembers - Members Address Manager" %>
3
+ <% phc_title_tagline "Update Address Information for " + @members_main.mfirstname + " " + @members_main.mlastname %>
4
+
5
+ <!-- BreadCrumbs -->
6
+ <div class="row">
3
7
  <div class="col-lg-12">
4
- <h2>Member's Contact Information</h2>
8
+
9
+ <!-- Bread Crumb -->
5
10
  <ol class="breadcrumb">
6
- <li><%= link_to "Home", members_root_path %></li>
11
+ <li><%= link_to "Members Home", members_root_path %></li>
7
12
  <li><%= link_to "Members List", members_mains_path %></li>
8
- <li><%= link_to "Members Contact", members_main_contacts_path %></li>
9
- <li class="active">Edit Member's Private Address</li>
13
+ <li><%= link_to @members_main.mfirstname + " " + @members_main.mlastname + " Addresses", members_main_contacts_path %></li>
14
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
10
15
  </ol>
16
+
17
+ </div>
18
+ </div>
19
+
20
+ <!-- Page Title -->
21
+ <div class="row">
22
+ <div class="col-lg-12">
23
+
24
+ <h3 class="page-title">
25
+ <%= yield(:phc_title) %> </br>
26
+ <small><%= yield(:phc_title_tagline) %></small>
27
+ </h3>
28
+
11
29
  </div>
12
30
  </div>
13
31
 
14
32
  <!-- Main Content -->
15
33
  <div class="row">
16
34
  <div class="col-lg-12">
17
- <div class="panel panel-primary">
18
- <div class="panel-heading">
19
- Edit Member's Private Address
35
+
36
+ <div class="card">
37
+ <div class="card-header">
38
+ <%= yield(:phc_title_tagline) %>
20
39
  </div>
21
- <div class="panel-body">
22
- <%= render 'phcnotifi/notifications' %>
40
+ <div class="card-block">
23
41
  <%= render 'formpatch' %>
24
42
  </div>
25
43
  </div>
44
+
26
45
  </div>
27
46
  </div>
@@ -1,55 +1,75 @@
1
- <!-- Bread Crumbs -->
1
+ <!-- Title System -->
2
+ <% phc_title "PHCMembers - Members Address Manager" %>
3
+ <% phc_title_tagline "Address Index for " + @members_main.mfirstname + " " + @members_main.mlastname %>
4
+
5
+ <!-- BreadCrumbs -->
2
6
  <div class="row">
3
7
  <div class="col-lg-12">
4
- <h2>Member's Information</h2>
8
+
9
+ <!-- Bread Crumb -->
5
10
  <ol class="breadcrumb">
6
- <li><%= link_to "Home", members_root_path %></li>
11
+ <li><%= link_to "Members Home", members_root_path %></li>
7
12
  <li><%= link_to "Members List", members_mains_path %></li>
8
- <li class="active"><%= @members_main.mfirstname + ' ' + @members_main.mlastname %> Private Address Index</li>
13
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
9
14
  </ol>
15
+
16
+ </div>
17
+ </div>
18
+
19
+ <!-- Page Title -->
20
+ <div class="row">
21
+ <div class="col-lg-12">
22
+
23
+ <h3 class="page-title">
24
+ <%= yield(:phc_title) %> </br>
25
+ <small><%= yield(:phc_title_tagline) %></small>
26
+ </h3>
27
+
10
28
  </div>
11
29
  </div>
12
30
 
13
31
  <!-- Main Content -->
14
32
  <div class="row">
15
33
  <div class="col-lg-12">
16
- <div class="panel panel-primary">
17
- <div class="panel-heading">
18
- Member's Contact Index
34
+
35
+ <div class="card">
36
+ <div class="card-header">
37
+ <%= yield(:phc_title) %>
19
38
  </div>
20
- <div class="panel-body">
21
- <%= render 'phcnotifi/notifications' %>
22
- <table class="table table-bordered table-striped table-hover">
23
- <thead>
24
- <tr>
25
- <th>Full Name</th>
26
- <th>Company Name</th>
27
- <th>City</th>
28
- <th>Province</th>
29
- <th>Country</th>
30
- <th></th>
31
- </tr>
32
- </thead>
33
- <tbody>
34
- <% @members_contact.each do |members_contact| %>
39
+ <div class="card-block">
40
+ <div class="table-responsive">
41
+ <table class="table table-striped table-bordered table-hover">
42
+
43
+ <thead class="thead-inverse">
35
44
  <tr>
36
- <td><%= members_contact.mccontactname %></td>
37
- <td><%= members_contact.mccompanyname %></td>
38
- <td><%= members_contact.mccity %></td>
39
- <td><%= members_contact.mcprovince %></td>
40
- <td><%= members_contact.mccountry %></td>
41
- <td><div class="btn-group" role="group" aria-label="Member Adresses Group">
42
- <%= link_to 'Show', members_main_contact_path(members_contact.main, members_contact), class: "btn btn-primary" %>
43
- <%= link_to 'Edit', edit_members_main_contact_path(members_contact.main, members_contact), class: "btn btn-primary" %>
44
- <%= link_to 'Delete', members_main_contact_path(members_contact.main, members_contact), class: "btn btn-danger", method: :delete, data: { confirm: 'Are you sure?' } %>
45
- </div>
46
- </td>
45
+ <th>Address Line 1</th>
46
+ <th>Address Line 2</th>
47
+ <th>City</th>
48
+ <th>Province</th>
49
+ <th>Country</th>
50
+ <th>PostalCode</th>
51
+ <th>Type</th>
47
52
  </tr>
48
- <% end %>
49
- </tbody>
50
- </table>
51
- <%= link_to 'Add a Private Address', new_members_main_contact_path, class: "btn btn-primary" %>
53
+ </thead>
54
+
55
+ <tbody>
56
+ <% @members_contacts.each do |members_contact| %>
57
+ <tr>
58
+ <td class="highlight"><%= link_to members_contact.mcaddressl1, members_main_contact_path(members_contact.main, members_contact) %></td>
59
+ <td class="highlight"><%= link_to members_contact.mcaddressl2, members_main_contact_path(members_contact.main, members_contact) %></td>
60
+ <td class="highlight"><%= link_to members_contact.mccity, members_main_contact_path(members_contact.main, members_contact) %></td>
61
+ <td class="highlight"><%= link_to members_contact.mcprovince, members_main_contact_path(members_contact.main, members_contact) %></td>
62
+ <td class="highlight"><%= link_to members_contact.mccountry, members_main_contact_path(members_contact.main, members_contact) %></td>
63
+ <td class="highlight"><%= link_to members_contact.mcpostalcode, members_main_contact_path(members_contact.main, members_contact) %></td>
64
+ <td class="highlight"><%= link_to members_contact.mctype, members_main_contact_path(members_contact.main, members_contact) %></td>
65
+ </tr>
66
+ <% end %>
67
+ </tbody>
68
+
69
+ </table>
70
+ </div>
52
71
  </div>
53
72
  </div>
73
+
54
74
  </div>
55
75
  </div>
@@ -1,27 +1,46 @@
1
- <!-- Bread Crumbs -->
2
- <div class="row wrapper border-bottom white-bg page-heading">
1
+ <!-- Title System -->
2
+ <% phc_title "PHCMembers - Members Address Manager" %>
3
+ <% phc_title_tagline "Update Address for " + @members_main.mfirstname + " " + @members_main.mlastname %>
4
+
5
+ <!-- BreadCrumbs -->
6
+ <div class="row">
3
7
  <div class="col-lg-12">
4
- <h2>Member's Contact Information</h2>
8
+
9
+ <!-- Bread Crumb -->
5
10
  <ol class="breadcrumb">
6
- <li><%= link_to "Home", members_root_path %></li>
11
+ <li><%= link_to "Members Home", members_root_path %></li>
7
12
  <li><%= link_to "Members List", members_mains_path %></li>
8
- <li><%= link_to "Members Contact", members_main_contacts_path %></li>
9
- <li class="active">Create a New Member's Private Address</li>
13
+ <li><%= link_to @members_main.mfirstname + " " + @members_main.mlastname + " Addresses", members_main_contacts_path %></li>
14
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
10
15
  </ol>
16
+
17
+ </div>
18
+ </div>
19
+
20
+ <!-- Page Title -->
21
+ <div class="row">
22
+ <div class="col-lg-12">
23
+
24
+ <h3 class="page-title">
25
+ <%= yield(:phc_title) %> </br>
26
+ <small><%= yield(:phc_title_tagline) %></small>
27
+ </h3>
28
+
11
29
  </div>
12
30
  </div>
13
31
 
14
32
  <!-- Main Content -->
15
33
  <div class="row">
16
34
  <div class="col-lg-12">
17
- <div class="panel panel-primary">
18
- <div class="panel-heading">
19
- Create a New Member's Private Address
35
+
36
+ <div class="card">
37
+ <div class="card-header">
38
+ <%= yield(:phc_title_tagline) %>
20
39
  </div>
21
- <div class="panel-body">
22
- <%= render 'phcnotifi/notifications' %>
40
+ <div class="card-block">
23
41
  <%= render 'form' %>
24
42
  </div>
25
43
  </div>
44
+
26
45
  </div>
27
46
  </div>
@@ -1,51 +1,35 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <p>
4
- <strong>Mccontactname:</strong>
5
- <%= @members_contact.mccontactname %>
6
- </p>
7
-
8
- <p>
9
- <strong>Mccompanyname:</strong>
10
- <%= @members_contact.mccompanyname %>
11
- </p>
12
-
13
- <p>
14
- <strong>Mcaddressl1:</strong>
15
- <%= @members_contact.mcaddressl1 %>
16
- </p>
17
-
18
- <p>
19
- <strong>Mcaddressl2:</strong>
20
- <%= @members_contact.mcaddressl2 %>
21
- </p>
22
-
23
- <p>
24
- <strong>Mccity:</strong>
25
- <%= @members_contact.mccity %>
26
- </p>
27
-
28
- <p>
29
- <strong>Mlprovince:</strong>
30
- <%= @members_contact.mcprovince %>
31
- </p>
32
-
33
- <p>
34
- <strong>Mccountry:</strong>
35
- <%= @members_contact.mccountry %>
36
- </p>
37
-
38
- <p>
39
- <strong>Mcpostalcode:</strong>
40
- <%= @members_contact.mcpostalcode %>
41
- </p>
42
-
43
- <p>
44
- <strong>Mcphone:</strong>
45
- <%= @members_contact.mcphone %>
46
- </p>
47
-
48
- <p>
49
- <strong>Mlemail:</strong>
50
- <%= @members_contact.mcemail %>
51
- </p>
1
+ <!-- Title System -->
2
+ <% phc_title "PHCMembers - Members Address Manager" %>
3
+ <% phc_title_tagline "Detailed Address Information for " + @members_main.mfirstname + " " + @members_main.mlastname %>
4
+
5
+ <!-- BreadCrumbs -->
6
+ <div class="row">
7
+ <div class="col-lg-12">
8
+
9
+ <!-- Bread Crumb -->
10
+ <ol class="breadcrumb">
11
+ <li><%= link_to "Members Home", members_root_path %></li>
12
+ <li><%= link_to "Members List", members_mains_path %></li>
13
+ <li><%= link_to @members_main.mfirstname + " " + @members_main.mlastname + " Addresses", members_main_contacts_path %></li>
14
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
15
+ </ol>
16
+
17
+ </div>
18
+ </div>
19
+
20
+ <!-- Page Title -->
21
+ <div class="row">
22
+ <div class="col-lg-12">
23
+
24
+ <h3 class="page-title">
25
+ <%= yield(:phc_title) %> </br>
26
+ <small><%= yield(:phc_title_tagline) %></small>
27
+ </h3>
28
+
29
+ </div>
30
+ </div>
31
+
32
+ <!-- Main Content -->
33
+ <div class="row">
34
+ <%= render 'phcmembers/members/contacts/components/contact_main' %>
35
+ </div>