phcmembers 2.2.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -0
- data/README.md +4 -4
- data/Rakefile +15 -5
- data/app/assets/config/phcmembers_manifest.js +2 -0
- data/app/assets/stylesheets/phcmembers/_custom.scss +0 -9
- data/app/assets/stylesheets/phcmembers/application.scss +23 -0
- data/app/controllers/phcmembers/api/directories_controller.rb +18 -0
- data/app/controllers/phcmembers/application_controller.rb +4 -1
- data/app/controllers/phcmembers/dashboard/mains_controller.rb +19 -0
- data/app/controllers/phcmembers/directory/categories_controller.rb +6 -4
- data/app/controllers/phcmembers/directory/listings_controller.rb +71 -0
- data/app/controllers/phcmembers/members/businesses_controller.rb +83 -0
- data/app/controllers/phcmembers/members/contacts_controller.rb +13 -17
- data/app/controllers/phcmembers/members/mains_controller.rb +10 -7
- data/app/helpers/phcmembers/application_helper.rb +0 -1
- data/app/jobs/phcmembers/application_job.rb +4 -0
- data/app/mailers/phcmembers/application_mailer.rb +6 -0
- data/app/models/phcmembers/api.rb +7 -0
- data/app/models/phcmembers/application_record.rb +5 -0
- data/app/models/phcmembers/directory.rb +0 -3
- data/app/models/phcmembers/directory/category.rb +6 -3
- data/app/models/phcmembers/directory/listing.rb +20 -0
- data/app/models/phcmembers/members.rb +0 -3
- data/app/models/phcmembers/members/business.rb +44 -0
- data/app/models/phcmembers/members/contact.rb +10 -9
- data/app/models/phcmembers/members/main.rb +4 -3
- data/app/views/layouts/phcmembers/application.html.erb +12 -8
- data/app/views/layouts/phcmembers/directory/directory_all.html.erb +12 -8
- data/app/views/layouts/phcmembers/members/members_all.html.erb +12 -8
- data/app/views/phcmembers/directory/categories/_form.html.erb +2 -1
- data/app/views/phcmembers/directory/categories/components/_category_audits.html.erb +25 -0
- data/app/views/phcmembers/directory/categories/components/_category_list.html.erb +7 -0
- data/app/views/phcmembers/directory/categories/components/_category_main.html.erb +24 -0
- data/app/views/phcmembers/directory/categories/edit.html.erb +30 -11
- data/app/views/phcmembers/directory/categories/index.html.erb +37 -37
- data/app/views/phcmembers/directory/categories/new.html.erb +28 -9
- data/app/views/phcmembers/directory/categories/show.html.erb +34 -0
- data/app/views/phcmembers/directory/listings/_form.html.erb +15 -0
- data/app/views/phcmembers/directory/listings/_formpatch.html.erb +15 -0
- data/app/views/phcmembers/directory/listings/components/_listing_audits.html.erb +25 -0
- data/app/views/phcmembers/directory/listings/components/_listing_list.html.erb +48 -0
- data/app/views/phcmembers/directory/listings/components/_listing_main.html.erb +21 -0
- data/app/views/phcmembers/directory/listings/edit.html.erb +45 -0
- data/app/views/phcmembers/directory/listings/index.html.erb +73 -0
- data/app/views/phcmembers/directory/listings/new.html.erb +45 -0
- data/app/views/phcmembers/directory/listings/show.html.erb +34 -0
- data/app/views/phcmembers/members/businesses/_form.html.erb +65 -0
- data/app/views/phcmembers/members/businesses/_formpatch.html.erb +65 -0
- data/app/views/phcmembers/members/businesses/components/_business_address.html.erb +48 -0
- data/app/views/phcmembers/members/businesses/components/_business_audits.html.erb +25 -0
- data/app/views/phcmembers/members/businesses/components/_business_main.html.erb +21 -0
- data/app/views/phcmembers/members/businesses/edit.html.erb +46 -0
- data/app/views/phcmembers/members/businesses/index.html.erb +76 -0
- data/app/views/phcmembers/members/businesses/new.html.erb +47 -0
- data/app/views/phcmembers/members/businesses/show.html.erb +35 -0
- data/app/views/phcmembers/members/contacts/_form.html.erb +14 -26
- data/app/views/phcmembers/members/contacts/_formpatch.html.erb +14 -26
- data/app/views/phcmembers/members/contacts/components/_contact_address.html.erb +29 -0
- data/app/views/phcmembers/members/contacts/components/_contact_audits.html.erb +25 -0
- data/app/views/phcmembers/members/contacts/components/_contact_main.html.erb +21 -0
- data/app/views/phcmembers/members/contacts/edit.html.erb +30 -11
- data/app/views/phcmembers/members/contacts/index.html.erb +57 -37
- data/app/views/phcmembers/members/contacts/new.html.erb +30 -11
- data/app/views/phcmembers/members/contacts/show.html.erb +35 -51
- data/app/views/phcmembers/members/mains/_form.html.erb +14 -15
- data/app/views/phcmembers/members/mains/components/_profile_main.html.erb +48 -0
- data/app/views/phcmembers/members/mains/components/_profile_sidebar.html.erb +67 -0
- data/app/views/phcmembers/members/mains/edit.html.erb +28 -9
- data/app/views/phcmembers/members/mains/index.html.erb +53 -43
- data/app/views/phcmembers/members/mains/new.html.erb +27 -8
- data/app/views/phcmembers/members/mains/show.html.erb +31 -53
- data/config/routes.rb +22 -10
- data/db/migrate/20160706184011_create_phcmembers_members_businesses.rb +27 -0
- data/db/migrate/{20160227194651_create_phcmembers_members_contacts.rb → 20160706184249_create_phcmembers_members_contacts.rb} +3 -6
- data/db/migrate/{20160227150117_create_phcmembers_members_mains.rb → 20160706184353_create_phcmembers_members_mains.rb} +8 -2
- data/db/migrate/20160706184527_create_phcmembers_directory_listings.rb +15 -0
- data/db/migrate/{20160227205022_create_phcmembers_directory_categories.rb → 20160706184708_create_phcmembers_directory_categories.rb} +4 -2
- data/db/migrate/20160707154842_create_versions.rb +80 -0
- data/lib/phcmembers/engine.rb +11 -8
- data/lib/phcmembers/version.rb +2 -2
- metadata +132 -155
- data/LICENSE +0 -238
- data/app/assets/stylesheets/adminlte_overrides.scss +0 -56
- data/app/assets/stylesheets/phcmembers/_variables.scss +0 -0
- data/app/assets/stylesheets/phcmembers/application.css.scss +0 -12
- data/app/assets/stylesheets/phcmembers/dashboard.scss +0 -3
- data/app/assets/stylesheets/scaffolds.scss +0 -73
- data/app/controllers/phcmembers/api/catsapi_controller.rb +0 -15
- data/app/controllers/phcmembers/api/listapi_controller.rb +0 -16
- data/app/controllers/phcmembers/dashboard/indices_controller.rb +0 -20
- data/app/controllers/phcmembers/directory/catlists_controller.rb +0 -98
- data/app/controllers/phcmembers/members/listings_controller.rb +0 -87
- data/app/helpers/nav_helper.rb +0 -29
- data/app/helpers/phcmembers/dashboard_helper.rb +0 -4
- data/app/helpers/phcmembers/directory/categories_helper.rb +0 -4
- data/app/helpers/phcmembers/directory/catlists_helper.rb +0 -4
- data/app/helpers/phcmembers/members/contacts_helper.rb +0 -4
- data/app/helpers/phcmembers/members/listings_helper.rb +0 -4
- data/app/helpers/phcmembers/members/mains_helper.rb +0 -4
- data/app/models/phcmembers/api/category.rb +0 -8
- data/app/models/phcmembers/api/catlist.rb +0 -9
- data/app/models/phcmembers/directory/catlist.rb +0 -17
- data/app/models/phcmembers/members/listing.rb +0 -42
- data/app/views/layouts/_application_header.html.erb +0 -133
- data/app/views/layouts/_application_sidebar.html.erb +0 -39
- data/app/views/layouts/application.html.erb +0 -19
- data/app/views/phcmembers/api/catsapi/index.json.rabl +0 -2
- data/app/views/phcmembers/api/listapi/index.json.rabl +0 -6
- data/app/views/phcmembers/dashboard/indices/index.html.erb +0 -51
- data/app/views/phcmembers/directory/catlists/_form.html.erb +0 -15
- data/app/views/phcmembers/directory/catlists/index.html.erb +0 -37
- data/app/views/phcmembers/directory/catlists/new.html.erb +0 -26
- data/app/views/phcmembers/members/listings/_form.html.erb +0 -54
- data/app/views/phcmembers/members/listings/_formpatch.html.erb +0 -54
- data/app/views/phcmembers/members/listings/edit.html.erb +0 -27
- data/app/views/phcmembers/members/listings/index.html.erb +0 -58
- data/app/views/phcmembers/members/listings/new.html.erb +0 -25
- data/app/views/phcmembers/members/listings/show.html.erb +0 -56
- data/db/migrate/20160227160416_create_phcmembers_members_listings.rb +0 -23
- data/db/migrate/20160227212144_create_phcmembers_directory_catlists.rb +0 -13
- data/lib/generators/phcmembers/views_generator.rb +0 -53
- data/lib/templates/erb/controller/view.html.erb +0 -9
- data/lib/templates/erb/scaffold/_form.html.erb +0 -30
- data/lib/templates/erb/scaffold/edit.html.erb +0 -15
- data/lib/templates/erb/scaffold/index.html.erb +0 -52
- data/lib/templates/erb/scaffold/new.html.erb +0 -13
- 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, "
|
16
|
-
<%= f.text_field :mcaddressl1, class: "form-control", placeholder: "
|
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, "
|
20
|
-
<%= f.text_field :mcaddressl2, class: "form-control", placeholder: "
|
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: "
|
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
|
28
|
-
<%= f.text_field :mcprovince, class: "form-control", placeholder: "
|
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
|
-
<%=
|
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: "
|
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
|
43
|
-
<label><%= f.label :
|
44
|
-
<%= f.
|
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
|
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, "
|
16
|
-
<%= f.text_field :mcaddressl1, class: "form-control", placeholder: "
|
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, "
|
20
|
-
<%= f.text_field :mcaddressl2, class: "form-control", placeholder: "
|
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: "
|
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
|
28
|
-
<%= f.text_field :mcprovince, class: "form-control", placeholder: "
|
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
|
-
<%=
|
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: "
|
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
|
43
|
-
<label><%= f.label :
|
44
|
-
<%= f.
|
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
|
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
|
-
<!--
|
2
|
-
|
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
|
-
|
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 "
|
9
|
-
<li class="active"
|
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
|
-
|
18
|
-
|
19
|
-
|
35
|
+
|
36
|
+
<div class="card">
|
37
|
+
<div class="card-header">
|
38
|
+
<%= yield(:phc_title_tagline) %>
|
20
39
|
</div>
|
21
|
-
<div class="
|
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
|
-
<!--
|
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
|
-
|
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"><%=
|
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
|
-
|
17
|
-
|
18
|
-
|
34
|
+
|
35
|
+
<div class="card">
|
36
|
+
<div class="card-header">
|
37
|
+
<%= yield(:phc_title) %>
|
19
38
|
</div>
|
20
|
-
<div class="
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
<
|
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
|
-
<
|
37
|
-
<
|
38
|
-
<
|
39
|
-
<
|
40
|
-
<
|
41
|
-
<
|
42
|
-
|
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
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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
|
-
<!--
|
2
|
-
|
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
|
-
|
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 "
|
9
|
-
<li class="active"
|
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
|
-
|
18
|
-
|
19
|
-
|
35
|
+
|
36
|
+
<div class="card">
|
37
|
+
<div class="card-header">
|
38
|
+
<%= yield(:phc_title_tagline) %>
|
20
39
|
</div>
|
21
|
-
<div class="
|
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
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
<
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
<
|
34
|
-
|
35
|
-
|
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>
|