phcdevworks_members 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c829b5ca8d8417990c88327bfa70421c61acd9501982296501221e6ec5aed359
4
- data.tar.gz: 99470cbfa7765f10ec442c6058292418039389bc2d3702b31e76e52296330d70
3
+ metadata.gz: d3e231acc12e0ca7dcf0f321863e58bdca77b2e8f6294b8158f9bb1e82a1ec22
4
+ data.tar.gz: 30fedb60c41d75540af5af9123eb2ac2fa436633854252c8d9013a1ec009add1
5
5
  SHA512:
6
- metadata.gz: 31028ba9ef770bf8bffe70c30afabd5c9e5082668588212cd6a60d69872809a3239c1c2a29e9e008d512ae5011f8a5d6f0098440fe9f6e928da157428c27ab62
7
- data.tar.gz: c040e2284dd491de68b23943c794a3d4bb507c59ad01bbbd67c41b94568dc327c791a2fd0387ff73922099805dfe59e0793ba2aa811763e26baea3dc977ad1d9
6
+ metadata.gz: 259d8788a7b3b5332b41301f04d506f95ba30affba3b4d6ec2c092d1bbf64f1e1f5bb5950b4bf8808cbe71f5ccfb3c13404ceb5422bf69e224f92bd55216367e
7
+ data.tar.gz: ecb88fb28f75327c9b3b716cae2e3a522b66de3e946882940a9eb4c0fcfc90842c7605315f07e8b99b035173b40beb87f6ce3b64ddfe645d3fb4cb554632d8e2
@@ -35,6 +35,7 @@ module PhcdevworksMembers
35
35
  def create
36
36
  @directory_category = Directory::Category.new(directory_category_params)
37
37
  @directory_category.user_id = current_user.id
38
+ @directory_category.org_id = current_user.org_id
38
39
  respond_to do |format|
39
40
  if @directory_category.save
40
41
  format.html { redirect_to directory_categories_path, :flash => { :success => 'Directory Category has been Created.' }}
@@ -37,6 +37,7 @@ module PhcdevworksMembers
37
37
  def create
38
38
  @member_address = member_profile.addresses.create(member_address_params)
39
39
  @member_address.user_id = current_user.id
40
+ @member_address.org_id = current_user.org_id
40
41
  respond_to do |format|
41
42
  if @member_address.save
42
43
  format.html { redirect_to member_profile_addresses_url, :flash => { :success => 'Member Address has been Added' }}
@@ -37,6 +37,7 @@ module PhcdevworksMembers
37
37
  def create
38
38
  @member_listing = member_profile.listings.create(member_listing_params)
39
39
  @member_listing.user_id = current_user.id
40
+ @member_listing.org_id = current_user.org_id
40
41
  respond_to do |format|
41
42
  if @member_listing.save
42
43
  format.html { redirect_to member_profile_listings_url, :flash => { :success => 'Member Listing has been Added' }}
@@ -36,6 +36,7 @@ module PhcdevworksMembers
36
36
  def create
37
37
  @member_profile = Member::Profile.new(member_profile_params)
38
38
  @member_profile.user_id = current_user.id
39
+ @member_profile.org_id = current_user.org_id
39
40
  respond_to do |format|
40
41
  if @member_profile.save
41
42
  format.html { redirect_to @member_profile, :flash => { :success => 'Member Profile has been Added.' }}
@@ -136,7 +136,6 @@
136
136
  <% end %>
137
137
 
138
138
  <% if defined?phcdevworks_real_estate %>
139
-
140
139
  <!-- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
141
140
  <li class="nav-header">Listing Management</li>
142
141
  <li class="has-sub">
@@ -162,7 +161,34 @@
162
161
  </ul>
163
162
  </li>
164
163
  <!-- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
