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.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/dhatu/application_controller.rb +0 -2
  3. data/app/controllers/dhatu/career_opportunities_controller.rb +145 -0
  4. data/app/controllers/dhatu/manufacturers_controller.rb +114 -0
  5. data/app/controllers/dhatu/products_controller.rb +164 -0
  6. data/app/controllers/dhatu/resource_controller.rb +1 -0
  7. data/app/models/dhatu/blog_post.rb +1 -1
  8. data/app/models/dhatu/booking.rb +1 -1
  9. data/app/models/dhatu/branch.rb +1 -1
  10. data/app/models/dhatu/career_opportunity.rb +92 -0
  11. data/app/models/dhatu/category.rb +1 -1
  12. data/app/models/dhatu/event.rb +1 -1
  13. data/app/models/dhatu/manufacturer.rb +113 -0
  14. data/app/models/dhatu/meta_tag.rb +1 -1
  15. data/app/models/dhatu/offer.rb +1 -1
  16. data/app/models/dhatu/page.rb +1 -1
  17. data/app/models/dhatu/photo_album.rb +1 -1
  18. data/app/models/dhatu/price.rb +1 -1
  19. data/app/models/dhatu/product.rb +141 -0
  20. data/app/models/dhatu/project.rb +1 -1
  21. data/app/models/dhatu/promotion.rb +1 -1
  22. data/app/models/dhatu/promotion_attribute.rb +1 -1
  23. data/app/models/dhatu/promotion_enquiry.rb +1 -1
  24. data/app/models/dhatu/section.rb +11 -1
  25. data/app/models/dhatu/service.rb +1 -1
  26. data/app/models/dhatu/team_member.rb +1 -1
  27. data/app/models/dhatu/testimonial.rb +1 -1
  28. data/app/views/dhatu/blog_posts/_form.html.erb +1 -1
  29. data/app/views/dhatu/blog_posts/_show.html.erb +1 -1
  30. data/app/views/dhatu/bookings/_show.html.erb +1 -1
  31. data/app/views/dhatu/branches/_form.html.erb +1 -1
  32. data/app/views/dhatu/branches/_show.html.erb +1 -1
  33. data/app/views/dhatu/career_opportunities/_form.html.erb +41 -0
  34. data/app/views/dhatu/career_opportunities/_index.html.erb +52 -0
  35. data/app/views/dhatu/career_opportunities/_row.html.erb +26 -0
  36. data/app/views/dhatu/career_opportunities/_show.html.erb +96 -0
  37. data/app/views/dhatu/career_opportunities/index.html.erb +52 -0
  38. data/app/views/dhatu/categories/_show.html.erb +1 -1
  39. data/app/views/dhatu/dashboard/_index.html.erb +18 -0
  40. data/app/views/dhatu/events/_form.html.erb +1 -1
  41. data/app/views/dhatu/events/_show.html.erb +1 -1
  42. data/app/views/dhatu/manufacturers/_form.html.erb +40 -0
  43. data/app/views/dhatu/manufacturers/_index.html.erb +56 -0
  44. data/app/views/dhatu/manufacturers/_row.html.erb +30 -0
  45. data/app/views/dhatu/manufacturers/_show.html.erb +69 -0
  46. data/app/views/dhatu/manufacturers/index.html.erb +63 -0
  47. data/app/views/dhatu/manufacturers/show.html.erb +12 -0
  48. data/app/views/dhatu/offers/_form.html.erb +1 -1
  49. data/app/views/dhatu/offers/_show.html.erb +1 -1
  50. data/app/views/dhatu/pages/_show.html.erb +1 -1
  51. data/app/views/dhatu/photo_albums/_show.html.erb +1 -1
  52. data/app/views/dhatu/prices/_show.html.erb +1 -1
  53. data/app/views/dhatu/products/_form.html.erb +58 -0
  54. data/app/views/dhatu/products/_index.html.erb +68 -0
  55. data/app/views/dhatu/products/_row.html.erb +40 -0
  56. data/app/views/dhatu/products/_show.html.erb +146 -0
  57. data/app/views/dhatu/products/index.html.erb +63 -0
  58. data/app/views/dhatu/products/show.html.erb +12 -0
  59. data/app/views/dhatu/projects/_form.html.erb +1 -1
  60. data/app/views/dhatu/projects/_show.html.erb +1 -1
  61. data/app/views/dhatu/promotion_attributes/_show.html.erb +1 -1
  62. data/app/views/dhatu/promotion_enquiries/_show.html.erb +1 -1
  63. data/app/views/dhatu/promotions/_form.html.erb +1 -1
  64. data/app/views/dhatu/promotions/_show.html.erb +1 -1
  65. data/app/views/dhatu/sections/_form.html.erb +1 -1
  66. data/app/views/dhatu/sections/_show.html.erb +1 -1
  67. data/app/views/dhatu/services/_form.html.erb +1 -1
  68. data/app/views/dhatu/services/_show.html.erb +1 -1
  69. data/app/views/dhatu/team_members/_form.html.erb +1 -1
  70. data/app/views/dhatu/team_members/_show.html.erb +1 -1
  71. data/app/views/dhatu/testimonials/_form.html.erb +1 -1
  72. data/app/views/dhatu/testimonials/_show.html.erb +1 -1
  73. data/app/views/layouts/kuppayam/_sidebar.html.erb +18 -0
  74. data/config/routes.rb +24 -0
  75. data/db/data/dummy/categories.csv +4 -1
  76. data/db/data/dummy/products.csv +3 -0
  77. data/db/migrate/20160803045832_create_events.rb +2 -2
  78. data/db/migrate/20160803045832_create_offers.rb +2 -2
  79. data/db/migrate/20171010055101_create_pages.rb +3 -3
  80. data/db/migrate/20171010055102_create_sections.rb +2 -2
  81. data/db/migrate/20171012073510_create_testimonials.rb +2 -2
  82. data/db/migrate/20171012103805_create_team_members.rb +2 -2
  83. data/db/migrate/20171012103806_create_blog_posts.rb +2 -2
  84. data/db/migrate/20171014125053_create_branches.rb +2 -2
  85. data/db/migrate/20171014125054_create_categories.rb +3 -3
  86. data/db/migrate/20171014125055_create_services.rb +3 -3
  87. data/db/migrate/20171104163660_create_prices.rb +2 -2
  88. data/db/migrate/20171104163661_create_bookings.rb +2 -2
  89. data/db/migrate/20171120145548_create_promotion_and_promotion_enquiries.rb +5 -5
  90. data/db/migrate/20180101093434_create_projects.rb +3 -3
  91. data/db/migrate/20180101093436_create_meta_tags.rb +3 -3
  92. data/db/migrate/20180101093437_create_photo_albums.rb +3 -3
  93. data/db/migrate/20180101093438_create_manufacturers.rb +17 -0
  94. data/db/migrate/20180101093439_create_products.rb +29 -0
  95. data/db/migrate/20180101093449_create_career_opportunities.rb +23 -0
  96. data/lib/dhatu/version.rb +1 -1
  97. metadata +29 -7
  98. data/app/views/dhatu/sections_old/_form.html.erb +0 -171
  99. data/app/views/dhatu/sections_old/_index.html.erb +0 -53
  100. data/app/views/dhatu/sections_old/_row.html.erb +0 -26
  101. data/app/views/dhatu/sections_old/_show.html.erb +0 -208
  102. data/app/views/dhatu/sections_old/index.html.erb +0 -52
