dhatu 0.3.6.pre.materialize → 0.3.7.pre.materialize

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/android-icon-144x144.png +0 -0
  3. data/app/assets/images/android-icon-192x192.png +0 -0
  4. data/app/assets/images/android-icon-36x36.png +0 -0
  5. data/app/assets/images/android-icon-48x48.png +0 -0
  6. data/app/assets/images/android-icon-72x72.png +0 -0
  7. data/app/assets/images/android-icon-96x96.png +0 -0
  8. data/app/assets/images/apple-icon-114x114.png +0 -0
  9. data/app/assets/images/apple-icon-120x120.png +0 -0
  10. data/app/assets/images/apple-icon-144x144.png +0 -0
  11. data/app/assets/images/apple-icon-152x152.png +0 -0
  12. data/app/assets/images/apple-icon-180x180.png +0 -0
  13. data/app/assets/images/apple-icon-57x57.png +0 -0
  14. data/app/assets/images/apple-icon-60x60.png +0 -0
  15. data/app/assets/images/apple-icon-72x72.png +0 -0
  16. data/app/assets/images/apple-icon-76x76.png +0 -0
  17. data/app/assets/images/apple-icon-precomposed.png +0 -0
  18. data/app/assets/images/apple-icon.png +0 -0
  19. data/app/assets/images/browserconfig.xml +2 -0
  20. data/app/assets/images/favicon-16x16.png +0 -0
  21. data/app/assets/images/favicon-32x32.png +0 -0
  22. data/app/assets/images/favicon-96x96.png +0 -0
  23. data/app/assets/images/favicon.ico +0 -0
  24. data/app/assets/images/favicon.png +0 -0
  25. data/app/assets/images/logo-small.png +0 -0
  26. data/app/assets/images/logo-white-small.png +0 -0
  27. data/app/assets/images/logo-white.png +0 -0
  28. data/app/assets/images/logo.png +0 -0
  29. data/app/assets/images/manifest.json +41 -0
  30. data/app/assets/images/ms-icon-144x144.png +0 -0
  31. data/app/assets/images/ms-icon-150x150.png +0 -0
  32. data/app/assets/images/ms-icon-310x310.png +0 -0
  33. data/app/assets/images/ms-icon-70x70.png +0 -0
  34. data/app/controllers/dhatu/application_controller.rb +2 -2
  35. data/app/controllers/dhatu/career_opportunities_controller.rb +2 -2
  36. data/app/controllers/dhatu/dashboard_controller.rb +165 -0
  37. data/app/controllers/dhatu/products_controller.rb +2 -2
  38. data/app/controllers/dhatu/projects_controller.rb +2 -2
  39. data/app/controllers/dhatu/services_controller.rb +2 -2
  40. data/app/models/dhatu/career_opportunity.rb +1 -1
  41. data/app/models/dhatu/category.rb +2 -10
  42. data/app/views/dhatu/dashboard/bootstrap4/_index.html.erb +41 -0
  43. data/app/views/dhatu/dashboard/index.html.erb +4 -4
  44. data/app/views/dhatu/dashboard/materialize/_index.html.erb +26 -0
  45. data/app/views/dhatu/dashboard/xenon/_index.html.erb +26 -0
  46. data/app/views/layouts/kuppayam/bootstrap4/_footer.html.erb +24 -0
  47. data/app/views/layouts/kuppayam/{_header.html.erb → bootstrap4/_header.html.erb} +0 -0
  48. data/app/views/layouts/kuppayam/bootstrap4/_navbar.html.erb +271 -0
  49. data/app/views/layouts/kuppayam/bootstrap4/_sidebar.html.erb +251 -0
  50. data/app/views/layouts/kuppayam/{_footer.html.erb → materialize/_footer.html.erb} +1 -1
  51. data/app/views/layouts/kuppayam/materialize/_header.html.erb +43 -0
  52. data/app/views/layouts/kuppayam/{_navbar.html.erb → materialize/_navbar.html.erb} +0 -0
  53. data/app/views/layouts/kuppayam/{_sidebar.html.erb → materialize/_sidebar.html.erb} +5 -5
  54. data/app/views/layouts/kuppayam/xenon/_footer.html.erb +25 -0
  55. data/app/views/layouts/kuppayam/xenon/_header.html.erb +43 -0
  56. data/app/views/layouts/kuppayam/xenon/_navbar.html.erb +55 -0
  57. data/app/views/layouts/kuppayam/xenon/_sidebar.html.erb +267 -0
  58. data/app/views/pattana/dashboard/_index.html.erb +1 -1
  59. data/app/views/usman/dashboard/_super_admin_index.html.erb +1 -1
  60. data/lib/dhatu/version.rb +1 -1
  61. metadata +55 -14
  62. data/app/views/dhatu/dashboard/_index.html.erb +0 -141
  63. data/app/views/layouts/dhatu/application.html.erb +0 -14