165
-
164
+ <% end %>
165
+
166
+ <% if defined?phcdevworks_tutorials %>
167
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
168
+ <li class="nav-header">Tutorials</li>
169
+ <li class="has-sub">
170
+ <a href="javascript:;">
171
+ <b class="caret"></b>
172
+ <i class="fad fa-chalkboard-teacher"></i>
173
+ <span>Tutorial Posts</span>
174
+ </a>
175
+ <ul class="sub-menu">
176
+ <li class="<%= phc_menu_active_controller('phcdevworks_tutorials/tutorials/posts') %>"><%= link_to 'Tutorial Index', phcdevworks_tutorials.tutorial_posts_path %></li>
177
+ <li class="<%= phc_menu_active_controller('phcdevworks_tutorials/tutorials/posts#new') %>"><%= link_to 'New Tutorial', phcdevworks_tutorials.new_tutorial_post_path %></li>
178
+ </ul>
179
+ </li>
180
+ <li class="has-sub">
181
+ <a href="javascript:;">
182
+ <b class="caret"></b>
183
+ <i class="fad fa-sitemap"></i>
184
+ <span>Tutorial Categories</span>
185
+ </a>
186
+ <ul class="sub-menu">
187
+ <li class="<%= phc_menu_active_controller('phcdevworks_tutorials/tutorials/categories') %>"><%= link_to 'Category Index', phcdevworks_tutorials.tutorial_categories_path %></li>
188
+ <li class="<%= phc_menu_active_controller('phcdevworks_tutorials/tutorials/categories#new') %>"><%= link_to 'New Category', phcdevworks_tutorials.new_tutorial_category_path %></li>
189
+ </ul>
190
+ </li>
191
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
166
192
  <% end %>
167
193
 
168
194
  <% if current_user && current_user.admin? %>
@@ -2,13 +2,13 @@
2
2
  <%= form_with(model: @directory_category, local: true) do |form| %>
3
3
 
4
4
  <!-- PHCNotifi Render Validation -->
5
- <%= render 'phcdevworks_notifications/bootstrap/validations', :object => @directory_category %>
5
+ <%= render "phcdevworks_notifications/bootstrap/validations", :object => @directory_category %>
6
6
  <!-- PHCNotifi Render Validation -->
7
7
 
8
8
  <!-- Form Input Fields -->
9
9
  <div class="form-group field_with_errors">
10
10
  <%= form.label :category_name, "Category Name" %>
11
- <%= form.text_field :category_name, class: "form-control", placeholder: "Directory Category" %>
11
+ <%= form.text_field :category_name, placeholder: "Directory Category", class: "form-control" %>
12
12
  </div>
13
13
  <!-- Form Input Fields -->
14
14
 
@@ -2,37 +2,37 @@
2
2
  <%= form_with(model: [ @member_profile, @member_address], url: form_url, local: true) do |form| %>
3
3
 
4
4
  <!-- PHCNotifi Render Validation -->
5
- <%= render 'phcdevworks_notifications/bootstrap/validations', :object => @member_address %>
5
+ <%= render "phcdevworks_notifications/bootstrap/validations", :object => @member_address %>
6
6
  <!-- PHCNotifi Render Validation -->
7
7
 
8
8
  <!-- Form Input Fields -->
9
9
  <div class="form-group field_with_errors">
10
10
  <%= form.label :member_address_line_1, "Address Line1" %>
11
- <%= form.text_field :member_address_line_1, class: "form-control", placeholder: "Address Line 1 - Street Address" %>
11
+ <%= form.text_field :member_address_line_1, placeholder: "Address Line 1 - Street Address", class: "form-control" %>
12
12
  </div>
13
13
  <div class="form-group field_with_errors">
14
14
  <%= form.label :member_address_line_2, "Address Line2" %>
15
- <%= form.text_field :member_address_line_2, class: "form-control", placeholder: "Address Line 2 - Box - Suite - Floor" %>
15
+ <%= form.text_field :member_address_line_2, placeholder: "Address Line 2 - Box - Suite - Floor", class: "form-control" %>
16
16
  </div>
17
17
  <div class="form-group field_with_errors">
18
18
  <%= form.label :member_address_city, "City" %>
19
- <%= form.text_field :member_address_city, class: "form-control", placeholder: "City" %>
19
+ <%= form.text_field :member_address_city, placeholder: "City", class: "form-control" %>
20
20
  </div>
21
21
  <div class="form-group field_with_errors">
22
22
  <%= form.label :member_address_province, "Province/State" %>
23
- <%= form.text_field :member_address_province, class: "form-control", placeholder: "Province/State" %>
23
+ <%= form.text_field :member_address_province, placeholder: "Province/State", class: "form-control" %>
24
24
  </div>
25
25
  <div class="form-group field_with_errors">
26
26
  <%= form.label :member_address_country, "Country" %>
27
- <%= form.text_field :member_address_country, class: "form-control", placeholder: "Country" %>
27
+ <%= form.text_field :member_address_country, placeholder: "Country", class: "form-control" %>
28
28
  </div>
29
29
  <div class="form-group field_with_errors">
30
30
  <%= form.label :member_address_postal_code, "PostalCode" %>
31
- <%= form.text_field :member_address_postal_code, class: "form-control", placeholder: "PostalCode" %>
31
+ <%= form.text_field :member_address_postal_code, placeholder: "PostalCode", class: "form-control" %>
32
32
  </div>