@@ -0,0 +1,40 @@
1
+ <tr id="tr_product_<%= product.id %>">
2
+
3
+ <th scope="row" style="text-align: center;" class="hidden-sm hidden-xs">
4
+ <%= serial_number(i) %>
5
+ </th>
6
+
7
+ <td class="display-image" class="hidden-sm hidden-xs">
8
+ <%= display_thumbnail(product) %>
9
+ </td>
10
+
11
+ <td class="display-link">
12
+ <%= link_to product.title, product_path(product), remote: true, style: "color: chocolate;font-size:16px;" %><br>
13
+ <%= link_to product.sub_title, product_path(product), remote: true, style: "color: chocolate;font-size:16px;" %><br>
14
+ <p style="color:#898989;" class="hidden-sm hidden-xs"><%= product.short_description %></p>
15
+ <%= display_publishable_status(product) %>
16
+ <%= display_featured(product) %>
17
+ </td>
18
+
19
+ <td>
20
+ <%= link_to product.manufacturer.try(:display_name), product_path(product), remote: true %>
21
+ </td>
22
+
23
+ <td>
24
+ <%= link_to product.category.try(:display_name), product_path(product), remote: true %>
25
+ </td>
26
+
27
+ <td>
28
+ <%= product.priority %>
29
+ </td>
30
+
31
+ <% if display_manage_links? %>
32
+ <td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(product) %></td>
33
+
34
+ <td class="action-links hidden-sm hidden-xs" style="width:10%">
35
+ <%= display_featurable_links(product) %>
36
+ <%= display_manage_links(product, @current_user) %>
37
+ </td>
38
+ <% end %>
39
+
40
+ </tr>
@@ -0,0 +1,146 @@
1
+ <div id="div_product_show">
2
+
3
+ <div class="row">
4
+ <div class="col-md-9 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
5
+ <%= theme_panel_heading(@product.title) %>
6
+ <%= theme_panel_sub_heading(@product.sub_title, "#") %>
7
+ <%= clear_tag(10) %>
8
+ <%= display_publishable_status(@product) %>
9
+ <%= display_featured(@product) %>
10
+ <%= clear_tag(20) %>
11
+ <div class="row">
12
+ <div class="col-md-8">
13
+ <table class="table table-condensed table-bordered mb-60">
14
+ <tbody>
15
+ <tr><th>EAN / SKU</th><td><%= @product.ean_sku %></td></tr>
16
+ <tr><th>Ref. No.</th><td><%= @product.reference_number %></td></tr>
17
+ <tr><th>Client</th><td><%= @product.category.try(:display_name) %></td></tr>
18
+ <tr><th>Manufacturer</th><td><%= @product.manufacturer.try(:display_name) %></td></tr>
19
+ <tr><th>Priority</th><td><%= @product.priority %></td></tr>
20
+ </tbody>
21
+ </table>
22
+ </div>
23
+ </div>
24
+ <%= clear_tag(20) %>
25
+ </div>
26
+
27
+ <% if display_manage_links? %>
28
+ <div class="col-md-3 col-sm-12 col-xs-12">
29
+ <%= display_manage_buttons(@product) %>
30
+ <%= display_publishable_buttons(@product) %>
31
+ <%= display_featurable_buttons(@product) %>
32
+ </div>
33
+ <% end %>
34
+ </div>
35
+
36
+ <div class="row">
37
+
38
+ <div class="col-md-6 col-xs-12">
39
+ <%= clear_tag(40) %>
40
+ <div><strong class="fs-18">Product Details</strong></div>
41
+ <hr>
42
+ <strong>Short Description</strong><br><br>
43
+ <%= @product.short_description %>
44
+ <%= clear_tag(20) %>
45
+
46
+ <strong>Description</strong><br><br>
47
+ <%= raw(@product.description) %>
48
+ <%= clear_tag(20) %>
49
+ </div>
50
+
51
+ <div class="col-md-6 col-xs-12">
52
+ <%= clear_tag(40) %>
53
+ <div><strong class="fs-18">Cover Image</strong></div>
54
+ <hr>
55
+ <div class="col-md-6 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
56
+ <% if display_edit_links? %>
57
+ <%= edit_image(@product,
58
+ "cover_image.image.large.url",
59
+ upload_image_link(@product, :cover_image, nil ),
60
+ remove_image_link(@product, :cover_image, nil ),
61
+ image_options: {assoc_name: :cover_image }) %>
62
+ <% else %>
63
+ <%= display_image(@product, "cover_image.image.large.url", class: "img-inline", alt: @product.display_name) %>
64
+ <% end %>
65
+ </div>
66
+ </div>
67
+
68
+ </div>
69
+
70
+ <%= clear_tag(40) %>
71
+ <div><strong class="fs-18">Gallery Images</strong></div>
72
+ <hr>
73
+ <div id="div_product_images_buttons">
74
+ <div class="row">
75
+ <div class="col-md-6">
76
+ <%= theme_button('Upload a New Image', 'plus', upload_multiple_image_link(@product, :gallery_images, nil ), classes: "pull-left", btn_type: "white") %>
77
+ </div>
78
+ <div class="col-md-6">
79
+ </div>
80
+ </div>
81
+ </div>
82
+ <%= render :partial=>"kuppayam/images/multiple_images", locals: { images: @product.gallery_images } %>
83
+
84
+ <!-- Display Meta Tags -->
85
+ <% if @current_user.has_read_permission?(Dhatu::MetaTag) %>
86
+ <%= clear_tag(40) %>
87
+ <%= render :partial=>"dhatu/meta_tags/list", locals: {meta_taggable: @product } %>
88
+ <% end %>
89
+
90
+ <% if @current_user.super_admin? %>
91
+ <%= clear_tag(40) %>
92
+ <div><strong class="fs-18">Technical Details</strong></div>
93
+ <hr>
94
+ <div class="table-responsive">
95
+ <table class="table table-striped table-condensed table-bordered mb-60">
96
+ <tbody>
97
+
98
+ <tr>
99
+ <th>ID</th><td><%= @product.id %></td>
100
+ <th></th><td></td>
101
+ </tr>
102
+
103
+ <tr>
104
+ <th>Title</th><td><%= @product.title %></td>
105
+ <th>Sub Titlie</th><td><%= @product.sub_title %></td>
106
+ </tr>
107
+
108
+ <tr>
109
+ <th>EAN / SKU</th><td><%= @product.ean_sku %></td>
110
+ <th>Ref. No.</th><td><%= @product.reference_number %></td>
111
+ </tr>
112
+
113
+ <tr>
114
+ <th>Category</th><td><%= "#{@product.category.name} (#{@product.category.id})" if @product.category %></td>
115
+ </tr>
116
+
117
+ <tr>
118
+ <th>Manufacturer</th><td><%= "#{@product.manufacturer.name} (#{@product.manufacturer.id})" if @product.category %></td>
119
+ <th>Price</th><td><%= @product.price %></td>
120
+ </tr>
121
+
122
+ <tr>
123
+ <th>Status</th><td><%= @product.status %></td>
124
+ <th>Featured</th><td><%= @product.featured? ? "Yes" : "No" %></td>
125
+ </tr>
126
+
127
+ <tr>
128
+ <th>Priority</th><td><%= @product.priority %></td>
129
+ <th></th><td></td>
130
+ </tr>
131
+
132
+ <tr>
133
+ <th>Created At</th><td><%= @product.created_at.strftime("%m/%d/%Y - %H:%M:%S") if @product.created_at %></td>
134
+ <th>Updated At</th><td><%= @product.updated_at.strftime("%m/%d/%Y - %H:%M:%S") if @product.updated_at %></td>
135
+ </tr>
136
+
137
+ </tbody>
138
+ </table>
139
+ </div>
140
+ <% end %>
141
+
142
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right" %>
143
+
144
+ <%= clear_tag(20) %>
145
+
146
+ </div>
@@ -0,0 +1,63 @@
1
+ <div class="row">
2
+
3
+ <div class="col-md-12">
4
+
5
+ <div class="tabs-vertical-env">
6
+
7
+ <div class="tab-content">
8
+ <div class="tab-pane active">
9
+
10
+ <div id="div_product_action_buttons">
11
+ <div class="row">
12
+ <div class="col-sm-6">
13
+ <%= theme_button('Add a Product', 'plus', dhatu.new_product_path(ct: @category.try(:id)), classes: "pull-left mr-10", btn_type: "success") if @current_user.has_create_permission?(Dhatu::Product) %>
14
+
15
+ <%= theme_button('Refresh', 'refresh', dhatu.products_path(ct: @category.try(:id)), classes: "pull-left mr-10", btn_type: "white") %>
16
+ </div>
17
+ <div class="col-sm-6">
18
+ <%= search_form_kuppayam(Dhatu::Product, dhatu.products_path(), text: @filters[:query]) %>
19
+ </div>
20
+ </div>
21
+ <div class="row">
22
+ <div class="col-md-12 visible-sm visible-xs mt-10">
23
+ </div>
24
+ <div class="col-md-12">
25
+ <% @filter_ui_settings.each do |filter_name, options| %>
26
+ <% if options[:object_filter] == true %>
27
+ <%= report_object_filter(filter_name, options) %>
28
+ <% else %>
29
+ <%= report_filter(filter_name, options) %>
30
+ <% end %>
31
+ <% end %>
32
+ </div>
33
+ </div>
34
+
35
+ </div>
36
+ <%= clear_tag(10) %>
37
+
38
+ <div id="div_product_index">
39
+ <%= render :partial=>"dhatu/products/index" %>
40
+ </div>
41
+ <%= clear_tag(10) %>
42
+
43
+ </div>
44
+ </div>
45
+
46
+ </div>
47
+
48
+ </div>
49
+
50
+ </div>
51
+
52
+ <script type="text/javascript">
53
+ $('body').on('change', '#inp_name', function() {
54
+ var productId = $('#inp_permalink').data("id");
55
+ if(productId){
56
+ } else {
57
+ var permalink = convertToSlug($(this).val()).slice(0, 63);
58
+ $('#inp_permalink').val(permalink);
59
+ }
60
+ });
61
+ </script>
62
+
63
+
@@ -0,0 +1,12 @@
1
+ <div class="row">
2
+
3
+ <div class="col-md-12 p-30" style="background-color:#fff;">
4
+
5
+ <div id="div_product_show">
6
+ <%= render :partial=>"dhatu/products/show" %>
7
+ </div>
8
+
9
+ </div>
10
+
11
+ </div>
12
+
@@ -44,7 +44,7 @@
44
44
  <div>
