phcmemberspro 2.1.0 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -5
- data/app/views/phcmemberspro/directory/categories/edit.html.erb +2 -1
- data/app/views/phcmemberspro/directory/categories/index.html.erb +2 -1
- data/app/views/phcmemberspro/directory/categories/new.html.erb +1 -0
- data/app/views/phcmemberspro/directory/catlists/_form.html.erb +2 -7
- data/app/views/phcmemberspro/directory/catlists/index.html.erb +2 -1
- data/app/views/phcmemberspro/directory/catlists/new.html.erb +1 -0
- data/app/views/phcmemberspro/members/contacts/edit.html.erb +1 -0
- data/app/views/phcmemberspro/members/contacts/index.html.erb +1 -0
- data/app/views/phcmemberspro/members/contacts/new.html.erb +1 -0
- data/app/views/phcmemberspro/members/contacts/show.html.erb +1 -1
- data/app/views/phcmemberspro/members/listings/edit.html.erb +1 -0
- data/app/views/phcmemberspro/members/listings/index.html.erb +1 -0
- data/app/views/phcmemberspro/members/listings/new.html.erb +1 -0
- data/app/views/phcmemberspro/members/listings/show.html.erb +1 -1
- data/app/views/phcmemberspro/members/mains/edit.html.erb +1 -0
- data/app/views/phcmemberspro/members/mains/index.html.erb +1 -0
- data/app/views/phcmemberspro/members/mains/new.html.erb +1 -0
- data/app/views/phcmemberspro/members/mains/show.html.erb +1 -1
- data/lib/phcmemberspro/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6604df30ad84811a993ae868e8d2aa5bc82ecf9e
|
4
|
+
data.tar.gz: cb6afff8dbc964cf184235ebe57c7c5368bcd199
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb33f6ae992811619697ae53a03acfbc6fe3f81ce72e5ae43eb2a2b40e23e40ad00b93c60598ee7bf04bc1253e7c0f27cee8c8a83732d962fe745ff8b115c718
|
7
|
+
data.tar.gz: e55f88c1882ac040409a47b9c2724c06dc34f8d402a00b89bf141bbddc8bbcdd54ecc42e39713a4e9f1f50269b699e46015c39f2415e9daaf711d9dc4e51a1ec
|
data/README.md
CHANGED
@@ -1,13 +1,36 @@
|
|
1
|
-
|
1
|
+
[![security](https://hakiri.io/github/PHCNetworks/phc-members/master.svg)](https://hakiri.io/github/PHCNetworks/phc-members/master)
|
2
|
+
[![Code Climate](https://codeclimate.com/github/PHCNetworks/phc-members/badges/gpa.svg)](https://codeclimate.com/github/PHCNetworks/phc-members)
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/phcmembers.svg)](https://badge.fury.io/rb/phcmembers)
|
2
4
|
|
3
|
-
|
5
|
+
### PHC-Members (Membership & Directory Engine) Documentation
|
6
|
+
PHC-Members is a membership and web directory engine custom built for our purposes. Code is based on our open sourced phc-members project.
|
7
|
+
|
8
|
+
#### Step 1 - Add PHC-Members to your gemfile
|
9
|
+
|
10
|
+
gem 'phcmembers', '~> 0.9.8'
|
4
11
|
bundle exec install
|
5
12
|
|
6
|
-
#### Step 2
|
13
|
+
#### Step 2 - Add database migration files
|
7
14
|
|
8
15
|
rake railties:install:migrations
|
9
16
|
rake db:migrate
|
10
17
|
|
11
|
-
#### Step 3
|
18
|
+
#### Step 3 - Mount PHC-Members in your Routes File
|
19
|
+
Mount the Engine in your Routes File
|
20
|
+
|
21
|
+
mount Phcmembers::Engine, :at => '/'
|
22
|
+
|
23
|
+
#### Step 4 - Generate Views
|
24
|
+
Generate views for customization and app integration.
|
25
|
+
|
26
|
+
rails generate phcmembers:views
|
27
|
+
|
28
|
+
#### Step 5 - Recompile Assets
|
29
|
+
PHC-Members UI requires bootstrap and fontawesome to operate.
|
30
|
+
|
31
|
+
rake assets:clobber
|
32
|
+
rake assets:precompile
|
12
33
|
|
13
|
-
|
34
|
+
#### Additional Info & Help
|
35
|
+
|
36
|
+
[Past Security Patch Notes](https://github.com/PHCNetworks/phc-members/wiki/Critical-Security-Updates)
|
@@ -13,11 +13,12 @@
|
|
13
13
|
<!-- Main Content -->
|
14
14
|
<div class="row">
|
15
15
|
<div class="col-lg-12">
|
16
|
-
<div class="panel">
|
16
|
+
<div class="panel panel-primary">
|
17
17
|
<div class="panel-heading">
|
18
18
|
Update Category
|
19
19
|
</div>
|
20
20
|
<div class="panel-body">
|
21
|
+
<%= render 'layouts/phcnotifi/components/notifications' %>
|
21
22
|
<%= render 'form' %>
|
22
23
|
</div>
|
23
24
|
</div>
|
@@ -17,6 +17,7 @@
|
|
17
17
|
Directory Categories & Listings
|
18
18
|
</div>
|
19
19
|
<div class="panel-body">
|
20
|
+
<%= render 'layouts/phcnotifi/components/notifications' %>
|
20
21
|
<table class="table table-bordered table-striped table-hover">
|
21
22
|
<thead>
|
22
23
|
<tr>
|
@@ -36,7 +37,7 @@
|
|
36
37
|
</td>
|
37
38
|
<td>
|
38
39
|
<div class="btn-group" role="group" aria-label="Directory Connection Group">
|
39
|
-
|
40
|
+
<%= link_to 'Connect Member Listings', directory_category_catlists_path(directory_category), :class => "btn btn-success" %>
|
40
41
|
</div>
|
41
42
|
</td>
|
42
43
|
</tr>
|
@@ -1,16 +1,11 @@
|
|
1
1
|
<%= form_for([@directory_catlist.category, @directory_catlist], url: directory_category_catlists_path) do |f| %>
|
2
2
|
|
3
3
|
<!-- PHC-Notifi Render Validation -->
|
4
|
-
<%= render 'layouts/phcnotifi/components/validations', :object => @
|
4
|
+
<%= render 'layouts/phcnotifi/components/validations', :object => @directory_catlist %>
|
5
5
|
|
6
6
|
<div class="form-group field_with_errors">
|
7
7
|
<label>Select a Listing</label>
|
8
|
-
<%= collection_select(:directory_catlist, :listing_id,
|
9
|
-
</div>
|
10
|
-
|
11
|
-
<div class="form-group field_with_errors">
|
12
|
-
<label><%= f.label :category_id, "Select a Category" %></label>
|
13
|
-
<%= f.text_field :category_id, class: "form-control", placeholder: "Directory Category" %>
|
8
|
+
<%= collection_select(:directory_catlist, :listing_id, Phcmembers::Members::Listing.order('mlcompanyname'), :id, :mlcompanyname, {}, {class: "form-control form-control-sm"}) %>
|
14
9
|
</div>
|
15
10
|
|
16
11
|
<div class="actions">
|
@@ -18,12 +18,13 @@
|
|
18
18
|
Category Listings for <%= @category.catname %>
|
19
19
|
</div>
|
20
20
|
<div class="panel-body">
|
21
|
+
<%= render 'layouts/phcnotifi/components/notifications' %>
|
21
22
|
<table class="table table-bordered table-striped table-hover">
|
22
23
|
<tbody>
|
23
24
|
<% @directory_catlists.each do |directory_catlists| %>
|
24
25
|
<tr>
|
25
26
|
<td><%= directory_catlists.category.catname %></td>
|
26
|
-
<td
|
27
|
+
<td><%= directory_catlists.listing.mlcompanyname %></td>
|
27
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>
|
28
29
|
</tr>
|
29
30
|
<% end %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcmemberspro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
@@ -317,7 +317,7 @@ dependencies:
|
|
317
317
|
- !ruby/object:Gem::Version
|
318
318
|
version: '2.52'
|
319
319
|
description: PHC-Members Enterprise is open sourced but custom built for our use (updates
|
320
|
-
may break your
|
320
|
+
may break your app).
|
321
321
|
email:
|
322
322
|
- bradley.j.potts@gmail.com
|
323
323
|
executables: []
|