@@ -4,7 +4,7 @@
4
4
 
5
5
  <!-- Add your copyright text here -->
6
6
  <div class="footer-text">
7
- &copy; 2017
7
+ &copy; <%= Date.today.year %>
8
8
  <strong>SBIDU</strong>
9
9
 
10
10
  All rights reserved. <br>developed, maintained and hosted by <a href="http://rightsolutions.io" target="_blank" style="color:red">Right Solutions</a>
@@ -0,0 +1,43 @@
1
+ <div class="top-bar">
2
+ <div class="top-bar-left">
3
+ <ul class="dropdown menu" data-dropdown-menu>
4
+ <li class="menu-text">SBIDU</li>
5
+ <li>
6
+ <a href="#">One</a>
7
+ <ul class="menu vertical">
8
+ <li><a href="#">One</a></li>
9
+ <li><a href="#">Two</a></li>
10
+ <li><a href="#">Three</a></li>
11
+ </ul>
12
+ </li>
13
+ <li><a href="#">Two</a></li>
14
+ <li><a href="#">Three</a></li>
15
+ </ul>
16
+ </div>
17
+ <div class="top-bar-right">
18
+ <ul class="menu">
19
+ <li><input type="search" placeholder="Search"></li>
20
+ <li><button type="button" class="button">Search</button></li>
21
+ </ul>
22
+ </div>
23
+ </div>
24
+
25
+ <div class="header mb-40">
26
+
27
+ <div class="visible-xs pull-left mt-10">
28
+ <a href="#menu-toggle" class="btn btn-default" id="menu-toggle"><i class="fa fa-list"></i></a>
29
+ <%#= theme_button('', 'list', "#menu-toggle", btn_type: "default", id: "menu-toggle", classes: "") %>
30
+ </div>
31
+
32
+ <div class="pull-right mt-10">
33
+ <% if @current_user %>
34
+ <span style="color:#898989;">Welcome</span> <span style="color:#4b4b4b;"><%= @current_user.name %></span>
35
+ &nbsp;&nbsp;|&nbsp;&nbsp;
36
+ <%= link_to raw("Sign Out"), usman.sign_out_path, method: :delete %>
37
+ <% else %>
38
+ <%= link_to raw("Sign In"), "#" %>
39
+ <% end %>
40
+ </div>
41
+ <div class="cl-10"></div>
42
+ </div>
43
+
@@ -14,7 +14,7 @@
14
14
  },
15
15
  projects: {
16
16
  text: "Projects",
17
- icon_class: "fa-rocket",
17
+ icon_class: "fa-tasks",
18
18
  url: dhatu.projects_url,
19
19
  has_permission: @current_user.has_read_permission?(Dhatu::Project)
20
20
  },
@@ -26,13 +26,13 @@
26
26
  },
27
27
  products: {
28
28
  text: "Products",
29
- icon_class: "linecons-shop",
29
+ icon_class: "fa-th",
30
30
  url: dhatu.products_url,
31
31
  has_permission: @current_user.has_read_permission?(Dhatu::Product)
32
32
  },
33
33
  services: {
34
34
  text: "Services",
35
- icon_class: "fa-glass",
35
+ icon_class: "fa-wrench",
36
36
  url: dhatu.services_url,
37
37
  has_permission: @current_user.has_read_permission?(Dhatu::Service)
38
38
  },
@@ -50,7 +50,7 @@
50
50
  },
