dhatu 0.3.0.pre.materialize → 0.3.1.pre.materialize
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/dhatu/application_controller.rb +0 -2
- data/app/controllers/dhatu/career_opportunities_controller.rb +145 -0
- data/app/controllers/dhatu/manufacturers_controller.rb +114 -0
- data/app/controllers/dhatu/products_controller.rb +164 -0
- data/app/controllers/dhatu/resource_controller.rb +1 -0
- data/app/models/dhatu/blog_post.rb +1 -1
- data/app/models/dhatu/booking.rb +1 -1
- data/app/models/dhatu/branch.rb +1 -1
- data/app/models/dhatu/career_opportunity.rb +92 -0
- data/app/models/dhatu/category.rb +1 -1
- data/app/models/dhatu/event.rb +1 -1
- data/app/models/dhatu/manufacturer.rb +113 -0
- data/app/models/dhatu/meta_tag.rb +1 -1
- data/app/models/dhatu/offer.rb +1 -1
- data/app/models/dhatu/page.rb +1 -1
- data/app/models/dhatu/photo_album.rb +1 -1
- data/app/models/dhatu/price.rb +1 -1
- data/app/models/dhatu/product.rb +141 -0
- data/app/models/dhatu/project.rb +1 -1
- data/app/models/dhatu/promotion.rb +1 -1
- data/app/models/dhatu/promotion_attribute.rb +1 -1
- data/app/models/dhatu/promotion_enquiry.rb +1 -1
- data/app/models/dhatu/section.rb +11 -1
- data/app/models/dhatu/service.rb +1 -1
- data/app/models/dhatu/team_member.rb +1 -1
- data/app/models/dhatu/testimonial.rb +1 -1
- data/app/views/dhatu/blog_posts/_form.html.erb +1 -1
- data/app/views/dhatu/blog_posts/_show.html.erb +1 -1
- data/app/views/dhatu/bookings/_show.html.erb +1 -1
- data/app/views/dhatu/branches/_form.html.erb +1 -1
- data/app/views/dhatu/branches/_show.html.erb +1 -1
- data/app/views/dhatu/career_opportunities/_form.html.erb +41 -0
- data/app/views/dhatu/career_opportunities/_index.html.erb +52 -0
- data/app/views/dhatu/career_opportunities/_row.html.erb +26 -0
- data/app/views/dhatu/career_opportunities/_show.html.erb +96 -0
- data/app/views/dhatu/career_opportunities/index.html.erb +52 -0
- data/app/views/dhatu/categories/_show.html.erb +1 -1
- data/app/views/dhatu/dashboard/_index.html.erb +18 -0
- data/app/views/dhatu/events/_form.html.erb +1 -1
- data/app/views/dhatu/events/_show.html.erb +1 -1
- data/app/views/dhatu/manufacturers/_form.html.erb +40 -0
- data/app/views/dhatu/manufacturers/_index.html.erb +56 -0
- data/app/views/dhatu/manufacturers/_row.html.erb +30 -0
- data/app/views/dhatu/manufacturers/_show.html.erb +69 -0
- data/app/views/dhatu/manufacturers/index.html.erb +63 -0
- data/app/views/dhatu/manufacturers/show.html.erb +12 -0
- data/app/views/dhatu/offers/_form.html.erb +1 -1
- data/app/views/dhatu/offers/_show.html.erb +1 -1
- data/app/views/dhatu/pages/_show.html.erb +1 -1
- data/app/views/dhatu/photo_albums/_show.html.erb +1 -1
- data/app/views/dhatu/prices/_show.html.erb +1 -1
- data/app/views/dhatu/products/_form.html.erb +58 -0
- data/app/views/dhatu/products/_index.html.erb +68 -0
- data/app/views/dhatu/products/_row.html.erb +40 -0
- data/app/views/dhatu/products/_show.html.erb +146 -0
- data/app/views/dhatu/products/index.html.erb +63 -0
- data/app/views/dhatu/products/show.html.erb +12 -0
- data/app/views/dhatu/projects/_form.html.erb +1 -1
- data/app/views/dhatu/projects/_show.html.erb +1 -1
- data/app/views/dhatu/promotion_attributes/_show.html.erb +1 -1
- data/app/views/dhatu/promotion_enquiries/_show.html.erb +1 -1
- data/app/views/dhatu/promotions/_form.html.erb +1 -1
- data/app/views/dhatu/promotions/_show.html.erb +1 -1
- data/app/views/dhatu/sections/_form.html.erb +1 -1
- data/app/views/dhatu/sections/_show.html.erb +1 -1
- data/app/views/dhatu/services/_form.html.erb +1 -1
- data/app/views/dhatu/services/_show.html.erb +1 -1
- data/app/views/dhatu/team_members/_form.html.erb +1 -1
- data/app/views/dhatu/team_members/_show.html.erb +1 -1
- data/app/views/dhatu/testimonials/_form.html.erb +1 -1
- data/app/views/dhatu/testimonials/_show.html.erb +1 -1
- data/app/views/layouts/kuppayam/_sidebar.html.erb +18 -0
- data/config/routes.rb +24 -0
- data/db/data/dummy/categories.csv +4 -1
- data/db/data/dummy/products.csv +3 -0
- data/db/migrate/20160803045832_create_events.rb +2 -2
- data/db/migrate/20160803045832_create_offers.rb +2 -2
- data/db/migrate/20171010055101_create_pages.rb +3 -3
- data/db/migrate/20171010055102_create_sections.rb +2 -2
- data/db/migrate/20171012073510_create_testimonials.rb +2 -2
- data/db/migrate/20171012103805_create_team_members.rb +2 -2
- data/db/migrate/20171012103806_create_blog_posts.rb +2 -2
- data/db/migrate/20171014125053_create_branches.rb +2 -2
- data/db/migrate/20171014125054_create_categories.rb +3 -3
- data/db/migrate/20171014125055_create_services.rb +3 -3
- data/db/migrate/20171104163660_create_prices.rb +2 -2
- data/db/migrate/20171104163661_create_bookings.rb +2 -2
- data/db/migrate/20171120145548_create_promotion_and_promotion_enquiries.rb +5 -5
- data/db/migrate/20180101093434_create_projects.rb +3 -3
- data/db/migrate/20180101093436_create_meta_tags.rb +3 -3
- data/db/migrate/20180101093437_create_photo_albums.rb +3 -3
- data/db/migrate/20180101093438_create_manufacturers.rb +17 -0
- data/db/migrate/20180101093439_create_products.rb +29 -0
- data/db/migrate/20180101093449_create_career_opportunities.rb +23 -0
- data/lib/dhatu/version.rb +1 -1
- metadata +29 -7
- data/app/views/dhatu/sections_old/_form.html.erb +0 -171
- data/app/views/dhatu/sections_old/_index.html.erb +0 -53
- data/app/views/dhatu/sections_old/_row.html.erb +0 -26
- data/app/views/dhatu/sections_old/_show.html.erb +0 -208
- data/app/views/dhatu/sections_old/index.html.erb +0 -52
@@ -25,4 +25,7 @@ Kids, Dhatu::Service, Kids, Kids,,published,1
|
|
25
25
|
Treatments, Dhatu::Service, Treatments, Treatments,,published,1
|
26
26
|
Skin and Facial Treatments, Dhatu::Service, Skin and Facial Treatments, Skin and Facial Treatments,,published,1
|
27
27
|
Electronics, Dhatu::Offer,Electronics,Electronics,,published,1
|
28
|
-
Travel, Dhatu::Offer,Travel,Travel,,published,2
|
28
|
+
Travel, Dhatu::Offer,Travel,Travel,,published,2
|
29
|
+
Office Automation, Dhatu::Product,Office Automation,Office Automation,,published,1
|
30
|
+
Benq, Dhatu::Product,Benq,Benq,,published,1
|
31
|
+
IT Infrastructure, Dhatu::Product,IT Infrastructure,IT Infrastructure,,published,1
|
@@ -0,0 +1,3 @@
|
|
1
|
+
name, company_name, brand_name, permalink, short_description, description, category, price, status, featured, priority
|
2
|
+
TA - 1855,Triumph Adler,,,"A3 Mono MEF(Copy, Print/Scan(USB))",,Office Automation,1000,published,TRUE,1
|
3
|
+
TA - 256i,Triumph Adler,,,"A3 Mono MEF(Copy, Print/Scan(USB))",,Office Automation,2000,published,TRUE,2
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreateEvents < ActiveRecord::Migration[5.0]
|
2
2
|
def change
|
3
|
-
create_table :
|
3
|
+
create_table :dhatu_events do |t|
|
4
4
|
|
5
5
|
t.string :title, :null => false, :limit=>256
|
6
6
|
t.string :venue, :null => false, :limit=>256
|
@@ -19,6 +19,6 @@ class CreateEvents < ActiveRecord::Migration[5.0]
|
|
19
19
|
|
20
20
|
t.timestamps null: false
|
21
21
|
end
|
22
|
-
add_index :
|
22
|
+
add_index :dhatu_events, :status
|
23
23
|
end
|
24
24
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreateOffers < ActiveRecord::Migration[5.0]
|
2
2
|
def change
|
3
|
-
create_table :
|
3
|
+
create_table :dhatu_offers do |t|
|
4
4
|
|
5
5
|
t.string :title, :null => false, :limit=>256
|
6
6
|
t.string :offer_text, :null => false, :limit=>64
|
@@ -18,6 +18,6 @@ class CreateOffers < ActiveRecord::Migration[5.0]
|
|
18
18
|
|
19
19
|
t.timestamps null: false
|
20
20
|
end
|
21
|
-
add_index :
|
21
|
+
add_index :dhatu_offers, :status
|
22
22
|
end
|
23
23
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreatePages < ActiveRecord::Migration[5.1]
|
2
2
|
def change
|
3
|
-
create_table :
|
3
|
+
create_table :dhatu_pages do |t|
|
4
4
|
t.string :name, :null => false, limit: 64
|
5
5
|
t.string :code, :null => false, limit: 64
|
6
6
|
|
@@ -12,7 +12,7 @@ class CreatePages < ActiveRecord::Migration[5.1]
|
|
12
12
|
t.timestamps null: false
|
13
13
|
end
|
14
14
|
|
15
|
-
add_index :
|
16
|
-
add_index :
|
15
|
+
add_index :dhatu_pages, :code, :unique => true
|
16
|
+
add_index :dhatu_pages, :status
|
17
17
|
end
|
18
18
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreateSections < ActiveRecord::Migration[5.0]
|
2
2
|
def self.up
|
3
|
-
create_table :
|
3
|
+
create_table :dhatu_sections do |t|
|
4
4
|
|
5
5
|
t.string :name, null: false, limit: 64
|
6
6
|
t.string :code, null: false, limit: 64
|
@@ -35,6 +35,6 @@ class CreateSections < ActiveRecord::Migration[5.0]
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def self.down
|
38
|
-
drop_table :
|
38
|
+
drop_table :dhatu_sections
|
39
39
|
end
|
40
40
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreateTestimonials < ActiveRecord::Migration[5.0]
|
2
2
|
def self.up
|
3
|
-
create_table :
|
3
|
+
create_table :dhatu_testimonials do |t|
|
4
4
|
t.string :name, :null => false, :limit=>256
|
5
5
|
t.string :designation, :null => true, :limit=>256
|
6
6
|
t.string :organisation, :null => true, :limit=>256
|
@@ -16,6 +16,6 @@ class CreateTestimonials < ActiveRecord::Migration[5.0]
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.down
|
19
|
-
drop_table :
|
19
|
+
drop_table :dhatu_testimonials
|
20
20
|
end
|
21
21
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreateTeamMembers < ActiveRecord::Migration[5.0]
|
2
2
|
def self.up
|
3
|
-
create_table :
|
3
|
+
create_table :dhatu_team_members do |t|
|
4
4
|
t.string :name
|
5
5
|
t.string :designation
|
6
6
|
t.text :description
|
@@ -19,6 +19,6 @@ class CreateTeamMembers < ActiveRecord::Migration[5.0]
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def self.down
|
22
|
-
drop_table :
|
22
|
+
drop_table :dhatu_team_members
|
23
23
|
end
|
24
24
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreateBlogPosts < ActiveRecord::Migration[5.0]
|
2
2
|
def change
|
3
|
-
create_table :
|
3
|
+
create_table :dhatu_blog_posts do |t|
|
4
4
|
t.string :title, null: false, limit: 256
|
5
5
|
t.string :slug, null: true, limit: 64
|
6
6
|
t.string :author, null: true, limit: 256
|
@@ -19,6 +19,6 @@ class CreateBlogPosts < ActiveRecord::Migration[5.0]
|
|
19
19
|
|
20
20
|
t.timestamps null: false
|
21
21
|
end
|
22
|
-
add_index :
|
22
|
+
add_index :dhatu_blog_posts, :status
|
23
23
|
end
|
24
24
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreateBranches < ActiveRecord::Migration[5.0]
|
2
2
|
def self.up
|
3
|
-
create_table :
|
3
|
+
create_table :dhatu_branches do |t|
|
4
4
|
|
5
5
|
t.string :title, null: false, limit: 256
|
6
6
|
|
@@ -32,6 +32,6 @@ class CreateBranches < ActiveRecord::Migration[5.0]
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def self.down
|
35
|
-
drop_table :
|
35
|
+
drop_table :dhatu_branches
|
36
36
|
end
|
37
37
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreateCategories < ActiveRecord::Migration[5.1]
|
2
2
|
def change
|
3
|
-
create_table :
|
3
|
+
create_table :dhatu_categories do |t|
|
4
4
|
t.string :name, :null => false, limit: 128
|
5
5
|
t.string :category_type, :null => false, limit: 64
|
6
6
|
t.string :one_liner
|
@@ -17,7 +17,7 @@ class CreateCategories < ActiveRecord::Migration[5.1]
|
|
17
17
|
t.timestamps null: false
|
18
18
|
end
|
19
19
|
|
20
|
-
add_index :
|
21
|
-
add_index :
|
20
|
+
add_index :dhatu_categories, :permalink, :unique => true
|
21
|
+
add_index :dhatu_categories, :status
|
22
22
|
end
|
23
23
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreateServices < ActiveRecord::Migration[5.1]
|
2
2
|
def change
|
3
|
-
create_table :
|
3
|
+
create_table :dhatu_services do |t|
|
4
4
|
t.string :name, :null => false, limit: 128
|
5
5
|
t.string :one_liner
|
6
6
|
t.string :permalink, :null => false, limit: 128
|
@@ -20,7 +20,7 @@ class CreateServices < ActiveRecord::Migration[5.1]
|
|
20
20
|
t.timestamps null: false
|
21
21
|
end
|
22
22
|
|
23
|
-
add_index :
|
24
|
-
add_index :
|
23
|
+
add_index :dhatu_services, :permalink, :unique => true
|
24
|
+
add_index :dhatu_services, :status
|
25
25
|
end
|
26
26
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreatePrices < ActiveRecord::Migration[5.1]
|
2
2
|
def change
|
3
|
-
create_table :
|
3
|
+
create_table :dhatu_prices do |t|
|
4
4
|
t.string :title, :null => false, limit: 128
|
5
5
|
t.string :sub_title
|
6
6
|
t.text :price
|
@@ -14,6 +14,6 @@ class CreatePrices < ActiveRecord::Migration[5.1]
|
|
14
14
|
t.timestamps null: false
|
15
15
|
end
|
16
16
|
|
17
|
-
add_index :
|
17
|
+
add_index :dhatu_prices, :status
|
18
18
|
end
|
19
19
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreateBookings < ActiveRecord::Migration[5.1]
|
2
2
|
def change
|
3
|
-
create_table :
|
3
|
+
create_table :dhatu_bookings do |t|
|
4
4
|
t.string :name, :null => false, limit: 256
|
5
5
|
t.references :service, index: true
|
6
6
|
|
@@ -21,6 +21,6 @@ class CreateBookings < ActiveRecord::Migration[5.1]
|
|
21
21
|
t.timestamps null: false
|
22
22
|
end
|
23
23
|
|
24
|
-
add_index :
|
24
|
+
add_index :dhatu_bookings, :status
|
25
25
|
end
|
26
26
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreatePromotionAndPromotionEnquiries < ActiveRecord::Migration[5.1]
|
2
2
|
def change
|
3
|
-
create_table :
|
3
|
+
create_table :dhatu_promotions do |t|
|
4
4
|
|
5
5
|
t.string :title, :null => false, limit: 256
|
6
6
|
t.string :short_description, :null => true, limit: 512
|
@@ -15,7 +15,7 @@
|
|
15
15
|
t.boolean :phone_mandatory, default: false, null: false
|
16
16
|
|
17
17
|
t.boolean :featured, default: false
|
18
|
-
t.string :status, :null => false, :default=>"
|
18
|
+
t.string :status, :null => false, :default=>"unpublished", :limit=>16
|
19
19
|
t.integer :priority, default: 1, null: false
|
20
20
|
|
21
21
|
t.boolean :show_popup, default: true, :null => false
|
@@ -25,7 +25,7 @@
|
|
25
25
|
t.timestamps null: false
|
26
26
|
end
|
27
27
|
|
28
|
-
create_table :
|
28
|
+
create_table :dhatu_promotion_attributes do |t|
|
29
29
|
|
30
30
|
t.string :name, :null => false, limit: 64
|
31
31
|
# Data Type could be text, integer, date, list_drop_down (Select from a List), list_radio_button (Choose one) & boolean (Checkbox)
|
@@ -45,14 +45,14 @@
|
|
45
45
|
t.timestamps null: false
|
46
46
|
end
|
47
47
|
|
48
|
-
create_table :
|
48
|
+
create_table :dhatu_promotion_enquiries do |t|
|
49
49
|
|
50
50
|
t.string :name, :null => false, limit: 256
|
51
51
|
t.string :email, :null => true, limit: 256
|
52
52
|
t.string :phone, :null => true, limit: 24
|
53
53
|
|
54
54
|
t.references :promotion, index: true
|
55
|
-
t.string :status, :null => false, :default=>"
|
55
|
+
t.string :status, :null => false, :default=>"new", :limit=>16
|
56
56
|
|
57
57
|
# Additional Details
|
58
58
|
t.text :additional_attributes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreateProjects < ActiveRecord::Migration[5.1]
|
2
2
|
def change
|
3
|
-
create_table :
|
3
|
+
create_table :dhatu_projects do |t|
|
4
4
|
t.string :name, :null => false, limit: 128
|
5
5
|
t.string :permalink, :null => false, limit: 128
|
6
6
|
|
@@ -18,7 +18,7 @@ class CreateProjects < ActiveRecord::Migration[5.1]
|
|
18
18
|
t.timestamps null: false
|
19
19
|
end
|
20
20
|
|
21
|
-
add_index :
|
22
|
-
add_index :
|
21
|
+
add_index :dhatu_projects, :permalink, :unique => true
|
22
|
+
add_index :dhatu_projects, :status
|
23
23
|
end
|
24
24
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreateMetaTags < ActiveRecord::Migration[5.1]
|
2
2
|
def change
|
3
|
-
create_table :
|
3
|
+
create_table :dhatu_meta_tags do |t|
|
4
4
|
t.integer :meta_taggable_id
|
5
5
|
t.string :meta_taggable_type
|
6
6
|
|
@@ -13,7 +13,7 @@ class CreateMetaTags < ActiveRecord::Migration[5.1]
|
|
13
13
|
t.string :status, :null => false, :default=>"unpublished", :limit=>16
|
14
14
|
t.timestamps null: false
|
15
15
|
end
|
16
|
-
add_index :
|
17
|
-
add_index(:
|
16
|
+
add_index :dhatu_meta_tags, :status
|
17
|
+
add_index(:dhatu_meta_tags, [ :meta_taggable_id, :meta_taggable_type ])
|
18
18
|
end
|
19
19
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreatePhotoAlbums < ActiveRecord::Migration[5.1]
|
2
2
|
def change
|
3
|
-
create_table :
|
3
|
+
create_table :dhatu_photo_albums do |t|
|
4
4
|
t.string :name, :null => false, limit: 128
|
5
5
|
t.string :code, :null => false, limit: 128
|
6
6
|
t.string :one_liner
|
@@ -18,7 +18,7 @@ class CreatePhotoAlbums < ActiveRecord::Migration[5.1]
|
|
18
18
|
t.timestamps null: false
|
19
19
|
end
|
20
20
|
|
21
|
-
add_index :
|
22
|
-
add_index :
|
21
|
+
add_index :dhatu_photo_albums, :permalink, :unique => true
|
22
|
+
add_index :dhatu_photo_albums, :status
|
23
23
|
end
|
24
24
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class CreateManufacturers < ActiveRecord::Migration[5.1]
|
2
|
+
def change
|
3
|
+
create_table :dhatu_manufacturers do |t|
|
4
|
+
t.string :name, limit: 128
|
5
|
+
t.string :description, limit: 1024
|
6
|
+
|
7
|
+
t.text :remarks
|
8
|
+
t.string :website, limit: 512
|
9
|
+
|
10
|
+
t.string :status, :null => false, :default=>"unpublished", :limit=>16
|
11
|
+
t.boolean :featured, default: false
|
12
|
+
t.integer :priority, default: 1, null: false
|
13
|
+
|
14
|
+
t.timestamps
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
class CreateProducts < ActiveRecord::Migration[5.1]
|
2
|
+
def change
|
3
|
+
create_table :dhatu_products do |t|
|
4
|
+
|
5
|
+
t.string :title, :null => false, :limit=>256
|
6
|
+
t.string :sub_title, :null => false, :limit=>256
|
7
|
+
|
8
|
+
t.string :ean_sku, :limit=>256
|
9
|
+
t.string :reference_number, :limit=>256
|
10
|
+
|
11
|
+
t.references :manufacturer
|
12
|
+
t.references :category
|
13
|
+
t.references :top_category
|
14
|
+
|
15
|
+
t.string :short_description, null: true, limit: 512
|
16
|
+
t.text :description
|
17
|
+
|
18
|
+
t.decimal :price, :precision => 12, :scale => 6, default: 0.00
|
19
|
+
|
20
|
+
t.string :status, :null => false, :default=>"unpublished", :limit=>16
|
21
|
+
t.boolean :featured, default: false
|
22
|
+
t.integer :priority, default: 1, null: false
|
23
|
+
|
24
|
+
t.timestamps null: false
|
25
|
+
end
|
26
|
+
|
27
|
+
add_index :dhatu_products, :status
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
class CreateCareerOpportunities < ActiveRecord::Migration[5.1]
|
2
|
+
def change
|
3
|
+
create_table :dhatu_career_opportunities do |t|
|
4
|
+
t.string :title, :null => false, :limit=>256
|
5
|
+
t.string :sub_title, :null => false, :limit=>256
|
6
|
+
t.string :reference_number, :limit=>256
|
7
|
+
|
8
|
+
t.references :category
|
9
|
+
t.references :top_category
|
10
|
+
|
11
|
+
t.string :short_description, null: true, limit: 512
|
12
|
+
t.text :description
|
13
|
+
|
14
|
+
t.string :status, :null => false, :default=>"unpublished", :limit=>16
|
15
|
+
t.boolean :featured, default: false
|
16
|
+
t.integer :priority, default: 1, null: false
|
17
|
+
|
18
|
+
t.timestamps null: false
|
19
|
+
end
|
20
|
+
|
21
|
+
add_index :dhatu_career_opportunities, :status
|
22
|
+
end
|
23
|
+
end
|
data/lib/dhatu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dhatu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1.pre.materialize
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kpvarma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -413,14 +413,17 @@ files:
|
|
413
413
|
- app/controllers/dhatu/blog_posts_controller.rb
|
414
414
|
- app/controllers/dhatu/bookings_controller.rb
|
415
415
|
- app/controllers/dhatu/branches_controller.rb
|
416
|
+
- app/controllers/dhatu/career_opportunities_controller.rb
|
416
417
|
- app/controllers/dhatu/categories_controller.rb
|
417
418
|
- app/controllers/dhatu/dashboard_controller.rb
|
418
419
|
- app/controllers/dhatu/events_controller.rb
|
420
|
+
- app/controllers/dhatu/manufacturers_controller.rb
|
419
421
|
- app/controllers/dhatu/meta_tags_controller.rb
|
420
422
|
- app/controllers/dhatu/offers_controller.rb
|
421
423
|
- app/controllers/dhatu/pages_controller.rb
|
422
424
|
- app/controllers/dhatu/photo_albums_controller.rb
|
423
425
|
- app/controllers/dhatu/prices_controller.rb
|
426
|
+
- app/controllers/dhatu/products_controller.rb
|
424
427
|
- app/controllers/dhatu/projects_controller.rb
|
425
428
|
- app/controllers/dhatu/promotion_attributes_controller.rb
|
426
429
|
- app/controllers/dhatu/promotion_enquiries_controller.rb
|
@@ -437,13 +440,16 @@ files:
|
|
437
440
|
- app/models/dhatu/blog_post.rb
|
438
441
|
- app/models/dhatu/booking.rb
|
439
442
|
- app/models/dhatu/branch.rb
|
443
|
+
- app/models/dhatu/career_opportunity.rb
|
440
444
|
- app/models/dhatu/category.rb
|
441
445
|
- app/models/dhatu/event.rb
|
446
|
+
- app/models/dhatu/manufacturer.rb
|
442
447
|
- app/models/dhatu/meta_tag.rb
|
443
448
|
- app/models/dhatu/offer.rb
|
444
449
|
- app/models/dhatu/page.rb
|
445
450
|
- app/models/dhatu/photo_album.rb
|
446
451
|
- app/models/dhatu/price.rb
|
452
|
+
- app/models/dhatu/product.rb
|
447
453
|
- app/models/dhatu/project.rb
|
448
454
|
- app/models/dhatu/promotion.rb
|
449
455
|
- app/models/dhatu/promotion_attribute.rb
|
@@ -471,6 +477,11 @@ files:
|
|
471
477
|
- app/views/dhatu/branches/_row.html.erb
|
472
478
|
- app/views/dhatu/branches/_show.html.erb
|
473
479
|
- app/views/dhatu/branches/index.html.erb
|
480
|
+
- app/views/dhatu/career_opportunities/_form.html.erb
|
481
|
+
- app/views/dhatu/career_opportunities/_index.html.erb
|
482
|
+
- app/views/dhatu/career_opportunities/_row.html.erb
|
483
|
+
- app/views/dhatu/career_opportunities/_show.html.erb
|
484
|
+
- app/views/dhatu/career_opportunities/index.html.erb
|
474
485
|
- app/views/dhatu/categories/_category_types.html.erb
|
475
486
|
- app/views/dhatu/categories/_form.html.erb
|
476
487
|
- app/views/dhatu/categories/_header.html.erb
|
@@ -486,6 +497,12 @@ files:
|
|
486
497
|
- app/views/dhatu/events/_row.html.erb
|
487
498
|
- app/views/dhatu/events/_show.html.erb
|
488
499
|
- app/views/dhatu/events/index.html.erb
|
500
|
+
- app/views/dhatu/manufacturers/_form.html.erb
|
501
|
+
- app/views/dhatu/manufacturers/_index.html.erb
|
502
|
+
- app/views/dhatu/manufacturers/_row.html.erb
|
503
|
+
- app/views/dhatu/manufacturers/_show.html.erb
|
504
|
+
- app/views/dhatu/manufacturers/index.html.erb
|
505
|
+
- app/views/dhatu/manufacturers/show.html.erb
|
489
506
|
- app/views/dhatu/meta_tags/_form.html.erb
|
490
507
|
- app/views/dhatu/meta_tags/_index.html.erb
|
491
508
|
- app/views/dhatu/meta_tags/_list.html.erb
|
@@ -513,6 +530,12 @@ files:
|
|
513
530
|
- app/views/dhatu/prices/_row.html.erb
|
514
531
|
- app/views/dhatu/prices/_show.html.erb
|
515
532
|
- app/views/dhatu/prices/index.html.erb
|
533
|
+
- app/views/dhatu/products/_form.html.erb
|
534
|
+
- app/views/dhatu/products/_index.html.erb
|
535
|
+
- app/views/dhatu/products/_row.html.erb
|
536
|
+
- app/views/dhatu/products/_show.html.erb
|
537
|
+
- app/views/dhatu/products/index.html.erb
|
538
|
+
- app/views/dhatu/products/show.html.erb
|
516
539
|
- app/views/dhatu/projects/_form.html.erb
|
517
540
|
- app/views/dhatu/projects/_index.html.erb
|
518
541
|
- app/views/dhatu/projects/_row.html.erb
|
@@ -547,11 +570,6 @@ files:
|
|
547
570
|
- app/views/dhatu/sections/row.js.erb
|
548
571
|
- app/views/dhatu/sections/show.js.erb
|
549
572
|
- app/views/dhatu/sections/update.js.erb
|
550
|
-
- app/views/dhatu/sections_old/_form.html.erb
|
551
|
-
- app/views/dhatu/sections_old/_index.html.erb
|
552
|
-
- app/views/dhatu/sections_old/_row.html.erb
|
553
|
-
- app/views/dhatu/sections_old/_show.html.erb
|
554
|
-
- app/views/dhatu/sections_old/index.html.erb
|
555
573
|
- app/views/dhatu/services/_form.html.erb
|
556
574
|
- app/views/dhatu/services/_index.html.erb
|
557
575
|
- app/views/dhatu/services/_row.html.erb
|
@@ -580,6 +598,7 @@ files:
|
|
580
598
|
- db/data/dummy/offers.csv
|
581
599
|
- db/data/dummy/pages.csv
|
582
600
|
- db/data/dummy/prices.csv
|
601
|
+
- db/data/dummy/products.csv
|
583
602
|
- db/data/dummy/promotions.csv
|
584
603
|
- db/data/dummy/sections.csv
|
585
604
|
- db/data/dummy/services.csv
|
@@ -606,6 +625,9 @@ files:
|
|
606
625
|
- db/migrate/20180101093434_create_projects.rb
|
607
626
|
- db/migrate/20180101093436_create_meta_tags.rb
|
608
627
|
- db/migrate/20180101093437_create_photo_albums.rb
|
628
|
+
- db/migrate/20180101093438_create_manufacturers.rb
|
629
|
+
- db/migrate/20180101093439_create_products.rb
|
630
|
+
- db/migrate/20180101093449_create_career_opportunities.rb
|
609
631
|
- lib/dhatu.rb
|
610
632
|
- lib/dhatu/engine.rb
|
611
633
|
- lib/dhatu/factories.rb
|