45
45
  <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
46
46
 
47
- <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right btn btn-white" %>
47
+ <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: close_form_modal, class: "pull-right btn btn-white" %>
48
48
  </div>
49
49
 
50
50
  <%= clear_tag %>
@@ -122,7 +122,7 @@
122
122
  </div>
123
123
  <% end %>
124
124
 
125
- <%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
125
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right" %>
126
126
 
127
127
  <%= clear_tag(20) %>
128
128
 
@@ -63,7 +63,7 @@
63
63
  <div class="col-md-3 col-xs-12">
64
64
  <%= display_manage_buttons(@promotion_attribute) %>
65
65
  <%= display_publishable_buttons(@promotion_attribute) %>
66
- <%= link_to raw("<i class=\"fa fa-close mr-5\"></i> <span>Cancel</span>"), "#", onclick: "closeGenericModal();", class: "mt-100 btn btn-black btn-block" %>
66
+ <%= link_to raw("<i class=\"fa fa-close mr-5\"></i> <span>Cancel</span>"), "#", onclick: close_show_modal, class: "mt-100 btn btn-black btn-block" %>
67
67
  </div>
68
68
  <% end %>
69
69
 
@@ -50,7 +50,7 @@
50
50
  </table>
51
51
  <% end %>
52
52
 