33
33
  <div class="form-group field_with_errors">
34
34
  <%= form.label :member_address_type, "Address Type" %>
35
- <%= form.select :member_address_type, [['Billing Address','Billing'],['Street Address','Street'],['Mailing Address','Mailing'],['Home Address','Home'],['Business Address','Business']], {}, class: "form-control" %>
35
+ <%= form.select :member_address_type, [["Billing Address","Billing"],["Street Address","Street"],["Mailing Address","Mailing"],["Home Address","Home"],["Business Address","Business"]], {} %>
36
36
  </div>
37
37
  <!-- Form Input Fields -->
38
38
 
@@ -2,53 +2,53 @@
2
2
  <%= form_with(model: [ @member_profile, @member_listing], url: form_url, local: true) do |form| %>
3
3
 
4
4
  <!-- PHCNotifi Render Validation -->
5
- <%= render 'phcdevworks_notifications/bootstrap/validations', :object => @member_listing %>
5
+ <%= render "phcdevworks_notifications/bootstrap/validations", :object => @member_listing %>
6
6
  <!-- PHCNotifi Render Validation -->
7
7
 
8
8
  <!-- Form Input Fields -->
9
9
  <div class="form-group field_with_errors">
10
10
  <%= form.label :listing_company_name, "Company Name" %>
11
- <%= form.text_field :listing_company_name, class: "form-control", placeholder: "Business/Organization: Name" %>
11
+ <%= form.text_field :listing_company_name, placeholder: "Business/Organization: Name", class: "form-control" %>
12
12
  </div>
13
13
  <div class="form-group field_with_errors">
14
14
  <%= form.label :listing_contact_name, "Contact Name" %>
15
- <%= form.text_field :listing_contact_name, class: "form-control", placeholder: "Business/Organization: Contact Person" %>
15
+ <%= form.text_field :listing_contact_name, placeholder: "Business/Organization: Contact Person", class: "form-control" %>
16
16
  </div>
17
17
  <div class="form-group field_with_errors">
18
18
  <%= form.label :listing_address_line_1, "Address Line 1" %>
19
- <%= form.text_field :listing_address_line_1, class: "form-control", placeholder: "Location: Street Address" %>
19
+ <%= form.text_field :listing_address_line_1, placeholder: "Location: Street Address", class: "form-control" %>
20
20
  </div>
21
21
  <div class="form-group field_with_errors">
22
22
  <%= form.label :listing_address_line_2, "Address Line 2" %>
23
- <%= form.text_field :listing_address_line_2, class: "form-control", placeholder: "Location: Box - Suite - Floor" %>
23
+ <%= form.text_field :listing_address_line_2, placeholder: "Location: Box - Suite - Floor", class: "form-control" %>
24
24
  </div>
25
25
  <div class="form-group field_with_errors">
26
26
  <%= form.label :listing_city, "City" %>
27
- <%= form.text_field :listing_city, class: "form-control", placeholder: "Location: City" %>
27
+ <%= form.text_field :listing_city, placeholder: "Location: City", class: "form-control" %>
28
28
  </div>
29
29
  <div class="form-group field_with_errors">
30
30
  <%= form.label :listing_province, "Province/State" %>
31
- <%= form.text_field :listing_province, class: "form-control", placeholder: "Location: Province/State" %>
31
+ <%= form.text_field :listing_province, placeholder: "Location: Province/State", class: "form-control" %>
32
32
  </div>
33
33
  <div class="form-group field_with_errors">
34
34
  <%= form.label :listing_country, "Country" %>
35
- <%= form.text_field :listing_country, class: "form-control", placeholder: "Country" %>
35
+ <%= form.text_field :listing_country, placeholder: "Country", class: "form-control" %>
36
36
  </div>
37
37
  <div class="form-group field_with_errors">
38
38
  <%= form.label :listing_postal_code, "Postal Code" %><br>
39
- <%= form.text_field :listing_postal_code, class: "form-control", placeholder: "Location: PostalCode" %>
39
+ <%= form.text_field :listing_postal_code, placeholder: "Location: PostalCode", class: "form-control" %>
40
40
  </div>
41
41
  <div class="form-group field_with_errors">
42
42
  <%= form.label :listing_phone, "Business Phone Number" %>
43
- <%= form.text_field :listing_phone, class: "form-control", placeholder: "Business/Organization: PhoneNumber (Public)" %>
43
+ <%= form.text_field :listing_phone, placeholder: "Business/Organization: PhoneNumber (Public)", class: "form-control" %>
44
44
  </div>
