dhatu 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +114 -0
  4. data/Rakefile +36 -0
  5. data/app/assets/config/dhatu_manifest.js +2 -0
  6. data/app/assets/javascripts/dhatu/application.js +13 -0
  7. data/app/assets/stylesheets/dhatu/application.css +15 -0
  8. data/app/controllers/dhatu/application_controller.rb +25 -0
  9. data/app/controllers/dhatu/blog_posts_controller.rb +84 -0
  10. data/app/controllers/dhatu/contact_informations_controller.rb +84 -0
  11. data/app/controllers/dhatu/dashboard_controller.rb +24 -0
  12. data/app/controllers/dhatu/events_controller.rb +84 -0
  13. data/app/controllers/dhatu/offers_controller.rb +84 -0
  14. data/app/controllers/dhatu/resource_controller.rb +13 -0
  15. data/app/controllers/dhatu/sections_controller.rb +83 -0
  16. data/app/controllers/dhatu/team_members_controller.rb +84 -0
  17. data/app/controllers/dhatu/testimonials_controller.rb +84 -0
  18. data/app/helpers/dhatu/application_helper.rb +4 -0
  19. data/app/jobs/dhatu/application_job.rb +4 -0
  20. data/app/mailers/dhatu/application_mailer.rb +6 -0
  21. data/app/models/dhatu/application_record.rb +8 -0
  22. data/app/models/dhatu/blog_post.rb +62 -0
  23. data/app/models/dhatu/contact_information.rb +88 -0
  24. data/app/models/dhatu/event.rb +56 -0
  25. data/app/models/dhatu/offer.rb +55 -0
  26. data/app/models/dhatu/section.rb +82 -0
  27. data/app/models/dhatu/team_member.rb +59 -0
  28. data/app/models/dhatu/testimonial.rb +57 -0
  29. data/app/views/dhatu/blog_posts/_form.html.erb +42 -0
  30. data/app/views/dhatu/blog_posts/_index.html.erb +58 -0
  31. data/app/views/dhatu/blog_posts/_row.html.erb +28 -0
  32. data/app/views/dhatu/blog_posts/_show.html.erb +120 -0
  33. data/app/views/dhatu/blog_posts/index.html.erb +56 -0
  34. data/app/views/dhatu/contact_informations/_form.html.erb +104 -0
  35. data/app/views/dhatu/contact_informations/_index.html.erb +51 -0
  36. data/app/views/dhatu/contact_informations/_row.html.erb +26 -0
  37. data/app/views/dhatu/contact_informations/_show.html.erb +150 -0
  38. data/app/views/dhatu/contact_informations/index.html.erb +46 -0
  39. data/app/views/dhatu/dashboard/_index.html.erb +58 -0
  40. data/app/views/dhatu/dashboard/index.html.erb +18 -0
  41. data/app/views/dhatu/events/_form.html.erb +40 -0
  42. data/app/views/dhatu/events/_index.html.erb +58 -0
  43. data/app/views/dhatu/events/_row.html.erb +28 -0
  44. data/app/views/dhatu/events/_show.html.erb +120 -0
  45. data/app/views/dhatu/events/index.html.erb +45 -0
  46. data/app/views/dhatu/offers/_form.html.erb +39 -0
  47. data/app/views/dhatu/offers/_index.html.erb +57 -0
  48. data/app/views/dhatu/offers/_row.html.erb +28 -0
  49. data/app/views/dhatu/offers/_show.html.erb +118 -0
  50. data/app/views/dhatu/offers/index.html.erb +46 -0
  51. data/app/views/dhatu/sections/_form.html.erb +60 -0
  52. data/app/views/dhatu/sections/_index.html.erb +53 -0
  53. data/app/views/dhatu/sections/_row.html.erb +25 -0
  54. data/app/views/dhatu/sections/_show.html.erb +152 -0
  55. data/app/views/dhatu/sections/index.html.erb +53 -0
  56. data/app/views/dhatu/team_members/_form.html.erb +56 -0
  57. data/app/views/dhatu/team_members/_index.html.erb +62 -0
  58. data/app/views/dhatu/team_members/_row.html.erb +35 -0
  59. data/app/views/dhatu/team_members/_show.html.erb +93 -0
  60. data/app/views/dhatu/team_members/index.html.erb +46 -0
  61. data/app/views/dhatu/testimonials/_form.html.erb +36 -0
  62. data/app/views/dhatu/testimonials/_index.html.erb +64 -0
  63. data/app/views/dhatu/testimonials/_row.html.erb +36 -0
  64. data/app/views/dhatu/testimonials/_show.html.erb +133 -0
  65. data/app/views/dhatu/testimonials/index.html.erb +46 -0
  66. data/app/views/layouts/dhatu/application.html.erb +14 -0
  67. data/app/views/layouts/kuppayam/_footer.html.erb +25 -0
  68. data/app/views/layouts/kuppayam/_header.html.erb +43 -0
  69. data/app/views/layouts/kuppayam/_navbar.html.erb +55 -0
  70. data/app/views/layouts/kuppayam/_sidebar.html.erb +219 -0
  71. data/app/views/pattana/dashboard/_index.html.erb +35 -0
  72. data/config/routes.rb +63 -0
  73. data/db/master_data/features.csv +16 -0
  74. data/lib/dhatu.rb +5 -0
  75. data/lib/dhatu/engine.rb +31 -0
  76. data/lib/dhatu/factories.rb +7 -0
  77. data/lib/dhatu/version.rb +3 -0
  78. data/lib/tasks/dhatu/data.rake +91 -0
  79. data/lib/tasks/dhatu/master_data.rake +48 -0
  80. data/spec/dummy/spec/factories/blog_post.rb +48 -0
  81. data/spec/dummy/spec/factories/blog_post_cover_image.rb +13 -0
  82. data/spec/dummy/spec/factories/blog_post_gallery_image.rb +13 -0
  83. data/spec/dummy/spec/factories/contact_information.rb +63 -0
  84. data/spec/dummy/spec/factories/event.rb +46 -0
  85. data/spec/dummy/spec/factories/event_cover_image.rb +13 -0
  86. data/spec/dummy/spec/factories/event_gallery_image.rb +13 -0
  87. data/spec/dummy/spec/factories/offer.rb +43 -0
  88. data/spec/dummy/spec/factories/offer_cover_image.rb +13 -0
  89. data/spec/dummy/spec/factories/offer_gallery_image.rb +13 -0
  90. data/spec/dummy/spec/factories/section.rb +50 -0
  91. data/spec/dummy/spec/factories/section_cover_image.rb +13 -0
  92. data/spec/dummy/spec/factories/section_gallery_image.rb +13 -0
  93. data/spec/dummy/spec/factories/team_member.rb +47 -0
  94. data/spec/dummy/spec/factories/test.jpg +0 -0
  95. data/spec/dummy/spec/factories/testimonial.rb +44 -0
  96. metadata +520 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 498bd2e51551041b68660136fdbd59eeb1d3c821