53
- <%= link_to "Close", "#", onclick: "closeGenericModal();", class: "btn btn-primary pull-right" %>
53
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right" %>
54
54
 
55
55
  <%= clear_tag %>
56
56
 
@@ -54,7 +54,7 @@
54
54
  <div>
55
55
  <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
56
56
 
57
- <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right btn btn-white" %>
57
+ <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: close_form_modal, class: "pull-right btn btn-white" %>
58
58
  </div>
59
59
 
60
60
  <%= clear_tag %>
@@ -231,7 +231,7 @@
231
231
  </table>
232
232
  <% end %>
233
233
 
234
- <%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
234
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right" %>
235
235
 
236
236
  <%= clear_tag %>
237
237
 
@@ -161,7 +161,7 @@
161
161
  <div class="col-md-12 pr-20">
162
162
  <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
163
163
 
164
- <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right btn btn-white" %>
164
+ <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: close_form_modal, class: "pull-right btn btn-white" %>
165
165
  </div>
166
166
  </div>
167
167
 
@@ -199,7 +199,7 @@
199
199
  </div>
200
200
  <% end %>
201
201
 
202
- <%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right ml-10", style: "width:120px;" %>
202
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right ml-10", style: "width:120px;" %>
203
203
 
204
204
  <%= link_to "Edit", edit_section_path(@section), remote: true, class: "btn btn-success pull-right", style: "width:180px;" if display_manage_links? %>