51
51
  branches: {
52
52
  text: "Branches",
53
- icon_class: "fa-location-arrow",
53
+ icon_class: "fa-map-marker",
54
54
  url: dhatu.branches_url,
55
55
  has_permission: @current_user.has_read_permission?(Dhatu::Branch)
56
56
  },
@@ -68,7 +68,7 @@
68
68
  },
69
69
  careers: {
70
70
  text: "Careers",
71
- icon_class: "fa-comment",
71
+ icon_class: "fa-male",
72
72
  url: dhatu.career_opportunities_url,
73
73
  has_permission: @current_user.has_read_permission?(Dhatu::CareerOpportunity)
74
74
  },
@@ -0,0 +1,25 @@
1
+ <footer class="main-footer sticky footer-type-1">
2
+
3
+ <div class="footer-inner">
4
+
5
+ <!-- Add your copyright text here -->
6
+ <div class="footer-text">
7
+ &copy; <%= Date.today.year %>
8
+ <strong>SBIDU</strong>
9
+
10
+ All rights reserved. <br>developed, maintained and hosted by <a href="http://rightsolutions.io" target="_blank" style="color:red">Right Solutions</a>
11
+ </div>
12
+
13
+
14
+ <!-- Go to Top Link, just add rel="go-top" to any link to add this functionality -->
15
+ <div class="go-up">
16
+
17
+ <a href="#" rel="go-top">
18
+ <i class="fa-angle-up"></i>
19
+ </a>
20
+
21
+ </div>
22
+
23
+ </div>
24
+
25
+ </footer>
@@ -0,0 +1,43 @@
1
+ <div class="top-bar">
2
+ <div class="top-bar-left">
3
+ <ul class="dropdown menu" data-dropdown-menu>
4
+ <li class="menu-text">SBIDU</li>
5
+ <li>
6
+ <a href="#">One</a>
7
+ <ul class="menu vertical">
8
+ <li><a href="#">One</a></li>
9
+ <li><a href="#">Two</a></li>
10
+ <li><a href="#">Three</a></li>
11
+ </ul>
12
+ </li>
13
+ <li><a href="#">Two</a></li>
14
+ <li><a href="#">Three</a></li>
15
+ </ul>
16
+ </div>
17
+ <div class="top-bar-right">
18
+ <ul class="menu">
19
+ <li><input type="search" placeholder="Search"></li>
20
+ <li><button type="button" class="button">Search</button></li>
21
+ </ul>
22
+ </div>
23
+ </div>
24
+
25
+ <div class="header mb-40">
26
+
27
+ <div class="visible-xs pull-left mt-10">
28
+ <a href="#menu-toggle" class="btn btn-default" id="menu-toggle"><i class="fa fa-list"></i></a>
29
+ <%#= theme_button('', 'list', "#menu-toggle", btn_type: "default", id: "menu-toggle", classes: "") %>
30
+ </div>
31
+
32
+ <div class="pull-right mt-10">
33
+ <% if @current_user %>
34
+ <span style="color:#898989;">Welcome</span> <span style="color:#4b4b4b;"><%= @current_user.name %></span>
35
+ &nbsp;&nbsp;|&nbsp;&nbsp;
36
+ <%= link_to raw("Sign Out"), usman.sign_out_path, method: :delete %>
37
+ <% else %>
38
+ <%= link_to raw("Sign In"), "#" %>
39
+ <% end %>
40
+ </div>
41
+ <div class="cl-10"></div>
42
+ </div>
43
+
@@ -0,0 +1,55 @@
1
+ <nav class="navbar user-info-navbar" role="navigation"><!-- User Info, Notifications and Menu Bar -->
2
+
3
+ <!-- Left links for user info navbar -->
4
+ <ul class="user-info-menu left-links list-inline list-unstyled">
5
+
6
+ <li class="hidden-sm hidden-xs">
7
+ <a href="#" data-toggle="sidebar">
8
+ <i class="fa-bars"></i>
9
+ </a>
10
+ </li>
11
+
12
+ </ul>
13
+
14
+ <!-- Right links for user info navbar -->
15
+ <ul class="user-info-menu right-links list-inline list-unstyled">
16
+ <li class="dropdown user-profile">
17
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">
18
+
19
+ <%= display_image(@current_user, "profile_picture.image.small.url", width: "32", height: "auto", class: "img-circle img-inline userpic-32", alt: @current_user.display_name) %>
20
+
21
+ <span>
22
+ <%= @current_user.display_name %>
23
+ <i class="fa-angle-down"></i>
24
+ </span>
25
+
26
+ </a>
27
+
28
+ <ul class="dropdown-menu user-profile-menu list-unstyled">
29
+ <li>
30
+ <a href="#settings">
31
+ <i class="fa-wrench"></i>
32
+ Settings
33
+ </a>
34
+ </li>
35
+ <li>
36
+ <a href="#profile">
37
+ <i class="fa-user"></i>
38
+ Profile
39
+ </a>
40
+ </li>
41
+ <li>
42
+ <a href="#help">
43
+ <i class="fa-info"></i>
44
+ Help
45
+ </a>
46
+ </li>
47
+ <li class="last">
48
+ <%= link_to raw("<i class='fa-lock'></i>Sign Out"), usman.sign_out_path, method: :delete %>
49
+ </li>
50
+ </ul>
51
+ </li>
52
+
53
+ </ul>
54
+
55
+ </nav>
@@ -0,0 +1,267 @@
1
+ <% sidebar_items = {
2
+ dhatu_website_items: {
3
+ pages: {
4
+ text: "Pages",
5
+ icon_class: "fa-file",
6
+ url: dhatu.pages_url,
7
+ has_permission: @current_user.has_read_permission?(Dhatu::Page)
8
+ },
9
+ categories: {
10
+ text: "Categories",
11
+ icon_class: "fa-sitemap",
12
+ url: dhatu.choose_category_type_url,
13
+ has_permission: @current_user.has_read_permission?(Dhatu::Category)
14
+ },
15
+ projects: {
16
+ text: "Projects",
17
+ icon_class: "fa-tasks",
18
+ url: dhatu.projects_url,
19
+ has_permission: @current_user.has_read_permission?(Dhatu::Project)
20
+ },
21
+ manufacturers: {
22
+ text: "Manufacturers",
23
+ icon_class: "fa-institution",
24
+ url: dhatu.manufacturers_url,
25
+ has_permission: @current_user.has_read_permission?(Dhatu::Manufacturer)
26
+ },
27
+ products: {
28
+ text: "Products",
29
+ icon_class: "fa-th",
30
+ url: dhatu.products_url,
31
+ has_permission: @current_user.has_read_permission?(Dhatu::Product)
32
+ },
33
+ services: {
34
+ text: "Services",
35
+ icon_class: "fa-wrench",
36
+ url: dhatu.services_url,
37
+ has_permission: @current_user.has_read_permission?(Dhatu::Service)
38
+ },
39
+ photo_albums: {
40
+ text: "Photo Gallery",
41
+ icon_class: "fa-image",
42
+ url: dhatu.photo_albums_url,
43
+ has_permission: @current_user.has_read_permission?(Dhatu::PhotoAlbum)
44
+ },
45
+ prices: {
46
+ text: "Prices",
47
+ icon_class: "fa-dollar",
48
+ url: dhatu.prices_url,
49
+ has_permission: @current_user.has_read_permission?(Dhatu::Price)
50
+ },
51
+ branches: {
52
+ text: "Branches",
53
+ icon_class: "fa-map-marker",
54
+ url: dhatu.branches_url,
55
+ has_permission: @current_user.has_read_permission?(Dhatu::Branch)
56
+ },
57
+ events: {
58
+ text: "Events",
59
+ icon_class: "fa-calendar",
60
+ url: dhatu.events_url,
61
+ has_permission: @current_user.has_read_permission?(Dhatu::Event)
62
+ },
63
+ testimonials: {
64
+ text: "Testimonials",
65
+ icon_class: "fa-comment",
66
+ url: dhatu.testimonials_url,
67
+ has_permission: @current_user.has_read_permission?(Dhatu::Testimonial)
68
+ },
69
+ careers: {
70
+ text: "Careers",
71
+ icon_class: "fa-male",
72
+ url: dhatu.career_opportunities_url,
73
+ has_permission: @current_user.has_read_permission?(Dhatu::CareerOpportunity)
74
+ },
75
+ team: {
76
+ text: "Team",
77
+ icon_class: "fa-group",
78
+ url: dhatu.team_members_url,
79
+ has_permission: @current_user.has_read_permission?(Dhatu::TeamMember)
80
+ }
81
+ },
82
+ dhatu_marketing_items: {
83
+ promotions: {
84
+ text: "Promotions",
85
+ icon_class: "fa-gift",
86
+ url: dhatu.promotions_url,
87
+ has_permission: @current_user.has_read_permission?(Dhatu::Promotion)
88
+ },
89
+ promotion_enquiries: {
90
+ text: "Promotional Enquiries",
91
+ icon_class: "fa-bullhorn",
92
+ url: dhatu.promotion_enquiries_url,
93
+ has_permission: @current_user.has_read_permission?(Dhatu::PromotionEnquiry)
94
+ },
95
+ bookings: {
96
+ text: "Bookings",
97
+ icon_class: "fa-calendar",
98
+ url: dhatu.bookings_url,
99
+ has_permission: @current_user.has_read_permission?(Dhatu::Booking)
100
+ },
101
+ blog_posts: {
102
+ text: "Blog",
103
+ icon_class: "fa-newspaper-o",
104
+ url: dhatu.blog_posts_url,
105
+ has_permission: @current_user.has_read_permission?(Dhatu::BlogPost)
106
+ },
107
+ offers: {
108
+ text: "Offers",
109
+ icon_class: "fa-gift",
110
+ url: dhatu.offers_url,
111
+ has_permission: @current_user.has_read_permission?(Dhatu::Offer)
112
+ }
113
+ },
114
+ configuration_items: {
115
+ features: {
116
+ text: "Manage Features",
117
+ icon_class: "fa-diamond",
118
+ url: usman.features_url,
119
+ has_permission: @current_user.has_read_permission?(Feature)
120
+ },
121
+ users: {
122
+ text: "Manage Users",
123
+ icon_class: "fa-user",
124
+ url: usman.users_url,
125
+ has_permission: @current_user.has_read_permission?(User)
126
+ },
127
+ registrations: {
128
+ text: "Manage Registrations",
129
+ icon_class: "fa-mobile",
130
+ url: usman.registrations_url,
131
+ has_permission: @current_user.has_read_permission?(Registration)
132
+ },
133
+ roles: {
134
+ text: "Manage Roles",
135
+ icon_class: "fa-graduation-cap",
136
+ url: usman.roles_url,
137
+ has_permission: @current_user.has_read_permission?(Role)
138
+ },
139
+ permissions: {
140
+ text: "Manage Permissions",
141
+ icon_class: "fa-lock",
142
+ url: usman.permissions_url,
143
+ has_permission: @current_user.has_read_permission?(Permission)
144
+ },
145
+ countries: {
146
+ text: "Manage Countries",
147
+ icon_class: "fa-flag-checkered",
148
+ url: pattana.countries_url,
149
+ has_permission: @current_user.has_read_permission?(Country)
150
+ },
151
+ regions: {
152
+ text: "Manage Regions",
153
+ icon_class: "fa-globe",
154
+ url: pattana.regions_url,
155
+ has_permission: @current_user.has_read_permission?(Region)
156
+ },
157
+ cities: {
158
+ text: "Manage Cities",
159
+ icon_class: "fa-map-marker",
160
+ url: pattana.cities_url,
161
+ has_permission: @current_user.has_read_permission?(City)
162
+ },
163
+ }
164
+ }
165
+ %>
166
+
167
+ <div class="sidebar-menu toggle-others collapsed">
168
+
169
+ <div class="sidebar-menu-inner">
170
+
171
+ <header class="logo-env">
172
+ <!-- logo -->
173
+ <div class="logo">
174
+ <a href="/" class="logo-expanded">
175
+ <%= image_tag("logo-white.png", width: "180") %>
176
+ </a>
177
+ <a href="/" class="logo-collapsed">
178
+ <%= image_tag("logo-small.png", width: "40") %>
179
+ </a>
180
+ </div>
181
+
182
+ <!-- This will toggle the mobile menu and will be visible only on mobile devices -->
183
+ <div class="mobile-menu-toggle visible-xs">
184
+ <!-- <a href="#" data-toggle="notifications-menu">
185
+ <i class="fa-bell-o"></i><span class="badge badge-success">7</span>
186
+ </a> -->
187
+ <a href="#" data-toggle="user-info-menu">
188
+ <%= display_image(@current_user, "profile_picture.image.small.url", width: "32", height: "auto", class: "img-circle img-inline userpic-32", alt: @current_user.display_name) %>
189
+ </a>
190
+ <a href="#" data-toggle="mobile-menu"><i class="fa-bars"></i></a>
191
+ </div>
192
+ </header>
193
+
194
+ <!-- add class "multiple-expanded" to allow multiple submenus to open -->
195
+ <!-- class "auto-inherit-active-class" will automatically add "active" class for parent elements who are marked already with class "active" -->
196
+ <ul id="main-menu" class="main-menu multiple-expanded auto-inherit-active-class">
197
+ <!-- Admin Dashboard -->
198
+ <% if @current_user.super_admin? || @current_user.has_role?("Site Admin") %>
199
+ <li class="<%= nav_active?('admin/dashboard') ? 'active' : '' %>">
200
+ <% begin %>
201
+ <%= link_to raw("<i class=\"fa-desktop\"></i> <span class='title'>Dashboard</span>"), main_app.dashboard_path %>
202
+ <% rescue %>
203
+ <%= link_to raw("<i class=\"fa-desktop\"></i> <span class='title'>Dashboard</span>"), dhatu.dashboard_path %>
204
+ <% end %>
205
+ </li>
206
+ <% else %>
207
+ <li class="<%= nav_active?('profile/dashboard') ? 'active' : '' %>">
208
+ <%= link_to raw("<i class=\"fa-desktop\"></i> <span class='title'>Dashboard</span>"), usman.my_account_url %>
209
+ </li>
210
+ <% end %>
211
+
212
+ <% if sidebar_items[:dhatu_website_items] && sidebar_items[:dhatu_website_items].map{|x,y| x if y[:has_permission] }.compact.any? %>
213
+ <li class="">
214
+ <a href="#">
215
+ <i class="fa-trello"></i>
216
+ <span class="title">Website Elements</span>
217
+ </a>
218
+ <ul>
219
+ <% sidebar_items[:dhatu_website_items].each do |key, values| %>
220
+ <% next unless values[:has_permission] %>
221
+ <li class="">
222
+ <%= link_to raw("<i class=\"#{values[:icon_class]}\"></i> <span class='title'>#{values[:text]}</span>"), values[:url] %>
223
+ </li>
224
+ <% end %>
225
+ </ul>
226
+ </li>
227
+ <% end %>
228
+
229
+ <% if sidebar_items[:dhatu_marketing_items] && sidebar_items[:dhatu_marketing_items].map{|x,y| x if y[:has_permission] }.compact.any? %>
230
+ <li class="">
231
+ <a href="#">
232
+ <i class="fa-money"></i>
233
+ <span class="title">Marketing Elements</span>
234
+ </a>
235
+ <ul>
236
+ <% sidebar_items[:dhatu_marketing_items].each do |key, values| %>
237
+ <% next unless values[:has_permission] %>
238
+ <li class="">
239
+ <%= link_to raw("<i class=\"#{values[:icon_class]}\"></i> <span class='title'>#{values[:text]}</span>"), values[:url] %>
240
+ </li>
241
+ <% end %>
242
+ </ul>
243
+ </li>
244
+ <% end %>
245
+
246
+ <% if sidebar_items[:configuration_items] && sidebar_items[:configuration_items].map{|x,y| x if y[:has_permission] }.compact.any? %>
247
+ <li class="">
248
+ <a href="#">
249
+ <i class="fa-group"></i>
250
+ <span class="title">Configurations</span>
251
+ </a>
252
+ <ul>
253
+ <% sidebar_items[:configuration_items].each do |key, values| %>
254
+ <% next unless values[:has_permission] %>
255
+ <li class="">
256
+ <%= link_to raw("<i class=\"#{values[:icon_class]}\"></i> <span class='title'>#{values[:text]}</span>"), values[:url] %>
257
+ </li>
258
+ <% end %>
259
+ </ul>
260
+ </li>
261
+ <% end %>
262
+
263
+ </ul>
264
+
265
+ </div>
266
+
267
+ </div>