45
45
  <div class="form-group field_with_errors">
46
46
  <%= form.label :listing_contact_email, "Business General Email" %>
47
- <%= form.text_field :listing_contact_email, class: "form-control", placeholder: "Business/Organization: Email Address (Public)" %>
47
+ <%= form.text_field :listing_contact_email, placeholder: "Business/Organization: Email Address (Public)", class: "form-control" %>
48
48
  </div>
49
49
  <div class="form-group field_with_errors">
50
50
  <%= form.label :listing_website, "Business Website" %>
51
- <%= form.text_field :listing_website, class: "form-control", placeholder: "Business/Organization: Website (Public)" %>
51
+ <%= form.text_field :listing_website, placeholder: "Business/Organization: Website (Public)", class: "form-control" %>
52
52
  </div>
53
53
  <div class="form-group field_with_errors">
54
54
  <%= form.collection_check_boxes :category_ids, PhcdevworksMembers::Directory::Category.all, :id, :category_name do |listing_category| %>
@@ -2,33 +2,33 @@
2
2
  <%= form_with(model: @member_profile, local: true) do |form| %>
3
3
 
4
4
  <!-- PHCNotifi Render Validation -->
5
- <%= render 'phcdevworks_notifications/bootstrap/validations', :object => @member_profile %>
5
+ <%= render "phcdevworks_notifications/bootstrap/validations", :object => @member_profile %>
6
6
  <!-- PHCNotifi Render Validation -->
7
7
 
8
8
  <!-- Form Input Fields -->
9
9
  <div class="form-group field_with_errors">
10
10
  <%= form.label :member_profile_first_name, "First Name*" %>
11
- <%= form.text_field :member_profile_first_name, class: 'form-control', placeholder: 'First Name' %>
11
+ <%= form.text_field :member_profile_first_name, placeholder: "First Name", class: "form-control" %>
12
12
  </div>
13
13
  <div class="form-group field_with_errors">
14
14
  <%= form.label :member_profile_last_name, "Last Name*" %>
15
- <%= form.text_field :member_profile_last_name, class: 'form-control', placeholder: 'Last Name' %>
15
+ <%= form.text_field :member_profile_last_name, placeholder: "Last Name", class: "form-control" %>
16
16
  </div>
17
17
  <div class="form-group field_with_errors">
18
18
  <%= form.label :member_profile_title, "Job Title" %>
19
- <%= form.text_field :member_profile_title, class: 'form-control', placeholder: 'Job Title/Salutation' %>
19
+ <%= form.text_field :member_profile_title, placeholder: "Job Title/Salutation", class: "form-control" %>
20
20
  </div>
21
21
  <div class="form-group field_with_errors">
22
22
  <%= form.label :member_profile_email, "Contact Email Address*" %>
23
- <%= form.text_field :member_profile_email, class: 'form-control', placeholder: 'Contact Email (Will Remain Private)' %>
23
+ <%= form.text_field :member_profile_email, placeholder: "Contact Email (Will Remain Private)", class: "form-control masked" %>
24
24
  </div>
25
25
  <div class="form-group field_with_errors">
26
26
  <%= form.label :member_profile_phone, "Contact Phone Number*" %>
27
- <%= form.text_field :member_profile_phone, class: 'form-control masked', placeholder: 'Contact Phone Number (Will Remain Private)', data: {format: '(999) 999-9999', placeholder: 'x'} %>
27
+ <%= form.text_field :member_profile_phone, placeholder: "Contact Phone Number (Will Remain Private)", data: {format: "(999) 999-9999", placeholder: "x"}, class: "form-control masked" %>
28
28
  </div>
29
29
  <div class="form-group field_with_errors">
30
30
  <%= form.label :member_profile_notes, "Member" %>
31
- <%= form.text_area :member_profile_notes, class: 'form-control masked', placeholder: 'Member Notes' %>
31
+ <%= form.text_area :member_profile_notes, placeholder: "Member Notes", class: "form-control" %>
32
32
  </div>
33
33
  <!-- Form Input Fields -->
34
34
 
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksMembers
2
- VERSION = '2.0.0'
2
+ VERSION = '2.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_members
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-25 00:00:00.000000000 Z
11
+ date: 2019-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -198,14 +198,14 @@ dependencies:
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 1.0.1
201
+ version: 1.1.0
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: 1.0.1
208
+ version: 1.1.0
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: sqlite3
211
211
  requirement: !ruby/object:Gem::Requirement