205
205
 
@@ -47,7 +47,7 @@
47
47
  <div>
48
48
  <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
49
49
 
50
- <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right btn btn-white" %>
50
+ <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: close_form_modal, class: "pull-right btn btn-white" %>
51
51
  </div>
52
52
 
53
53
  <%= clear_tag %>
@@ -122,7 +122,7 @@
122
122
  </div>
123
123
  <% end %>
124
124
 
125
- <%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
125
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right" %>
126
126
 
127
127
  <%= clear_tag %>
128
128
 
@@ -55,7 +55,7 @@
55
55
  <div>
56
56
  <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
57
57
 
58
- <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right btn btn-white" %>
58
+ <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: close_form_modal, class: "pull-right btn btn-white" %>
59
59
  </div>
60
60
 
61
61
  <%= clear_tag %>
@@ -98,7 +98,7 @@
98
98
  </div>
99
99
  <% end %>
100
100
 
101
- <%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
101
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right" %>
102
102
 
103
103
  <%= clear_tag %>
104
104
 
@@ -40,7 +40,7 @@
40
40
  <div>
41
41
  <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
42
42
 
43
- <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right btn btn-white" %>
43
+ <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: close_form_modal, class: "pull-right btn btn-white" %>
44
44
  </div>
45
45
 
46
46
  <%= clear_tag %>
