phcdevworks_real_estate 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/phcdevworks_real_estate/property/features.coffee +0 -0
  3. data/app/assets/javascripts/phcdevworks_real_estate/property/listings.coffee +0 -0
  4. data/app/assets/stylesheets/phcdevworks_real_estate/property/features.scss +0 -0
  5. data/app/assets/stylesheets/phcdevworks_real_estate/property/listings.scss +0 -0
  6. data/app/views/layouts/phcdevworks_real_estate/application.html.erb +62 -77
  7. data/app/views/layouts/phcdevworks_real_estate/components/backend/footer/_footer.html.erb +7 -7
  8. data/app/views/layouts/phcdevworks_real_estate/components/backend/navigation/_top_menu.html.erb +37 -37
  9. data/app/views/layouts/phcdevworks_real_estate/components/backend/sidebars/_side_menu.html.erb +257 -239
  10. data/app/views/phcdevworks_real_estate/property/features/_form.html.erb +16 -12
  11. data/app/views/phcdevworks_real_estate/property/features/edit.html.erb +28 -16
  12. data/app/views/phcdevworks_real_estate/property/features/index.html.erb +58 -38
  13. data/app/views/phcdevworks_real_estate/property/features/new.html.erb +28 -16
  14. data/app/views/phcdevworks_real_estate/property/listings/_form.html.erb +101 -84
  15. data/app/views/phcdevworks_real_estate/property/listings/edit.html.erb +28 -16
  16. data/app/views/phcdevworks_real_estate/property/listings/index.html.erb +71 -51
  17. data/app/views/phcdevworks_real_estate/property/listings/new.html.erb +28 -16
  18. data/lib/phcdevworks_real_estate/engine.rb +6 -8
  19. data/lib/phcdevworks_real_estate/version.rb +1 -1
  20. metadata +26 -11
  21. data/app/assets/stylesheets/phcdevworks_real_estate/property/features.css +0 -4
  22. data/app/assets/stylesheets/phcdevworks_real_estate/property/listings.css +0 -4
  23. data/config/initializers/friendly_id.rb +0 -107
@@ -1,10 +1,10 @@
1
- <!-- Title System -->
1
+ <!-- PHCTitleSEO Title Variables -->
2
2
  <% phc_title "Property Listing Manager" %>
3
3
  <% phc_title_tagline "New Property Listing" %>
4
4
  <% phc_breadcrumb_one link_to "Property" %>
5
5
  <% phc_breadcrumb_two link_to "Listings" %>
6
6
  <% phc_breadcrumb_three yield(:phc_title_tagline) %>
7
- <!-- Title System -->
7
+ <!-- PHCTitleSEO Title Variables -->
8
8
 
9
9
  <!-- Page Bradcrumbs -->
10
10
  <ol class="breadcrumb pull-right">
@@ -15,23 +15,35 @@
15
15
  <!-- Page Bradcrumbs -->
16
16
 
17
17
  <!-- Page Header -->
18
- <h1 class="page-header"><%= yield(:phc_title) %></h1>
18
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
19
19
  <!-- Page Header -->
20
-
20
+
21
21
  <!-- Page Content -->
22
- <div class="panel panel-inverse">
23
- <div class="panel-heading">
24
- <div class="panel-heading-btn">
25
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
26
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
27
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
22
+ <div class="row">
23
+ <div class="col-lg-12">
24
+
25
+ <!-- Panel -->
26
+ <div class="panel panel-inverse">
27
+
28
+ <!-- Panel - Heading -->
29
+ <div class="panel-heading">
30
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
31
+ </div>
32
+ <!-- Panel - Heading -->
33
+
34
+ <!-- Panel - Body -->
35
+ <div class="panel-body">
36
+
37
+ <!-- New Form -->
38
+ <%= render "form", property_listing: @property_listing %>
39
+ <!-- New Form -->
40
+
41
+ </div>
42
+ <!-- Panel - Body -->
43
+
28
44
  </div>
29
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
30
- </div>
31
- <div class="panel-body">
32
- <!-- New Form Property Listings -->
33
- <%= render 'form', property_listing: @property_listing %>
34
- <!-- New Form Property Listings -->
45
+ <!-- Panel -->
46
+
35
47
  </div>
36
48
  </div>
37
49
  <!-- Page Content -->
@@ -11,23 +11,21 @@ module PhcdevworksRealEstate
11
11
  require "phcthemes_web_theme_pack"
12
12
 
13
13
  # Load Helper Dependencies
14
- # require "phcdevworks_core"
14
+ require "phcdevworks_core"
15
15
  require "phcdevworks_active_menus"