4
+ data.tar.gz: b00fbbf005fd83abd66368789c36ba80659e29f1
5
+ SHA512:
6
+ metadata.gz: 108d7a61b73d47ed6b71885528d9e93369b308b7f2a3c64d27932805c0e5792200d023e2f5636fa5667f92b957053e1ac8e7a787c2081bc9b6ab02b2f3ee5469
7
+ data.tar.gz: ac04681385870679a9a42c3754f7d3af536df08a385dbbcf0dd5f3fb7b32daea6737184ce6ea7f5d09a959dbd7a0e766576622c535f4b42c8d756b043d66421d
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2017 Krishna Prasad Varma
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,114 @@
1
+ # Dhatu
2
+ Dhatu is a simple CMS for your website
3
+ Dhatu (Sanskrit word for elements). This plugin will add all the basic elements required for a website. e.g: services, products, news & events, testimonials etc
4
+
5
+ Dhatu requies kuppayam, pattana and usman
6
+
7
+ ## Installation
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'dhatu'
12
+ ```
13
+
14
+ And then execute:
15
+ ```bash
16
+ $ bundle
17
+ ```
18
+
19
+ Or install it yourself as:
20
+ ```bash
21
+ $ gem install dhatu
22
+ ```
23
+
24
+ # Usage
25
+
26
+ ## Installing the kuppayam, pattana & usman migrations
27
+
28
+ Usman uses kuppayam skins and hence it requires the basic migrations from kuppayam to run
29
+ Run the below command to copy the migrations from the kuppayam engine.
30
+
31
+ ```bash
32
+ $ bundle exec rake railties:install:migrations
33
+ ```
34
+
35
+ This will copy migrations from kuppayam, pattana and usman engines which will have migrations to create images, documents, countries, regions, cities, users, features and permissions respectively.
36
+
37
+
38
+ ## Mount the engine
39
+
40
+ Mount dhatu engine in your application routes.rb
41
+
42
+ ```
43
+ mount Dhatu::Engine => "/"
44
+ ```
45
+
46
+ open browser and go to /sign_in url
47
+
48
+ ## Railties order
49
+
50
+ Specify the railties order if required in main application.rb
51
+
52
+ ``
53
+ config.autoload_paths << "app/services"
54
+ config.railties_order = [:main_app, Dhatu::Engine, Usman::Engine, Pattana::Engine, Kuppayam::Engine, :all]
55
+ ```
56
+
57
+ # Seeding Data
58
+
59
+ run rake task for loading dummy data for users and features to start with.
60
+
61
+ ```bash
62
+ $ bundle exec rake usman:import:dummy:all verbose=false
63
+ $ bundle exec rake pattana:import:dummy:all verbose=false
64
+ ```
65
+
66
+ ["users", "features", "permissions", "roles"]
67
+
68
+ You could also do it individually but the above command will run in the following order - users, features, permissions, roles. This order is important as features need users to be imported first.
69
+
70
+ ```bash
71
+ $ bundle exec rake usman:import:dummy:users verbose=false
72
+ $ bundle exec rake usman:import:dummy:features verbose=false
73
+ $ bundle exec rake usman:import:dummy:permissions verbose=false
74
+ $ bundle exec rake usman:import:dummy:roles verbose=false
75
+
76
+ $ bundle exec rake pattana:import:dummy:countries verbose=false
77
+ $ bundle exec rake pattana:import:dummy:regions verbose=false
78
+ $ bundle exec rake pattana:import:dummy:cities verbose=false
79
+ ```
80
+
81
+ # Import Data
82
+
83
+ You could override the seed files with your data.
84
+ just create db/import_data in your project folder and create the following files filled with your data in the required format (checkout the dummy csvs in usman db/import_data/dummy/features.csv) for the columns required
85
+
86
+ for e.g:
87
+
88
+ create users.csv in db/import_data/ foler and fill data in it and run
89
+
90
+ ```bash
91
+ $ bundle exec rake usman:import:users verbose=false
92
+ ```
93
+
94
+ ## Testing the gem
95
+
96
+ cd spec/dummy
97
+ rails db:create db:migrate
98
+
99
+ rails s -p <port>
100
+
101
+ ## Running rspec
102
+ rails db:create db:migrate RAILS_ENV
103
+
104
+ # run rspec from the rails root folder and not from dummy folder as spec helper has been linked to dummy.
105
+ rspec
106
+
107
+
108
+ ## Contributing
109
+
110
+ Visit - https://github.com/right-solutions/usman
111
+ Feel free to submit a patch
112
+
113
+ ## License
114
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,36 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'Dhatu'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.md')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+ APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
18
+ load 'rails/tasks/engine.rake'
19
+
20
+
21
+ load 'rails/tasks/statistics.rake'
22
+
23
+
24
+
25
+ require 'bundler/gem_tasks'
26
+
27
+ require 'rake/testtask'
28
+
29
+ Rake::TestTask.new(:test) do |t|
30
+ t.libs << 'test'
31
+ t.pattern = 'test/**/*_test.rb'
32
+ t.verbose = false
33
+ end
34
+
35
+
36
+ task default: :test
@@ -0,0 +1,2 @@
1
+ //= link_directory ../javascripts/dhatu .js
2
+ //= link_directory ../stylesheets/dhatu .css
@@ -0,0 +1,13 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_tree .
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,25 @@
1
+ module Dhatu
2
+ class ApplicationController < Kuppayam::BaseController
3
+
4
+ include Usman::AuthenticationHelper
5
+
6
+ layout 'kuppayam/admin'
7
+
8
+ before_action :current_user
9
+ before_action :require_user
10
+ before_action :require_site_admin
11
+
12
+ helper_method :breadcrumb_home_path
13
+
14
+ private
15
+
16
+ def set_default_title
17
+ set_title("Dhatu - CMS for your website")
18
+ end
19
+
20
+ def breadcrumb_home_path
21
+ dhatu.dashboard_path
22
+ end
23
+
24
+ end
25
+ end
@@ -0,0 +1,84 @@
1
+ module Dhatu
2
+ class BlogPostsController < ResourceController
3
+
4
+ private
5
+
6
+ def permitted_params
7
+ params.require("dhatu/blog_post").permit(:title, :slug, :author, :meta_description, :description, :posted_at, :tags)
8
+ end
9
+
10
+ def get_collections
11
+ @relation = BlogPost.includes(:cover_image).where("")
12
+ params[:st] = "published" if params[:st].nil?
13
+ parse_filters
14
+ apply_filters
15
+ @blog_posts = @r_objects = @relation.page(@current_page).per(@per_page)
16
+ return true
17
+ end
18
+
19
+ def apply_filters
20
+ @relation = @relation.search(@query) if @query
21
+ @relation = @relation.status(@status) if @status
22
+
23
+ @order_by = "created_at desc" unless @order_by
24
+ @relation = @relation.order(@order_by)
25
+ end
26
+
27
+ def configure_filter_settings
28
+ @filter_settings = {
29
+ string_filters: [
30
+ { filter_name: :query },
31
+ { filter_name: :status }
32
+ ],
33
+
34
+ boolean_filters: [],
35
+
36
+ reference_filters: [],
37
+ variable_filters: [],
38
+ }
39
+ end
40
+
41
+ def configure_filter_ui_settings
42
+ @filter_ui_settings = {
43
+ status: {
44
+ object_filter: false,
45
+ select_label: "Select Status",
46
+ display_hash: BlogPost::STATUS,
47
+ current_value: @status,
48
+ values: BlogPost::STATUS_REVERSE,
49
+ current_filters: @filters,
50
+ filters_to_remove: [],
51
+ filters_to_add: {},
52
+ url_method_name: 'blog_posts_url',
53
+ show_all_filter_on_top: true
54
+ }
55
+ }
56
+ end
57
+
58
+ def resource_controller_configuration
59
+ {
60
+ page_title: "Blog",
61
+ js_view_path: "/kuppayam/workflows/peacock",
62
+ view_path: "dhatu/blog_posts",
63
+ collection_name: :blog_posts,
64
+ item_name: :blog_post,
65
+ class: BlogPost
66
+ }
67
+ end
68
+
69
+ def breadcrumbs_configuration
70
+ {
71
+ heading: "Manage Blog",
72
+ icon: "fa-newspaper-o",
73
+ description: "Listing all Blog Posts",
74
+ links: [{name: "Dashboard", link: dashboard_path, icon: 'fa-dashboard'},
75
+ {name: "Manage Blog", link: dhatu.blog_posts_path, icon: 'fa-newspaper-o', active: true}]
76
+ }
77
+ end
78
+
79
+ def set_navs
80
+ set_nav("dhatu/blog_posts")
81
+ end
82
+
83
+ end
84
+ end
@@ -0,0 +1,84 @@
1
+ module Dhatu
2
+ class ContactInformationsController < ResourceController
3
+
4
+ private
5
+
6
+ def permitted_params
7
+ params.require("dhatu/contact_information").permit(:title, :address_1, :address_2, :address_3, :email, :landline, :fax, :mobile, :facebook, :twitter, :google_plus, :linked_in, :youtube, :instagram, :tumblr, :pinterest, :blog)
8
+ end
9
+
10
+ def get_collections
11
+ @relation = Dhatu::ContactInformation.where("")
12
+ params[:st] = "published" if params[:st].nil?
13
+ parse_filters
14
+ apply_filters
15
+ @contact_informations = @r_objects = @relation.page(@current_page).per(@per_page)
16
+ return true
17
+ end
18
+
19
+ def apply_filters
20
+ @relation = @relation.search(@query) if @query
21
+ @relation = @relation.status(@status) if @status
22
+
23
+ @order_by = "created_at desc" unless @order_by
24
+ @relation = @relation.order(@order_by)
25
+ end
26
+
27
+ def configure_filter_settings
28
+ @filter_settings = {
29
+ string_filters: [
30
+ { filter_name: :query },
31
+ { filter_name: :status }
32
+ ],
33
+
34
+ boolean_filters: [],
35
+
36
+ reference_filters: [],
37
+ variable_filters: [],
38
+ }
39
+ end
40
+
41
+ def configure_filter_ui_settings
42
+ @filter_ui_settings = {
43
+ status: {
44
+ object_filter: false,
45
+ select_label: "Select Status",
46
+ display_hash: Dhatu::ContactInformation::STATUS,
47
+ current_value: @status,
48
+ values: Dhatu::ContactInformation::STATUS_REVERSE,
49
+ current_filters: @filters,
50
+ filters_to_remove: [],
51
+ filters_to_add: {},
52
+ url_method_name: 'contact_informations_url',
53
+ show_all_filter_on_top: true
54
+ }
55
+ }
56
+ end
57
+
58
+ def resource_controller_configuration
59
+ {
60
+ page_title: "Contact Information",
61
+ js_view_path: "/kuppayam/workflows/peacock",
62
+ view_path: "dhatu/contact_informations",
63
+ collection_name: :contact_informations,
64
+ item_name: :contact_information,
65
+ class: Dhatu::ContactInformation
66
+ }
67
+ end
68
+
69
+ def breadcrumbs_configuration
70
+ {
71
+ heading: "Manage Contact Informations",
72
+ icon: "fa-phone-square",
73
+ description: "Listing all Contact Informations",
74
+ links: [{name: "Dashboard", link: dashboard_path, icon: 'fa-dashboard'},
75
+ {name: "Manage Contact Informations", link: dhatu.contact_informations_path, icon: 'fa-phone-square', active: true}]
76
+ }
77
+ end
78
+
79
+ def set_navs
80
+ set_nav("dhatu/contact_informations")
81
+ end
82
+
83
+ end
84
+ end
@@ -0,0 +1,24 @@
1
+ module Dhatu
2
+ class DashboardController < ApplicationController
3
+
4
+ # GET /dashboard
5
+ def index
6
+ end
7
+
8
+ private
9
+
10
+ def breadcrumbs_configuration
11
+ {
12
+ heading: "Dhatu Dashboard",
13
+ description: "Dhatu CMS Dashboard",
14
+ links: [{name: "Dhatu Dashboard", link: dhatu.dashboard_path, icon: 'fa-dashboard'}]
15
+ }
16
+ end
17
+
18
+ def set_navs
19
+ set_nav("dhatu/dashboard")
20
+ end
21
+
22
+ end
23
+ end
24
+
@@ -0,0 +1,84 @@
1
+ module Dhatu
2
+ class EventsController < ResourceController
3
+
4
+ private
5
+
6
+ def permitted_params
7
+ params.require("dhatu/event").permit(:title, :venue, :description, :date, :starts_at, :ends_at)
8
+ end
9
+
10
+ def get_collections
11
+ @relation = Event.includes(:cover_image).where("")
12
+ params[:st] = "published" if params[:st].nil?
13
+ parse_filters
14
+ apply_filters
15
+ @events = @r_objects = @relation.page(@current_page).per(@per_page)
16
+ return true
17
+ end
18
+
19
+ def apply_filters
20
+ @relation = @relation.search(@query) if @query
21
+ @relation = @relation.status(@status) if @status
22
+
23
+ @order_by = "created_at desc" unless @order_by
24
+ @relation = @relation.order(@order_by)
25
+ end
26
+
27
+ def configure_filter_settings
28
+ @filter_settings = {
29
+ string_filters: [
30
+ { filter_name: :query },
31
+ { filter_name: :status }
32
+ ],
33
+
34
+ boolean_filters: [],
35
+
36
+ reference_filters: [],
37
+ variable_filters: [],
38
+ }
39
+ end
40
+
41
+ def configure_filter_ui_settings
42
+ @filter_ui_settings = {
43
+ status: {
44
+ object_filter: false,
45
+ select_label: "Select Status",
46
+ display_hash: Event::STATUS,
47
+ current_value: @status,
48
+ values: Event::STATUS_REVERSE,
49
+ current_filters: @filters,
50
+ filters_to_remove: [],
51
+ filters_to_add: {},
52
+ url_method_name: 'events_url',
53
+ show_all_filter_on_top: true
54
+ }
55
+ }
56
+ end
57
+
58
+ def resource_controller_configuration
59
+ {
60
+ page_title: "Events",
61
+ js_view_path: "/kuppayam/workflows/peacock",
62
+ view_path: "dhatu/events",
63
+ collection_name: :events,
64
+ item_name: :event,
65
+ class: Event
66
+ }
67
+ end
68
+
69
+ def breadcrumbs_configuration
70
+ {
71
+ heading: "Manage Events",
72
+ icon: "fa-map-marker",
73
+ description: "Listing all Events",
74
+ links: [{name: "Dashboard", link: dashboard_path, icon: 'fa-dashboard'},
75
+ {name: "Manage Events", link: dhatu.events_path, icon: 'fa-calendar', active: true}]
76
+ }
77
+ end
78
+
79
+ def set_navs
80
+ set_nav("dhatu/events")
81
+ end
82
+
83
+ end
84
+ end