@@ -96,7 +96,7 @@
96
96
  </div>
97
97
  <% end %>
98
98
 
99
- <%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
99
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right" %>
100
100
 
101
101
  <%= clear_tag %>
102
102
 
@@ -18,6 +18,18 @@
18
18
  url: dhatu.projects_url,
19
19
  has_permission: @current_user.has_read_permission?(Dhatu::Project)
20
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: "linecons-shop",
30
+ url: dhatu.products_url,
31
+ has_permission: @current_user.has_read_permission?(Dhatu::Product)
32
+ },
21
33
  services: {
22
34
  text: "Services",
23
35
  icon_class: "fa-glass",
@@ -54,6 +66,12 @@
54
66
  url: dhatu.testimonials_url,
55
67
  has_permission: @current_user.has_read_permission?(Dhatu::Testimonial)
56
68
  },
69
+ careers: {
70
+ text: "Careers",
71
+ icon_class: "fa-comment",
72
+ url: dhatu.career_opportunities_url,
73
+ has_permission: @current_user.has_read_permission?(Dhatu::CareerOpportunity)
74
+ },
57
75
  team: {
58
76
  text: "Team",
59
77
  icon_class: "fa-group",
@@ -42,6 +42,22 @@ Dhatu::Engine.routes.draw do
42
42
  end
43
43
  end
44
44
 
45
+ resources :manufacturers do
46
+ member do
47
+ put :update_status, as: :update_status
48
+ put :mark_as_featured
49
+ put :remove_from_featured
50
+ end
51
+ end
52
+
53
+ resources :products do
54
+ member do
55
+ put :update_status, as: :update_status
56
+ put :mark_as_featured
57
+ put :remove_from_featured
58
+ end
59
+ end
60
+
45
61
  resources :projects do
46
62
  member do
47
63
  put :update_status, as: :update_status
@@ -118,6 +134,14 @@ Dhatu::Engine.routes.draw do
118
134
  end
119
135
  end
120
136
 
137
+ resources :career_opportunities do
138
+ member do
139
+ put :update_status
140
+ put :mark_as_featured
141
+ put :remove_from_featured
142
+ end
143
+ end
144
+
121
145
  resources :team_members do
122
146
  member do
123
147
  put :update_status, as: :update_status