16
16
  require "phcdevworks_notifications"
17
17
  require "phcdevworks_titleseo"
18
18
 
19
+ # Load Upload Dependencies
20
+ require "aws-sdk-s3"
21
+ require "google-cloud-storage"
22
+ require "mini_magick"
23
+
19
24
  # Load User Accounts
20
25
  require "phcdevworks_accounts"
21
26
 
22
27
  # Engine Namespace
23
28
  isolate_namespace PhcdevworksRealEstate
24
29
 
25
- # Load Requried Helper Files
26
- config.to_prepare do
27
- PhcdevworksActiveMenus::ApplicationController.helper(ApplicationHelper)
28
- PhcdevworksNotifications::ApplicationController.helper(ApplicationHelper)
29
- PhcdevworksTitleseo::ApplicationController.helper(ApplicationHelper)
30
- end
31
-
32
30
  end
33
31
  end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksRealEstate
2
- VERSION = '1.2.0'
2
+ VERSION = '1.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_real_estate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.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-09-29 00:00:00.000000000 Z
11
+ date: 2019-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.1.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: phcdevworks_core
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 1.0.1
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.0.1
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: phcdevworks_active_menus
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -198,14 +212,14 @@ dependencies:
198
212
  requirements:
199
213
  - - "~>"
200
214
  - !ruby/object:Gem::Version
201
- version: 1.2.0
215
+ version: 1.3.0
202
216
  type: :runtime
203
217
  prerelease: false
204
218
  version_requirements: !ruby/object:Gem::Requirement
205
219
  requirements:
206
220
  - - "~>"
207
221
  - !ruby/object:Gem::Version
208
- version: 1.2.0
222
+ version: 1.3.0
209
223
  - !ruby/object:Gem::Dependency
210
224
  name: sqlite3
211
225
  requirement: !ruby/object:Gem::Requirement
@@ -220,9 +234,9 @@ dependencies:
220
234
  - - "~>"
221
235
  - !ruby/object:Gem::Version
222
236
  version: '1.4'
223
- description: Ruby on Rails 6 real estate listings management.
237
+ description: Ruby on Rails 6 Real Estate Property Listings Management Engine.
224
238
  email:
225
- - developers@phcdevworks.com
239
+ - info@phcdevworks.com
226
240
  executables: []
227
241
  extensions: []
228
242
  extra_rdoc_files: []
@@ -232,9 +246,11 @@ files:
232
246
  - Rakefile
233
247
  - app/assets/config/phcdevworks_real_estate_manifest.js
234
248
  - app/assets/javascripts/phcdevworks_real_estate/application.js
249
+ - app/assets/javascripts/phcdevworks_real_estate/property/features.coffee
250
+ - app/assets/javascripts/phcdevworks_real_estate/property/listings.coffee
235
251
  - app/assets/stylesheets/phcdevworks_real_estate/application.scss
236
- - app/assets/stylesheets/phcdevworks_real_estate/property/features.css
237
- - app/assets/stylesheets/phcdevworks_real_estate/property/listings.css
252
+ - app/assets/stylesheets/phcdevworks_real_estate/property/features.scss
253
+ - app/assets/stylesheets/phcdevworks_real_estate/property/listings.scss
238
254
  - app/controllers/phcdevworks_real_estate/application_controller.rb
239
255
  - app/controllers/phcdevworks_real_estate/property/features_controller.rb
240
256
  - app/controllers/phcdevworks_real_estate/property/listings_controller.rb
@@ -261,7 +277,6 @@ files:
261
277
  - app/views/phcdevworks_real_estate/property/listings/index.html.erb
262
278
  - app/views/phcdevworks_real_estate/property/listings/new.html.erb
263
279
  - app/views/phcdevworks_real_estate/property/listings/show.html.erb
264
- - config/initializers/friendly_id.rb
265
280
  - config/routes.rb
266
281
  - db/migrate/20180918034641_create_join_table_features_listings.rb
267
282
  - db/migrate/20190824010811_create_phcdevworks_real_estate_property_listings.rb
@@ -289,8 +304,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
289
304
  - !ruby/object:Gem::Version
290
305
  version: '0'
291
306
  requirements: []
292
- rubygems_version: 3.0.4
307
+ rubygems_version: 3.0.6
293
308
  signing_key:
294
309
  specification_version: 4
295
- summary: Rails 6 Real Estate Engine
310
+ summary: Rails 6 - Engine - Real Estate
296
311
  test_files: []
