phcmembers 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +238 -0
- data/README.md +1 -0
- data/Rakefile +23 -0
- data/app/assets/javascripts/phcmembers/application.js +16 -0
- data/app/assets/javascripts/phcmembers/directory/categories.js +2 -0
- data/app/assets/javascripts/phcmembers/directory/catlists.js +2 -0
- data/app/assets/javascripts/phcmembers/members/contacts.js +2 -0
- data/app/assets/javascripts/phcmembers/members/listings.js +2 -0
- data/app/assets/javascripts/phcmembers/members/mains.js +2 -0
- data/app/assets/stylesheets/phcmembers/_custom.scss +9 -0
- data/app/assets/stylesheets/phcmembers/_variables.scss +0 -0
- data/app/assets/stylesheets/phcmembers/application.css.scss +12 -0
- data/app/assets/stylesheets/phcmembers/directory/categories.scss +3 -0
- data/app/assets/stylesheets/phcmembers/directory/catlists.scss +3 -0
- data/app/assets/stylesheets/phcmembers/members/contacts.scss +3 -0
- data/app/assets/stylesheets/phcmembers/members/listings.scss +3 -0
- data/app/assets/stylesheets/phcmembers/members/mains.scss +3 -0
- data/app/assets/stylesheets/scaffolds.scss +73 -0
- data/app/controllers/phcmembers/application_controller.rb +4 -0
- data/app/controllers/phcmembers/directory/categories_controller.rb +67 -0
- data/app/controllers/phcmembers/directory/catlists_controller.rb +97 -0
- data/app/controllers/phcmembers/members/contacts_controller.rb +87 -0
- data/app/controllers/phcmembers/members/listings_controller.rb +87 -0
- data/app/controllers/phcmembers/members/mains_controller.rb +67 -0
- data/app/helpers/phcmembers/application_helper.rb +15 -0
- data/app/helpers/phcmembers/directory/categories_helper.rb +4 -0
- data/app/helpers/phcmembers/directory/catlists_helper.rb +4 -0
- data/app/helpers/phcmembers/members/contacts_helper.rb +4 -0
- data/app/helpers/phcmembers/members/listings_helper.rb +4 -0
- data/app/helpers/phcmembers/members/mains_helper.rb +4 -0
- data/app/models/phcmembers/directory.rb +7 -0
- data/app/models/phcmembers/directory/category.rb +14 -0
- data/app/models/phcmembers/directory/catlist.rb +17 -0
- data/app/models/phcmembers/members.rb +7 -0
- data/app/models/phcmembers/members/contact.rb +38 -0
- data/app/models/phcmembers/members/listing.rb +47 -0
- data/app/models/phcmembers/members/main.rb +36 -0
- data/app/views/layouts/phcmembers/application.html.erb +13 -0
- data/app/views/layouts/phcmembers/directory/directory_all.html.erb +15 -0
- data/app/views/layouts/phcmembers/elements/alerts/_notifications.html.erb +13 -0
- data/app/views/layouts/phcmembers/elements/alerts/_validations.html.erb +0 -0
- data/app/views/layouts/phcmembers/members/members_all.html.erb +15 -0
- data/app/views/phcmembers/directory/categories/_form.html.erb +22 -0
- data/app/views/phcmembers/directory/categories/edit.html.erb +25 -0
- data/app/views/phcmembers/directory/categories/index.html.erb +50 -0
- data/app/views/phcmembers/directory/categories/new.html.erb +25 -0
- data/app/views/phcmembers/directory/catlists/_form.html.erb +28 -0
- data/app/views/phcmembers/directory/catlists/index.html.erb +36 -0
- data/app/views/phcmembers/directory/catlists/new.html.erb +25 -0
- data/app/views/phcmembers/members/contacts/_form.html.erb +58 -0
- data/app/views/phcmembers/members/contacts/_formpatch.html.erb +58 -0
- data/app/views/phcmembers/members/contacts/edit.html.erb +26 -0
- data/app/views/phcmembers/members/contacts/index.html.erb +54 -0
- data/app/views/phcmembers/members/contacts/new.html.erb +26 -0
- data/app/views/phcmembers/members/contacts/show.html.erb +51 -0
- data/app/views/phcmembers/members/listings/_form.html.erb +62 -0
- data/app/views/phcmembers/members/listings/_formpatch.html.erb +62 -0
- data/app/views/phcmembers/members/listings/edit.html.erb +25 -0
- data/app/views/phcmembers/members/listings/index.html.erb +57 -0
- data/app/views/phcmembers/members/listings/new.html.erb +23 -0
- data/app/views/phcmembers/members/listings/show.html.erb +56 -0
- data/app/views/phcmembers/members/mains/_form.html.erb +42 -0
- data/app/views/phcmembers/members/mains/edit.html.erb +25 -0
- data/app/views/phcmembers/members/mains/index.html.erb +58 -0
- data/app/views/phcmembers/members/mains/new.html.erb +25 -0
- data/app/views/phcmembers/members/mains/show.html.erb +26 -0
- data/config/application.yml +13 -0
- data/config/routes.rb +28 -0
- data/db/migrate/20160227150117_create_phcmembers_members_mains.rb +18 -0
- data/db/migrate/20160227160416_create_phcmembers_members_listings.rb +24 -0
- data/db/migrate/20160227194651_create_phcmembers_members_contacts.rb +24 -0
- data/db/migrate/20160227205022_create_phcmembers_directory_categories.rb +13 -0
- data/db/migrate/20160227212144_create_phcmembers_directory_catlists.rb +15 -0
- data/lib/phcmembers.rb +4 -0
- data/lib/phcmembers/engine.rb +32 -0
- data/lib/phcmembers/version.rb +3 -0
- data/lib/tasks/phcmembers_tasks.rake +4 -0
- metadata +414 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
<!-- Bread Crumbs -->
|
2
|
+
<div class="row">
|
3
|
+
<div class="col-lg-12">
|
4
|
+
<h2>Directory Listings</h2>
|
5
|
+
<ol class="breadcrumb">
|
6
|
+
<li><%= link_to "Home", directory_root_path %></li>
|
7
|
+
<li><%= link_to "Directory Categories", directory_categories_path %></li>
|
8
|
+
<li class="active">Create a Directory Category</li>
|
9
|
+
</ol>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<!-- Main Content -->
|
14
|
+
<div class="row">
|
15
|
+
<div class="col-lg-12">
|
16
|
+
<div class="panel panel-primary">
|
17
|
+
<div class="panel-heading">
|
18
|
+
Connect an Existing Listing
|
19
|
+
</div>
|
20
|
+
<div class="panel-body">
|
21
|
+
<%= render 'form' %>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<%= form_for([@members_contact.main, @members_contact], url: members_main_contacts_path) do |f| %>
|
2
|
+
|
3
|
+
<% if @members_contact.errors.any? %>
|
4
|
+
<div id="error_explanation">
|
5
|
+
<h2><%= pluralize(@members_contact.errors.count, "error") %> prohibited this directorylisting from being saved:</h2>
|
6
|
+
<ul>
|
7
|
+
<% @members_contact.errors.full_messages.each do |message| %>
|
8
|
+
<li><%= message %></li>
|
9
|
+
<% end %>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="form-group">
|
15
|
+
<label><%= f.label :mccontactname, "Contact Name*" %></label>
|
16
|
+
<%= f.text_field :mccontactname, class: "form-control", placeholder: "Mailing Contact Name" %>
|
17
|
+
</div>
|
18
|
+
<div class="form-group">
|
19
|
+
<label><%= f.label :mccompanyname, "Company Name" %></label>
|
20
|
+
<%= f.text_field :mccompanyname, class: "form-control", placeholder: "Company Name" %>
|
21
|
+
</div>
|
22
|
+
<div class="form-group">
|
23
|
+
<label><%= f.label :mcaddressl1, "Mailing Address Line1" %></label>
|
24
|
+
<%= f.text_field :mcaddressl1, class: "form-control", placeholder: "Mailing Street Address" %>
|
25
|
+
</div>
|
26
|
+
<div class="form-group">
|
27
|
+
<label><%= f.label :mcaddressl2, "Mailing Address Line2" %></label>
|
28
|
+
<%= f.text_field :mcaddressl2, class: "form-control", placeholder: "Mailing Address POBox" %>
|
29
|
+
</div>
|
30
|
+
<div class="form-group">
|
31
|
+
<label><%= f.label :mccity, "City" %></label>
|
32
|
+
<%= f.text_field :mccity, class: "form-control", placeholder: "Mailing City" %>
|
33
|
+
</div>
|
34
|
+
<div class="form-group">
|
35
|
+
<label><%= f.label :mcprovince, "Province or State" %></label>
|
36
|
+
<%= f.text_field :mcprovince, class: "form-control", placeholder: "Mailing Province or State" %>
|
37
|
+
</div>
|
38
|
+
<div class="form-group">
|
39
|
+
<label><%= f.label :mccountry, "Country" %></label>
|
40
|
+
<%= f.text_field :mccountry, class: "form-control", placeholder: "Mailing Country" %>
|
41
|
+
</div>
|
42
|
+
<div class="form-group">
|
43
|
+
<label><%= f.label :mcpostalcode, "PostalCode" %></label>
|
44
|
+
<%= f.text_field :mcpostalcode, class: "form-control", placeholder: "Mailing PostalCode" %>
|
45
|
+
</div>
|
46
|
+
<div class="form-group">
|
47
|
+
<label><%= f.label :mcphone, "" %></label>
|
48
|
+
<%= f.text_field :mcphone, class: "form-control", placeholder: "Contact Phone Number" %>
|
49
|
+
</div>
|
50
|
+
<div class="form-group">
|
51
|
+
<label><%= f.label :mcemail, "Email" %></label>
|
52
|
+
<%= f.text_field :mcemail, class: "form-control", placeholder: "Contact Email" %>
|
53
|
+
</div>
|
54
|
+
<div class="actions">
|
55
|
+
<%= f.submit "Submit", class: "btn btn-primary" %>
|
56
|
+
</div>
|
57
|
+
|
58
|
+
<% end %>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<%= form_for([@members_contact.main, @members_contact], url: members_main_contact_path, method: :patch ) do |f| %>
|
2
|
+
|
3
|
+
<% if @members_contact.errors.any? %>
|
4
|
+
<div id="error_explanation">
|
5
|
+
<h2><%= pluralize(@members_contact.errors.count, "error") %> prohibited this directorylisting from being saved:</h2>
|
6
|
+
<ul>
|
7
|
+
<% @members_contact.errors.full_messages.each do |message| %>
|
8
|
+
<li><%= message %></li>
|
9
|
+
<% end %>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="form-group">
|
15
|
+
<label><%= f.label :mccontactname, "Contact Name*" %></label>
|
16
|
+
<%= f.text_field :mccontactname, class: "form-control", placeholder: "Mailing Contact Name" %>
|
17
|
+
</div>
|
18
|
+
<div class="form-group">
|
19
|
+
<label><%= f.label :mccompanyname, "Company Name" %></label>
|
20
|
+
<%= f.text_field :mccompanyname, class: "form-control", placeholder: "Company Name" %>
|
21
|
+
</div>
|
22
|
+
<div class="form-group">
|
23
|
+
<label><%= f.label :mcaddressl1, "Mailing Address Line1" %></label>
|
24
|
+
<%= f.text_field :mcaddressl1, class: "form-control", placeholder: "Mailing Street Address" %>
|
25
|
+
</div>
|
26
|
+
<div class="form-group">
|
27
|
+
<label><%= f.label :mcaddressl2, "Mailing Address Line2" %></label>
|
28
|
+
<%= f.text_field :mcaddressl2, class: "form-control", placeholder: "Mailing Address POBox" %>
|
29
|
+
</div>
|
30
|
+
<div class="form-group">
|
31
|
+
<label><%= f.label :mccity, "City" %></label>
|
32
|
+
<%= f.text_field :mccity, class: "form-control", placeholder: "Mailing City" %>
|
33
|
+
</div>
|
34
|
+
<div class="form-group">
|
35
|
+
<label><%= f.label :mcprovince, "Province or State" %></label>
|
36
|
+
<%= f.text_field :mcprovince, class: "form-control", placeholder: "Mailing Province or State" %>
|
37
|
+
</div>
|
38
|
+
<div class="form-group">
|
39
|
+
<label><%= f.label :mccountry, "Country" %></label>
|
40
|
+
<%= f.text_field :mccountry, class: "form-control", placeholder: "Mailing Country" %>
|
41
|
+
</div>
|
42
|
+
<div class="form-group">
|
43
|
+
<label><%= f.label :mcpostalcode, "PostalCode" %></label>
|
44
|
+
<%= f.text_field :mcpostalcode, class: "form-control", placeholder: "Mailing PostalCode" %>
|
45
|
+
</div>
|
46
|
+
<div class="form-group">
|
47
|
+
<label><%= f.label :mcphone, "Contact Phone" %></label>
|
48
|
+
<%= f.text_field :mcphone, class: "form-control", placeholder: "Contact Phone Number" %>
|
49
|
+
</div>
|
50
|
+
<div class="form-group">
|
51
|
+
<label><%= f.label :mcemail, "Contact Email" %></label>
|
52
|
+
<%= f.text_field :mcemail, class: "form-control", placeholder: "Contact Email" %>
|
53
|
+
</div>
|
54
|
+
<div class="actions">
|
55
|
+
<%= f.submit "Submit", class: "btn btn-primary" %>
|
56
|
+
</div>
|
57
|
+
|
58
|
+
<% end %>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!-- Bread Crumbs -->
|
2
|
+
<div class="row wrapper border-bottom white-bg page-heading">
|
3
|
+
<div class="col-lg-12">
|
4
|
+
<h2>Member's Contact Information</h2>
|
5
|
+
<ol class="breadcrumb">
|
6
|
+
<li><%= link_to "Home", members_root_path %></li>
|
7
|
+
<li><%= link_to "Members List", members_mains_path %></li>
|
8
|
+
<li><%= link_to "Members Contact", members_main_contacts_path %></li>
|
9
|
+
<li class="active">Member Contact Updates</li>
|
10
|
+
</ol>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<!-- Main Content -->
|
15
|
+
<div class="row">
|
16
|
+
<div class="col-lg-12">
|
17
|
+
<div class="panel panel-primary">
|
18
|
+
<div class="panel-heading">
|
19
|
+
Update Member Contact Information
|
20
|
+
</div>
|
21
|
+
<div class="panel-body">
|
22
|
+
<%= render 'formpatch' %>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</div>
|
@@ -0,0 +1,54 @@
|
|
1
|
+
<!-- Bread Crumbs -->
|
2
|
+
<div class="row">
|
3
|
+
<div class="col-lg-12">
|
4
|
+
<h2>Member's Information</h2>
|
5
|
+
<ol class="breadcrumb">
|
6
|
+
<li><%= link_to "Home", members_root_path %></li>
|
7
|
+
<li><%= link_to "Members List", members_mains_path %></li>
|
8
|
+
<li><%= link_to "Members Contact", members_main_contacts_path %></li>
|
9
|
+
</ol>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<!-- Main Content -->
|
14
|
+
<div class="row">
|
15
|
+
<div class="col-lg-12">
|
16
|
+
<div class="panel panel-primary">
|
17
|
+
<div class="panel-heading">
|
18
|
+
Member's Contact Index
|
19
|
+
</div>
|
20
|
+
<div class="panel-body">
|
21
|
+
<table class="table table-bordered table-striped table-hover">
|
22
|
+
<thead>
|
23
|
+
<tr>
|
24
|
+
<th>Full Name</th>
|
25
|
+
<th>Company Name</th>
|
26
|
+
<th>City</th>
|
27
|
+
<th>Province</th>
|
28
|
+
<th>Country</th>
|
29
|
+
<th></th>
|
30
|
+
</tr>
|
31
|
+
</thead>
|
32
|
+
<tbody>
|
33
|
+
<% @members_contact.each do |members_contact| %>
|
34
|
+
<tr>
|
35
|
+
<td><%= members_contact.mccontactname %></td>
|
36
|
+
<td><%= members_contact.mccompanyname %></td>
|
37
|
+
<td><%= members_contact.mccity %></td>
|
38
|
+
<td><%= members_contact.mcprovince %></td>
|
39
|
+
<td><%= members_contact.mccountry %></td>
|
40
|
+
<td><div class="btn-group" role="group" aria-label="Member Adresses Group">
|
41
|
+
<%= link_to 'Show', members_main_contact_path(members_contact.main, members_contact), class: "btn btn-primary" %>
|
42
|
+
<%= link_to 'Edit', edit_members_main_contact_path(members_contact.main, members_contact), class: "btn btn-primary" %>
|
43
|
+
<%= link_to 'Delete', members_main_contact_path(members_contact.main, members_contact), class: "btn btn-danger", method: :delete, data: { confirm: 'Are you sure?' } %>
|
44
|
+
</div>
|
45
|
+
</td>
|
46
|
+
</tr>
|
47
|
+
<% end %>
|
48
|
+
</tbody>
|
49
|
+
</table>
|
50
|
+
<%= link_to 'Add a Private Address', new_members_main_contact_path, class: "btn btn-primary" %>
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
</div>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!-- Bread Crumbs -->
|
2
|
+
<div class="row wrapper border-bottom white-bg page-heading">
|
3
|
+
<div class="col-lg-12">
|
4
|
+
<h2>Member's Contact Information</h2>
|
5
|
+
<ol class="breadcrumb">
|
6
|
+
<li><%= link_to "Home", members_root_path %></li>
|
7
|
+
<li><%= link_to "Members List", members_mains_path %></li>
|
8
|
+
<li><%= link_to "Members Contact", members_main_contacts_path %></li>
|
9
|
+
<li class="active">Member's Updates</li>
|
10
|
+
</ol>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<!-- Main Content -->
|
15
|
+
<div class="row">
|
16
|
+
<div class="col-lg-12">
|
17
|
+
<div class="panel panel-primary">
|
18
|
+
<div class="panel-heading">
|
19
|
+
Create a New Contact Entry
|
20
|
+
</div>
|
21
|
+
<div class="panel-body">
|
22
|
+
<%= render 'form' %>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</div>
|
@@ -0,0 +1,51 @@
|
|
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>
|
@@ -0,0 +1,62 @@
|
|
1
|
+
<%= form_for([@members_listing.main, @members_listing], url: members_main_listings_path) do |f| %>
|
2
|
+
|
3
|
+
<% if @members_listing.errors.any? %>
|
4
|
+
<div id="error_explanation">
|
5
|
+
<h2><%= pluralize(@members_listing.errors.count, "error") %> prohibited this directorylisting from being saved:</h2>
|
6
|
+
<ul>
|
7
|
+
<% @members_listing.errors.full_messages.each do |message| %>
|
8
|
+
<li><%= message %></li>
|
9
|
+
<% end %>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="form-group">
|
15
|
+
<label><%= f.label :mlcontactname, "Company Contact" %></label>
|
16
|
+
<%= f.text_field :mlcontactname, class: 'form-control', placeholder: 'Contact Name for Company' %>
|
17
|
+
</div>
|
18
|
+
<div class="form-group">
|
19
|
+
<label><%= f.label :mlcompanyname, "Company/Organization's Name*" %></label>
|
20
|
+
<%= f.text_field :mlcompanyname, class: 'form-control', placeholder: 'Name of Business or Organization' %>
|
21
|
+
</div>
|
22
|
+
<div class="form-group">
|
23
|
+
<label><%= f.label :mladdressl1, "Address Line1*" %></label>
|
24
|
+
<%= f.text_field :mladdressl1, class: 'form-control', placeholder: 'Main Street Address' %>
|
25
|
+
</div>
|
26
|
+
<div class="form-group">
|
27
|
+
<label><%= f.label :mladdressl2, "Address Line2" %></label>
|
28
|
+
<%= f.text_field :mladdressl2, class: 'form-control', placeholder: 'Adress Info Like Box or POBox Number' %>
|
29
|
+
</div>
|
30
|
+
<div class="form-group">
|
31
|
+
<label><%= f.label :mlcity, "City" %></label>
|
32
|
+
<%= f.text_field :mlcity, class: 'form-control', placeholder: 'City' %>
|
33
|
+
</div>
|
34
|
+
<div class="form-group">
|
35
|
+
<label><%= f.label :mlprovince, "Province or State" %></label>
|
36
|
+
<%= f.text_field :mlprovince, class: 'form-control', placeholder: 'Province or State' %>
|
37
|
+
</div>
|
38
|
+
<div class="form-group">
|
39
|
+
<label><%= f.label :mlcountry, "Country" %></label>
|
40
|
+
<%= f.text_field :mlcountry, class: 'form-control', placeholder: 'Country' %>
|
41
|
+
</div>
|
42
|
+
<div class="form-group">
|
43
|
+
<label><%= f.label :mlpostalcode, "PostalCode" %></label>
|
44
|
+
<%= f.text_field :mlpostalcode, class: 'form-control', placeholder: 'PostalCode' %>
|
45
|
+
</div>
|
46
|
+
<div class="form-group">
|
47
|
+
<label><%= f.label :mlphone, "Listing Phone Number" %></label>
|
48
|
+
<%= f.text_field :mlphone, class: 'form-control', placeholder: 'General Company Number' %>
|
49
|
+
</div>
|
50
|
+
<div class="form-group">
|
51
|
+
<label><%= f.label :mlwebsite, "Company Website" %></label>
|
52
|
+
<%= f.text_field :mlwebsite, class: 'form-control', placeholder: 'Company Website' %>
|
53
|
+
</div>
|
54
|
+
<div class="form-group">
|
55
|
+
<label><%= f.label :mlemail, "Listing Email" %></label>
|
56
|
+
<%= f.text_field :mlemail, class: 'form-control', placeholder: 'Company General Email' %>
|
57
|
+
</div>
|
58
|
+
<div class="actions">
|
59
|
+
<%= f.submit "Submit", class: "btn btn-primary" %>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<% end %>
|
@@ -0,0 +1,62 @@
|
|
1
|
+
<%= form_for([@members_listing.main, @members_listing], url: members_main_listing_path, method: :patch) do |f| %>
|
2
|
+
|
3
|
+
<% if @members_listing.errors.any? %>
|
4
|
+
<div id="error_explanation">
|
5
|
+
<h2><%= pluralize(@members_listing.errors.count, "error") %> prohibited this directorylisting from being saved:</h2>
|
6
|
+
<ul>
|
7
|
+
<% @members_listing.errors.full_messages.each do |message| %>
|
8
|
+
<li><%= message %></li>
|
9
|
+
<% end %>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="form-group">
|
15
|
+
<label><%= f.label :mlcontactname, "Company Contact" %></label>
|
16
|
+
<%= f.text_field :mlcontactname, class: 'form-control', placeholder: 'Contact Name for Company' %>
|
17
|
+
</div>
|
18
|
+
<div class="form-group">
|
19
|
+
<label><%= f.label :mlcompanyname, "Company/Organization's Name*" %></label>
|
20
|
+
<%= f.text_field :mlcompanyname, class: 'form-control', placeholder: 'Name of Business or Organization' %>
|
21
|
+
</div>
|
22
|
+
<div class="form-group">
|
23
|
+
<label><%= f.label :mladdressl1, "Address Line1*" %></label>
|
24
|
+
<%= f.text_field :mladdressl1, class: 'form-control', placeholder: 'Main Street Address' %>
|
25
|
+
</div>
|
26
|
+
<div class="form-group">
|
27
|
+
<label><%= f.label :mladdressl2, "Address Line2" %></label>
|
28
|
+
<%= f.text_field :mladdressl2, class: 'form-control', placeholder: 'Adress Info Like Box or POBox Number' %>
|
29
|
+
</div>
|
30
|
+
<div class="form-group">
|
31
|
+
<label><%= f.label :mlcity, "City" %></label>
|
32
|
+
<%= f.text_field :mlcity, class: 'form-control', placeholder: 'City' %>
|
33
|
+
</div>
|
34
|
+
<div class="form-group">
|
35
|
+
<label><%= f.label :mlprovince, "Province or State" %></label>
|
36
|
+
<%= f.text_field :mlprovince, class: 'form-control', placeholder: 'Province or State' %>
|
37
|
+
</div>
|
38
|
+
<div class="form-group">
|
39
|
+
<label><%= f.label :mlcountry, "Country" %></label>
|
40
|
+
<%= f.text_field :mlcountry, class: 'form-control', placeholder: 'Country' %>
|
41
|
+
</div>
|
42
|
+
<div class="form-group">
|
43
|
+
<label><%= f.label :mlpostalcode, "PostalCode" %></label>
|
44
|
+
<%= f.text_field :mlpostalcode, class: 'form-control', placeholder: 'PostalCode' %>
|
45
|
+
</div>
|
46
|
+
<div class="form-group">
|
47
|
+
<label><%= f.label :mlphone, "Listing Phone Number" %></label>
|
48
|
+
<%= f.text_field :mlphone, class: 'form-control', placeholder: 'General Company Number' %>
|
49
|
+
</div>
|
50
|
+
<div class="form-group">
|
51
|
+
<label><%= f.label :mlwebsite, "Company Website" %></label>
|
52
|
+
<%= f.text_field :mlwebsite, class: 'form-control', placeholder: 'Company Website' %>
|
53
|
+
</div>
|
54
|
+
<div class="form-group">
|
55
|
+
<label><%= f.label :mlemail, "Listing Email" %></label>
|
56
|
+
<%= f.text_field :mlemail, class: 'form-control', placeholder: 'Company General Email' %>
|
57
|
+
</div>
|
58
|
+
<div class="actions">
|
59
|
+
<%= f.submit "Submit", class: "btn btn-primary" %>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<% end %>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!-- Bread Crumbs -->
|
2
|
+
<div class="row">
|
3
|
+
<div class="col-lg-12">
|
4
|
+
<h2>Member's Information</h2>
|
5
|
+
<ol class="breadcrumb">
|
6
|
+
<li><%= link_to "Home", members_root_path %></li>
|
7
|
+
<li><%= link_to "Members List", members_mains_path %></li>
|
8
|
+
<li><%= link_to "Members Listings", members_main_contacts_path %></li>
|
9
|
+
</ol>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<!-- Main Content -->
|
14
|
+
<div class="row">
|
15
|
+
<div class="col-lg-12">
|
16
|
+
<div class="panel panel-primary">
|
17
|
+
<div class="panel-heading">
|
18
|
+
Update Member's Listing
|
19
|
+
</div>
|
20
|
+
<div class="panel-body">
|
21
|
+
<%= render 'formpatch' %>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|