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
@@ -1,39 +0,0 @@
|
|
1
|
-
<section class="sidebar">
|
2
|
-
<!-- Sidebar user panel -->
|
3
|
-
<div class="user-panel">
|
4
|
-
<div class="pull-left image">
|
5
|
-
<img src="/img/avatar3.png" class="img-circle" alt="User Image" />
|
6
|
-
</div>
|
7
|
-
<div class="pull-left info">
|
8
|
-
<p>Hello, Jane</p>
|
9
|
-
|
10
|
-
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
|
11
|
-
</div>
|
12
|
-
</div>
|
13
|
-
<!-- search form -->
|
14
|
-
<form action="#" method="get" class="sidebar-form">
|
15
|
-
<div class="input-group">
|
16
|
-
<input type="text" name="q" class="form-control" placeholder="Search..."/>
|
17
|
-
<span class="input-group-btn">
|
18
|
-
<button type='submit' name='search' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
|
19
|
-
</span>
|
20
|
-
</div>
|
21
|
-
</form>
|
22
|
-
<!-- /.search form -->
|
23
|
-
<!-- sidebar menu: : style can be found in sidebar.less -->
|
24
|
-
<ul class="sidebar-menu">
|
25
|
-
<%= nav_link root_path do %>
|
26
|
-
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
|
27
|
-
<% end %>
|
28
|
-
<%= treeview_link 'Lots of links here' do %>
|
29
|
-
<%= nav_link "#" do %>
|
30
|
-
<i class="fa fa-angle-double-right"></i>
|
31
|
-
One Way
|
32
|
-
<% end %>
|
33
|
-
<%= nav_link "#" do %>
|
34
|
-
<i class="fa fa-angle-double-right"></i>
|
35
|
-
Another
|
36
|
-
<% end %>
|
37
|
-
<% end %>
|
38
|
-
</ul>
|
39
|
-
</section>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>PHCMembers - Member's Listing & Contacts Manager</title>
|
5
|
-
<%= stylesheet_link_tag "phcmembers/application", media: "all" %>
|
6
|
-
<%= javascript_include_tag "phcmembers/application" %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
<div class="container">
|
11
|
-
<div class="row">
|
12
|
-
<div class="col-lg-12">
|
13
|
-
<%= render 'phcnotifi/notifications' %>
|
14
|
-
<%= yield %>
|
15
|
-
</div>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
</body>
|
19
|
-
</html>
|
@@ -1,51 +0,0 @@
|
|
1
|
-
<div class="wrapper wrapper-content">
|
2
|
-
|
3
|
-
<div class="row">
|
4
|
-
|
5
|
-
<div class="col-lg-3">
|
6
|
-
<div class="ibox">
|
7
|
-
<div class="ibox-content">
|
8
|
-
<h5>Number of Members</h5>
|
9
|
-
<h1 class="no-margins"><%= @members_main.count(:all) %></h1>
|
10
|
-
<div class="stat-percent font-bold text-navy"><%= @members_contact.count(:all) %></div>
|
11
|
-
<small>Number of Addresses on File</small>
|
12
|
-
</div>
|
13
|
-
</div>
|
14
|
-
</div>
|
15
|
-
|
16
|
-
<div class="col-lg-3">
|
17
|
-
<div class="ibox">
|
18
|
-
<div class="ibox-content">
|
19
|
-
<h5>Number of Member Listings</h5>
|
20
|
-
<h1 class="no-margins"><%= @members_listing.count(:all) %></h1>
|
21
|
-
<div class="stat-percent font-bold text-navy"><%= @members_main.count(:all) %>/<%= @members_listing.count(:all) %></div>
|
22
|
-
<small>Member/Listing Ratio</small>
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
|
27
|
-
<div class="col-lg-3">
|
28
|
-
<div class="ibox">
|
29
|
-
<div class="ibox-content">
|
30
|
-
<h5>Number of Directory Categories</h5>
|
31
|
-
<h1 class="no-margins"><%= @directory_category.count(:all) %></h1>
|
32
|
-
<div class="stat-percent font-bold text-navy"><%= @directory_catlists.count(:all) %>/<%= @directory_category.count(:all) %></div>
|
33
|
-
<small>Listing/Caegory Ratio</small>
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
</div>
|
37
|
-
|
38
|
-
<div class="col-lg-3">
|
39
|
-
<div class="ibox">
|
40
|
-
<div class="ibox-content">
|
41
|
-
<h5>Number of Active Listings</h5>
|
42
|
-
<h1 class="no-margins"><%= @directory_catlists.count(:all) %></h1>
|
43
|
-
<div class="stat-percent font-bold text-danger"><%= @members_listing.count(:all) - @directory_catlists.count(:all) %></div>
|
44
|
-
<small>Listings Deactived</small>
|
45
|
-
</div>
|
46
|
-
</div>
|
47
|
-
</div>
|
48
|
-
|
49
|
-
</div>
|
50
|
-
|
51
|
-
</div>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<%= form_for([@directory_catlist.category, @directory_catlist], url: directory_category_catlists_path) do |f| %>
|
2
|
-
|
3
|
-
<!-- PHC-Notifi Render Validation -->
|
4
|
-
<%= render 'phcnotifi/validations', :object => @directory_catlist %>
|
5
|
-
|
6
|
-
<div class="form-group field_with_errors">
|
7
|
-
<label>Select a Listing</label>
|
8
|
-
<%= collection_select(:directory_catlist, :listing_id, Phcmembers::Members::Listing.order('mlcompanyname'), :id, :mlcompanyname, {}, {class: "form-control form-control-sm"}) %>
|
9
|
-
</div>
|
10
|
-
|
11
|
-
<div class="actions">
|
12
|
-
<%= f.submit "Submit", class: "btn btn-primary" %>
|
13
|
-
</div>
|
14
|
-
|
15
|
-
<% end %>
|
@@ -1,37 +0,0 @@
|
|
1
|
-
<!-- Breadcrumbs -->
|
2
|
-
<div class="row">
|
3
|
-
<div class="col-lg-12">
|
4
|
-
<h2>Directory Categories & Listings</h2>
|
5
|
-
<ol class="breadcrumb">
|
6
|
-
<li><%= link_to "Home", directory_root_path %></li>
|
7
|
-
<li class="active"><%= link_to "Directory Categories", directory_categories_path %></li>
|
8
|
-
</ol>
|
9
|
-
</div>
|
10
|
-
</div>
|
11
|
-
|
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
|
-
Category Listings for <%= @category.catname %>
|
19
|
-
</div>
|
20
|
-
<div class="panel-body">
|
21
|
-
<%= render 'phcnotifi/notifications' %>
|
22
|
-
<table class="table table-bordered table-striped table-hover">
|
23
|
-
<tbody>
|
24
|
-
<% @directory_catlists.each do |directory_catlists| %>
|
25
|
-
<tr>
|
26
|
-
<td><%= directory_catlists.category.catname %></td>
|
27
|
-
<td><%= directory_catlists.listing.mlcompanyname %></td>
|
28
|
-
<td><%= link_to 'Destroy', directory_category_catlist_path(directory_catlists.category, directory_catlists), class: "btn btn-danger", method: :delete, data: { confirm: 'Are you sure? This will only remove the listing from the directory category. The listing will still be saved with the members profile.' } %></td>
|
29
|
-
</tr>
|
30
|
-
<% end %>
|
31
|
-
</tbody>
|
32
|
-
</table>
|
33
|
-
<%= link_to 'New Listing', new_directory_category_catlist_path, class: "btn btn-primary" %>
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
</div>
|
37
|
-
</div>
|
@@ -1,26 +0,0 @@
|
|
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 Listing for <%= @category.catname %></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 'phcnotifi/notifications' %>
|
22
|
-
<%= render 'form' %>
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
</div>
|
@@ -1,54 +0,0 @@
|
|
1
|
-
<%= form_for([@members_listing.main, @members_listing], url: members_main_listings_path) do |f| %>
|
2
|
-
|
3
|
-
<!-- PHC-Notifi Render Validation -->
|
4
|
-
<%= render 'phcnotifi/validations', :object => @members_listing %>
|
5
|
-
|
6
|
-
<div class="form-group field_with_errors">
|
7
|
-
<label><%= f.label :mlcontactname, "Company Contact" %></label>
|
8
|
-
<%= f.text_field :mlcontactname, class: 'form-control', placeholder: 'Contact Name for Company' %>
|
9
|
-
</div>
|
10
|
-
<div class="form-group field_with_errors">
|
11
|
-
<label><%= f.label :mlcompanyname, "Company/Organization's Name*" %></label>
|
12
|
-
<%= f.text_field :mlcompanyname, class: 'form-control', placeholder: 'Name of Business or Organization' %>
|
13
|
-
</div>
|
14
|
-
<div class="form-group field_with_errors">
|
15
|
-
<label><%= f.label :mladdressl1, "Address Line1*" %></label>
|
16
|
-
<%= f.text_field :mladdressl1, class: 'form-control', placeholder: 'Main Street Address' %>
|
17
|
-
</div>
|
18
|
-
<div class="form-group field_with_errors">
|
19
|
-
<label><%= f.label :mladdressl2, "Address Line2" %></label>
|
20
|
-
<%= f.text_field :mladdressl2, class: 'form-control', placeholder: 'Adress Info Like Box or POBox Number' %>
|
21
|
-
</div>
|
22
|
-
<div class="form-group field_with_errors">
|
23
|
-
<label><%= f.label :mlcity, "City" %></label>
|
24
|
-
<%= f.text_field :mlcity, class: 'form-control', placeholder: 'City' %>
|
25
|
-
</div>
|
26
|
-
<div class="form-group field_with_errors">
|
27
|
-
<label><%= f.label :mlprovince, "Province or State" %></label>
|
28
|
-
<%= f.text_field :mlprovince, class: 'form-control', placeholder: 'Province or State' %>
|
29
|
-
</div>
|
30
|
-
<div class="form-group field_with_errors">
|
31
|
-
<label><%= f.label :mlcountry, "Country" %></label>
|
32
|
-
<%= f.text_field :mlcountry, class: 'form-control', placeholder: 'Country' %>
|
33
|
-
</div>
|
34
|
-
<div class="form-group field_with_errors">
|
35
|
-
<label><%= f.label :mlpostalcode, "PostalCode" %></label>
|
36
|
-
<%= f.text_field :mlpostalcode, class: 'form-control', placeholder: 'PostalCode' %>
|
37
|
-
</div>
|
38
|
-
<div class="form-group field_with_errors">
|
39
|
-
<label><%= f.label :mlphone, "Listing Phone Number" %></label>
|
40
|
-
<%= f.text_field :mlphone, class: 'form-control', placeholder: 'General Company Number' %>
|
41
|
-
</div>
|
42
|
-
<div class="form-group field_with_errors">
|
43
|
-
<label><%= f.label :mlwebsite, "Company Website" %></label>
|
44
|
-
<%= f.text_field :mlwebsite, class: 'form-control', placeholder: 'Company Website' %>
|
45
|
-
</div>
|
46
|
-
<div class="form-group field_with_errors">
|
47
|
-
<label><%= f.label :mlemail, "Listing Email" %></label>
|
48
|
-
<%= f.text_field :mlemail, class: 'form-control', placeholder: 'Company General Email' %>
|
49
|
-
</div>
|
50
|
-
<div class="actions">
|
51
|
-
<%= f.submit "Submit", class: "btn btn-primary" %>
|
52
|
-
</div>
|
53
|
-
|
54
|
-
<% end %>
|
@@ -1,54 +0,0 @@
|
|
1
|
-
<%= form_for([@members_listing.main, @members_listing], url: members_main_listing_path, method: :patch) do |f| %>
|
2
|
-
|
3
|
-
<!-- PHC-Notifi Render Validation -->
|
4
|
-
<%= render 'phcnotifi/validations', :object => @members_listing %>
|
5
|
-
|
6
|
-
<div class="form-group field_with_errors">
|
7
|
-
<label><%= f.label :mlcontactname, "Company Contact" %></label>
|
8
|
-
<%= f.text_field :mlcontactname, class: 'form-control', placeholder: 'Contact Name for Company' %>
|
9
|
-
</div>
|
10
|
-
<div class="form-group field_with_errors">
|
11
|
-
<label><%= f.label :mlcompanyname, "Company/Organization's Name*" %></label>
|
12
|
-
<%= f.text_field :mlcompanyname, class: 'form-control', placeholder: 'Name of Business or Organization' %>
|
13
|
-
</div>
|
14
|
-
<div class="form-group field_with_errors">
|
15
|
-
<label><%= f.label :mladdressl1, "Address Line1*" %></label>
|
16
|
-
<%= f.text_field :mladdressl1, class: 'form-control', placeholder: 'Main Street Address' %>
|
17
|
-
</div>
|
18
|
-
<div class="form-group field_with_errors">
|
19
|
-
<label><%= f.label :mladdressl2, "Address Line2" %></label>
|
20
|
-
<%= f.text_field :mladdressl2, class: 'form-control', placeholder: 'Adress Info Like Box or POBox Number' %>
|
21
|
-
</div>
|
22
|
-
<div class="form-group field_with_errors">
|
23
|
-
<label><%= f.label :mlcity, "City" %></label>
|
24
|
-
<%= f.text_field :mlcity, class: 'form-control', placeholder: 'City' %>
|
25
|
-
</div>
|
26
|
-
<div class="form-group field_with_errors">
|
27
|
-
<label><%= f.label :mlprovince, "Province or State" %></label>
|
28
|
-
<%= f.text_field :mlprovince, class: 'form-control', placeholder: 'Province or State' %>
|
29
|
-
</div>
|
30
|
-
<div class="form-group field_with_errors">
|
31
|
-
<label><%= f.label :mlcountry, "Country" %></label>
|
32
|
-
<%= f.text_field :mlcountry, class: 'form-control', placeholder: 'Country' %>
|
33
|
-
</div>
|
34
|
-
<div class="form-group field_with_errors">
|
35
|
-
<label><%= f.label :mlpostalcode, "PostalCode" %></label>
|
36
|
-
<%= f.text_field :mlpostalcode, class: 'form-control', placeholder: 'PostalCode' %>
|
37
|
-
</div>
|
38
|
-
<div class="form-group field_with_errors">
|
39
|
-
<label><%= f.label :mlphone, "Listing Phone Number" %></label>
|
40
|
-
<%= f.text_field :mlphone, class: 'form-control', placeholder: 'General Company Number' %>
|
41
|
-
</div>
|
42
|
-
<div class="form-group field_with_errors">
|
43
|
-
<label><%= f.label :mlwebsite, "Company Website" %></label>
|
44
|
-
<%= f.text_field :mlwebsite, class: 'form-control', placeholder: 'Company Website' %>
|
45
|
-
</div>
|
46
|
-
<div class="form-group field_with_errors">
|
47
|
-
<label><%= f.label :mlemail, "Listing Email" %></label>
|
48
|
-
<%= f.text_field :mlemail, class: 'form-control', placeholder: 'Company General Email' %>
|
49
|
-
</div>
|
50
|
-
<div class="actions">
|
51
|
-
<%= f.submit "Submit", class: "btn btn-primary" %>
|
52
|
-
</div>
|
53
|
-
|
54
|
-
<% end %>
|
@@ -1,27 +0,0 @@
|
|
1
|
-
<!-- Bread Crumbs -->
|
2
|
-
<div class="row">
|
3
|
-
<div class="col-lg-12">
|
4
|
-
<h2>Member's Listing 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_listings_path %></li>
|
9
|
-
<li class="active">Edit Listing for Member</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
|
-
Edit Listing for Member
|
20
|
-
</div>
|
21
|
-
<div class="panel-body">
|
22
|
-
<%= render 'phcnotifi/notifications' %>
|
23
|
-
<%= render 'formpatch' %>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
</div>
|
@@ -1,58 +0,0 @@
|
|
1
|
-
<!-- Bread Crumbs -->
|
2
|
-
<div class="row">
|
3
|
-
<div class="col-lg-12">
|
4
|
-
<h2>Member's Listing 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 class="active">Member's Directory Listing Index</li>
|
9
|
-
</ol>
|
10
|
-
</div>
|
11
|
-
</div>
|
12
|
-
|
13
|
-
<!-- Main Information -->
|
14
|
-
<div class="row">
|
15
|
-
<div class="col-lg-12">
|
16
|
-
<div class="panel panel-primary">
|
17
|
-
<div class="panel-heading">
|
18
|
-
Member's Directory Listing Index
|
19
|
-
</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>Contact Name</th>
|
26
|
-
<th>Company Name</th>
|
27
|
-
<th>City</th>
|
28
|
-
<th>Country</th>
|
29
|
-
<th>Phone Number</th>
|
30
|
-
<th>Email</th>
|
31
|
-
<th></th>
|
32
|
-
</tr>
|
33
|
-
</thead>
|
34
|
-
<tbody>
|
35
|
-
<% @members_listings.each do |members_listing| %>
|
36
|
-
<tr>
|
37
|
-
<td><%= members_listing.mlcontactname %></td>
|
38
|
-
<td><%= members_listing.mlcompanyname %></td>
|
39
|
-
<td><%= members_listing.mlcity %></td>
|
40
|
-
<td><%= members_listing.mlcountry %></td>
|
41
|
-
<td><%= members_listing.mlphone %></td>
|
42
|
-
<td><%= members_listing.mlemail %></td>
|
43
|
-
<td>
|
44
|
-
<div class="btn-group" role="group" aria-label="Member Listings Group">
|
45
|
-
<%= link_to 'Details', members_main_listing_path(members_listing.main, members_listing), class: "btn btn-primary" %>
|
46
|
-
<%= link_to 'Edit', edit_members_main_listing_path(members_listing.main, members_listing), class: "btn btn-primary" %>
|
47
|
-
<%= link_to 'Delete', members_main_listing_path(members_listing.main, members_listing), class: "btn btn-danger", method: :delete, data: { confirm: 'Are you sure? This will also remove this listing from the online directories.' } %>
|
48
|
-
</div>
|
49
|
-
</td>
|
50
|
-
</tr>
|
51
|
-
<% end %>
|
52
|
-
</tbody>
|
53
|
-
</table>
|
54
|
-
<%= link_to 'New Member Listing', new_members_main_listing_path, class: "btn btn-primary" %>
|
55
|
-
</div>
|
56
|
-
</div>
|
57
|
-
</div>
|
58
|
-
</div>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<!-- Bread Crumbs -->
|
2
|
-
<div class="row">
|
3
|
-
<div class="col-lg-12">
|
4
|
-
<h2>Member's Listing 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_listings_path %></li>
|
9
|
-
<li class="active">Create a New Listing for Member</li>
|
10
|
-
</ol>
|
11
|
-
</div>
|
12
|
-
</div>
|
13
|
-
|
14
|
-
<!-- Main Content -->
|
15
|
-
<div class="wrapper wrapper-content">
|
16
|
-
<div class="panel panel-primary">
|
17
|
-
<div class="panel-heading">
|
18
|
-
Create a New Listing for Member
|
19
|
-
</div>
|
20
|
-
<div class="panel-body">
|
21
|
-
<%= render 'phcnotifi/notifications' %>
|
22
|
-
<%= render 'form' %>
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
</div>
|
@@ -1,56 +0,0 @@
|
|
1
|
-
<p id="notice"><%= notice %></p>
|
2
|
-
|
3
|
-
<p>
|
4
|
-
<strong>Mlcontactname:</strong>
|
5
|
-
<%= @members_listing.mlcontactname %>
|
6
|
-
</p>
|
7
|
-
|
8
|
-
<p>
|
9
|
-
<strong>Mlcompanyname:</strong>
|
10
|
-
<%= @members_listing.mlcompanyname %>
|
11
|
-
</p>
|
12
|
-
|
13
|
-
<p>
|
14
|
-
<strong>Mladdressl1:</strong>
|
15
|
-
<%= @members_listing.mladdressl1 %>
|
16
|
-
</p>
|
17
|
-
|
18
|
-
<p>
|
19
|
-
<strong>Mladdressl2:</strong>
|
20
|
-
<%= @members_listing.mladdressl2 %>
|
21
|
-
</p>
|
22
|
-
|
23
|
-
<p>
|
24
|
-
<strong>Mlcity:</strong>
|
25
|
-
<%= @members_listing.mlcity %>
|
26
|
-
</p>
|
27
|
-
|
28
|
-
<p>
|
29
|
-
<strong>Mlprovince:</strong>
|
30
|
-
<%= @members_listing.mlprovince %>
|
31
|
-
</p>
|
32
|
-
|
33
|
-
<p>
|
34
|
-
<strong>Mlcountry:</strong>
|
35
|
-
<%= @members_listing.mlcountry %>
|
36
|
-
</p>
|
37
|
-
|
38
|
-
<p>
|
39
|
-
<strong>Mlpostalcode:</strong>
|
40
|
-
<%= @members_listing.mlpostalcode %>
|
41
|
-
</p>
|
42
|
-
|
43
|
-
<p>
|
44
|
-
<strong>Mlphone:</strong>
|
45
|
-
<%= @members_listing.mlphone %>
|
46
|
-
</p>
|
47
|
-
|
48
|
-
<p>
|
49
|
-
<strong>Mlwebsite:</strong>
|
50
|
-
<%= @members_listing.mlwebsite %>
|
51
|
-
</p>
|
52
|
-
|
53
|
-
<p>
|
54
|
-
<strong>Mlemail:</strong>
|
55
|
-
<%= @members_listing.mlemail %>
|
56
|
-
</p>
|