@@ -1,4 +0,0 @@
1
- /*
2
- Place all the styles related to the matching controller here.
3
- They will automatically be included in application.css.
4
- */
@@ -1,4 +0,0 @@
1
- /*
2
- Place all the styles related to the matching controller here.
3
- They will automatically be included in application.css.
4
- */
@@ -1,107 +0,0 @@
1
- # FriendlyId Global Configuration
2
- #
3
- # Use this to set up shared configuration options for your entire application.
4
- # Any of the configuration options shown here can also be applied to single
5
- # models by passing arguments to the `friendly_id` class method or defining
6
- # methods in your model.
7
- #
8
- # To learn more, check out the guide:
9
- #
10
- # http://norman.github.io/friendly_id/file.Guide.html
11
-
12
- FriendlyId.defaults do |config|
13
- # ## Reserved Words
14
- #
15
- # Some words could conflict with Rails's routes when used as slugs, or are
16
- # undesirable to allow as slugs. Edit this list as needed for your app.
17
- config.use :reserved
18
-
19
- config.reserved_words = %w(new edit index session login logout users admin
20
- stylesheets assets javascripts images)
21
-
22
- # This adds an option to treat reserved words as conflicts rather than exceptions.
23
- # When there is no good candidate, a UUID will be appended, matching the existing
24
- # conflict behavior.
25
-
26
- # config.treat_reserved_as_conflict = true
27
-
28
- # ## Friendly Finders
29
- #
30
- # Uncomment this to use friendly finders in all models. By default, if
31
- # you wish to find a record by its friendly id, you must do:
32
- #
33
- # MyModel.friendly.find('foo')
34
- #
35
- # If you uncomment this, you can do:
36
- #
37
- # MyModel.find('foo')
38
- #
39
- # This is significantly more convenient but may not be appropriate for
40
- # all applications, so you must explicity opt-in to this behavior. You can
41
- # always also configure it on a per-model basis if you prefer.
42
- #
43
- # Something else to consider is that using the :finders addon boosts
44
- # performance because it will avoid Rails-internal code that makes runtime
45
- # calls to `Module.extend`.
46
- #
47
- # config.use :finders
48
- #
49
- # ## Slugs
50
- #
51
- # Most applications will use the :slugged module everywhere. If you wish
52
- # to do so, uncomment the following line.
53
- #
54
- # config.use :slugged
55
- #
56
- # By default, FriendlyId's :slugged addon expects the slug column to be named
57
- # 'slug', but you can change it if you wish.
58
- #
59
- # config.slug_column = 'slug'
60
- #
61
- # By default, slug has no size limit, but you can change it if you wish.
62
- #
63
- # config.slug_limit = 255
64
- #
65
- # When FriendlyId can not generate a unique ID from your base method, it appends
66
- # a UUID, separated by a single dash. You can configure the character used as the
67
- # separator. If you're upgrading from FriendlyId 4, you may wish to replace this
68
- # with two dashes.
69
- #
70
- # config.sequence_separator = '-'
71
- #
72
- # Note that you must use the :slugged addon **prior** to the line which
73
- # configures the sequence separator, or else FriendlyId will raise an undefined
74
- # method error.
75
- #
76
- # ## Tips and Tricks
77
- #
78
- # ### Controlling when slugs are generated
79
- #
80
- # As of FriendlyId 5.0, new slugs are generated only when the slug field is
81
- # nil, but if you're using a column as your base method can change this
82
- # behavior by overriding the `should_generate_new_friendly_id?` method that
83
- # FriendlyId adds to your model. The change below makes FriendlyId 5.0 behave
84
- # more like 4.0.
85
- # Note: Use(include) Slugged module in the config if using the anonymous module.
86
- # If you have `friendly_id :name, use: slugged` in the model, Slugged module
87
- # is included after the anonymous module defined in the initializer, so it
88
- # overrides the `should_generate_new_friendly_id?` method from the anonymous module.
89
- #
90
- # config.use :slugged
91
- # config.use Module.new {
92
- # def should_generate_new_friendly_id?
93
- # slug.blank? || <your_column_name_here>_changed?
94
- # end
95
- # }
96
- #
97
- # FriendlyId uses Rails's `parameterize` method to generate slugs, but for
98
- # languages that don't use the Roman alphabet, that's not usually sufficient.
99
- # Here we use the Babosa library to transliterate Russian Cyrillic slugs to
100
- # ASCII. If you use this, don't forget to add "babosa" to your Gemfile.
101
- #
102
- # config.use Module.new {
103
- # def normalize_friendly_id(text)
104
- # text.to_slug.normalize! :transliterations => [:russian, :latin]
105
- # end
106
- # }
107
- end