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
@@ -1,7 +1,7 @@
1
1
  class Dhatu::Promotion < Dhatu::ApplicationRecord
2
2
 
3
3
  # Set Table Name
4
- self.table_name = "promotions"
4
+ self.table_name = "dhatu_promotions"
5
5
 
6
6
  # Including the State Machine Methods
7
7
  include Publishable
@@ -1,7 +1,7 @@
1
1
  class Dhatu::PromotionAttribute < Dhatu::ApplicationRecord
2
2
 
3
3
  # Set Table Name
4
- self.table_name = "promotion_attributes"
4
+ self.table_name = "dhatu_promotion_attributes"
5
5
 
6
6
  # Including the State Machine Methods
7
7
  include Publishable
@@ -1,7 +1,7 @@
1
1
  class Dhatu::PromotionEnquiry < Dhatu::ApplicationRecord
2
2
 
3
3
  # Set Table Name
4
- self.table_name = "promotion_enquiries"
4
+ self.table_name = "dhatu_promotion_enquiries"
5
5
 
6
6
  # Including the State Machine Methods
7
7
  include Readable
@@ -1,7 +1,7 @@
1
1
  class Dhatu::Section < Dhatu::ApplicationRecord
2
2
 
3
3
  # Set Table Name
4
- self.table_name = "sections"
4
+ self.table_name = "dhatu_sections"
5
5
 
6
6
  # Including the State Machine Methods
7
7
  include Publishable
@@ -62,6 +62,16 @@ class Dhatu::Section < Dhatu::ApplicationRecord
62
62
  section.button_one_link = hsh[:button_one_link].to_s.strip
63
63
  section.button_two_link = hsh[:button_two_link].to_s.strip
64
64
 
65
+ # Copying Settings if any
66
+ section.enable_title = ["true", "t","1","yes","y"].include?(hsh[:enable_title].to_s.downcase.strip)
67
+ section.enable_sub_title = ["true", "t","1","yes","y"].include?(hsh[:enable_sub_title].to_s.downcase.strip)
68
+ section.enable_short_description = ["true", "t","1","yes","y"].include?(hsh[:enable_short_description].to_s.downcase.strip)
69
+ section.enable_long_description = ["true", "t","1","yes","y"].include?(hsh[:enable_long_description].to_s.downcase.strip)
70
+ section.enable_button_one = ["true", "t","1","yes","y"].include?(hsh[:enable_button_one].to_s.downcase.strip)
71
+ section.enable_button_two = ["true", "t","1","yes","y"].include?(hsh[:enable_button_two].to_s.downcase.strip)
72
+ section.enable_cover_image = ["true", "t","1","yes","y"].include?(hsh[:enable_cover_image].to_s.downcase.strip)
73
+ section.enable_gallery_images = ["true", "t","1","yes","y"].include?(hsh[:enable_gallery_images].to_s.downcase.strip)
74
+
65
75
  section.page = Dhatu::Page.where("code = ?", hsh[:page].to_s.strip).first
66
76
 
67
77
  section.status = hsh[:status].to_s.strip || PUBLISHED
@@ -1,7 +1,7 @@
1
1
  class Dhatu::Service < Dhatu::ApplicationRecord
2
2
 
3
3
  # Set Table Name
4
- self.table_name = "services"
4
+ self.table_name = "dhatu_services"
5
5
 
6
6
  # Including the State Machine Methods
7
7
  include Publishable
@@ -1,7 +1,7 @@
1
1
  class Dhatu::TeamMember < Dhatu::ApplicationRecord
2
2
 
3
3
  # Set Table Name
4
- self.table_name = "team_members"
4
+ self.table_name = "dhatu_team_members"
5
5
 
6
6
  # Including the State Machine Methods
7
7
  include Publishable
@@ -1,7 +1,7 @@
1
1
  class Dhatu::Testimonial < Dhatu::ApplicationRecord
2
2
 
3
3
  # Set Table Name
4
- self.table_name = "testimonials"
4
+ self.table_name = "dhatu_testimonials"
5
5
 
6
6
  # Including the State Machine Methods
7
7
  include Publishable
@@ -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 %>
@@ -125,7 +125,7 @@
125
125
  <%= render :partial=>"dhatu/meta_tags/list", locals: {meta_taggable: @blog_post } %>
126
126
  <% end %>
127
127
 
128
- <%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
128
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right" %>
129
129
 
130
130
  <%= clear_tag %>
131
131
 
@@ -72,7 +72,7 @@
72
72
 
73
73
  </div>
74
74
 
75
- <%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
75
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right" %>
76
76
 
77
77
  <%= clear_tag %>
78
78
 
@@ -95,7 +95,7 @@
95
95
  <div class="row">
96
96
  <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
97
97
 
98
- <%= link_to raw("<i class='fa fa-close'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right btn btn-white" %>
98
+ <%= link_to raw("<i class='fa fa-close'></i><span>Cancel</span>"), "#", onclick: close_form_modal, class: "pull-right btn btn-white" %>
99
99
  </div>
100
100
 
101
101
  <%= clear_tag %>
@@ -158,7 +158,7 @@
158
158
  </div>
159
159
  <% end %>
160
160
 
161
- <%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
161
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right" %>
162
162
 
163
163
  <%= clear_tag %>
164
164
 
@@ -0,0 +1,41 @@
1
+ <%= form_for(@career_opportunity,
2
+ :url => (@career_opportunity.new_record? ? dhatu.career_opportunities_path : dhatu.career_opportunity_path),
3
+ :method => (@career_opportunity.new_record? ? :post : :put),
4
+ :remote => true,
5
+ :html => {:id=>"form_career_opportunity", :class=>"mb-0 form-horizontal"}) do |f| %>
6
+
7
+ <div id="career_opportunity_form_error">
8
+ <%= @career_opportunity.errors[:base].to_sentence %>
9
+ </div>
10
+
11
+ <div class="form-inputs m-15">
12
+
13
+ <%= theme_form_field(@career_opportunity, :title, form_style: "top-bottom", html_options: { placeholder: "e.g: Sales Support & Client Service Executive"}) %>
14
+
15
+ <%= theme_form_field(@career_opportunity, :sub_title, required: false, form_style: "top-bottom", html_options: { placeholder: "e.g ABC Trading Company, Dubai Branch" }) %>
16
+
17
+ <%= theme_form_field(@career_opportunity, :short_description, form_style: "top-bottom", html_options: { placeholder: "e.g: We have an urgent opening for a sales representative with the following requirements." }) %>
18
+
19
+ <%= theme_form_field(@career_opportunity, :description, html_options: {type: :textarea, class: "form-control wysihtml5", "data-stylesheet-url": "assets/wysiwyg-color.css", placeholder: ""}, form_style: "top-bottom") %>
20
+
21
+ <div class="row">
22
+ <div class="col-md-3 pl-20">
23
+ <%= theme_form_field(@career_opportunity, :reference_number, required: false, form_style: "top-bottom") %>
24
+ </div>
25
+ <div class="col-md-3 pl-20">
26
+ <%= theme_form_field(@career_opportunity, :priority, required: false, html_options: {type: :number, style: "width:70px;"}, form_style: "top-bottom") %>
27
+ </div>
28
+ </div>
29
+
30
+ </div>
31
+
32
+ <div>
33
+ <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
34
+
35
+ <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: close_form_modal, class: "pull-right btn btn-white" %>
36
+ </div>
37
+
38
+ <%= clear_tag %>
39
+
40
+ <% end %>
41
+
@@ -0,0 +1,52 @@
1
+ <table class="table table-hover members-table middle-align">
2
+ <thead>
3
+ <tr>
4
+ <th style="text-align: center;width:5%" class="hidden-sm hidden-xs">#</th>
5
+ <th>Title</th>
6
+ <th>Sub Title</th>
7
+ <th>Category</th>
8
+ <th style="width:100px;" class="hidden-sm hidden-xs">Featured</th>
9
+ <th style="width:100px;" class="hidden-sm hidden-xs">Status</th>
10
+ <% if display_manage_links? %>
11
+ <th style="text-align: center;" colspan="2" class="hidden-sm hidden-xs">Actions</th>
12
+ <% end %>
13
+ </tr>
14
+ </thead>
15
+ <tbody>
16
+ <tr id="tr_career_opportunity_0"></tr>
17
+ <% @career_opportunities.each_with_index do |career_opportunity, i| %>
18
+ <tr id="tr_career_opportunity_<%= career_opportunity.id %>">
19
+
20
+ <th scope="row" style="text-align: center;" class="hidden-sm hidden-xs">
21
+ <%= serial_number(i) %>
22
+ </th>
23
+
24
+ <td class="display-image">
25
+ <%= link_to career_opportunity.title, career_opportunity_path(career_opportunity), remote: true, style: "font-weight:bold;color:#4b4b4b;" %><br>
26
+ </td>
27
+
28
+ <td><%= career_opportunity.sub_title %></td>
29
+ <td><%= career_opportunity.category.try(:name) %></td>
30
+
31
+ <td class="hidden-sm hidden-xs"><%= display_featured(career_opportunity) %></td>
32
+ <td class="hidden-sm hidden-xs"><%= display_publishable_status(career_opportunity) %></td>
33
+
34
+ <% if display_manage_links? %>
35
+ <td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(career_opportunity) %></td>
36
+
37
+ <td class="action-links hidden-sm hidden-xs" style="width:10%">
38
+ <%= display_featurable_links(career_opportunity) %>
39
+ <%= display_manage_links(career_opportunity, @current_user) %>
40
+ </td>
41
+ <% end %>
42
+
43
+ </tr>
44
+ <% end %>
45
+ </tbody>
46
+ </table>
47
+
48
+ <div class="row">
49
+ <div class="col-sm-12">
50
+ <%= paginate_kuppayam(@career_opportunities) %>
51
+ </div>
52
+ </div>
@@ -0,0 +1,26 @@
1
+ <tr id="tr_career_opportunity_<%= career_opportunity.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">
8
+ <%= link_to career_opportunity.title, career_opportunity_path(career_opportunity), remote: true, style: "font-weight:bold;color:#4b4b4b;" %><br>
9
+ </td>
10
+
11
+ <td><%= career_opportunity.sub_title %></td>
12
+ <td><%= career_opportunity.category.try(:name) %></td>
13
+
14
+ <td class="hidden-sm hidden-xs"><%= display_featured(career_opportunity) %></td>
15
+ <td class="hidden-sm hidden-xs"><%= display_publishable_status(career_opportunity) %></td>
16
+
17
+ <% if display_manage_links? %>
18
+ <td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(career_opportunity) %></td>
19
+
20
+ <td class="action-links hidden-sm hidden-xs" style="width:10%">
21
+ <%= display_featurable_links(career_opportunity) %>
22
+ <%= display_manage_links(career_opportunity, @current_user) %>
23
+ </td>
24
+ <% end %>
25
+
26
+ </tr>
@@ -0,0 +1,96 @@
1
+ <div id="div_career_opportunity_show">
2
+
3
+ <div class="row">
4
+
5
+ <div class="col-md-9 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
6
+
7
+ <%= theme_panel_heading(@career_opportunity.title) %>
8
+ <%= theme_panel_sub_heading(@career_opportunity.sub_title, "#") %>
9
+ <%= clear_tag(10) %>
10
+ <%= display_publishable_status(@career_opportunity) %>
11
+ <%= display_featured(@career_opportunity) %>
12
+ <%= clear_tag(20) %>
13
+ </div>
14
+
15
+ <% if display_manage_links? %>
16
+ <div class="col-md-3 col-sm-12 col-xs-12">
17
+ <%= display_manage_buttons(@career_opportunity) %>
18
+ <%= display_publishable_buttons(@career_opportunity) %>
19
+ <%= display_featurable_buttons(@career_opportunity) %>
20
+ </div>
21
+ <% end %>
22
+ </div>
23
+
24
+ <div class="row">
25
+
26
+ <div class="col-md-6 col-xs-12">
27
+ <%= clear_tag(40) %>
28
+ <div><strong class="fs-18">Details</strong></div>
29
+ <hr>
30
+ <strong>Short Description</strong><br><br>
31
+ <%= raw(@career_opportunity.short_description) %>
32
+ <%= clear_tag(20) %>
33
+ <hr>
34
+ <strong>Description</strong><br><br>
35
+ <%= raw(@career_opportunity.description) %>
36
+ </div>
37
+
38
+ <div class="col-md-6 col-xs-12">
39
+ <%= clear_tag(40) %>
40
+ <div><strong class="fs-18">Cover Image</strong></div>
41
+ <hr>
42
+ <div class="row">
43
+ <div class="col-md-6 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
44
+ <% if display_edit_links? %>
45
+ <%= edit_image(@career_opportunity,
46
+ "cover_image.image.large.url",
47
+ upload_image_link(@career_opportunity, :cover_image, nil ),
48
+ remove_image_link(@career_opportunity, :cover_image, nil ),
49
+ image_options: {assoc_name: :cover_image }) %>
50
+ <% else %>
51
+ <%= display_image(@career_opportunity, "cover_image.image.large.url", class: "img-inline", alt: @career_opportunity.display_name) %>
52
+ <% end %>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+
58
+ <!-- Display Meta Tags -->
59
+ <% if @current_user.has_read_permission?(Dhatu::MetaTag) %>
60
+ <%= clear_tag(40) %>
61
+ <%= render :partial=>"dhatu/meta_tags/list", locals: {meta_taggable: @career_opportunity } %>
62
+ <% end %>
63
+
64
+ <% if @current_user.super_admin? %>
65
+ <%= clear_tag(40) %>
66
+ <div><strong class="fs-18">Technical Details</strong></div>
67
+ <hr>
68
+ <div class="table-responsive">
69
+ <table class="table table-striped table-condensed table-bordered mb-60">
70
+ <tbody>
71
+
72
+ <tr>
73
+ <th>ID</th><td><%= @career_opportunity.id %></td>
74
+ <th>Permalink</th><td><%= @career_opportunity.to_param %></td>
75
+ </tr>
76
+
77
+ <tr>
78
+ <th>Status</th><td><%= @career_opportunity.status %></td>
79
+ <th>Featured</th><td><%= @career_opportunity.featured %></td>
80
+ </tr>
81
+
82
+ <tr>
83
+ <th>Created At</th><td><%= @career_opportunity.created_at.strftime("%m/%d/%Y - %H:%M:%S") if @career_opportunity.created_at %></td>
84
+ <th>Updated At</th><td><%= @career_opportunity.updated_at.strftime("%m/%d/%Y - %H:%M:%S") if @career_opportunity.updated_at %></td>
85
+ </tr>
86
+
87
+ </tbody>
88
+ </table>
89
+ </div>
90
+ <% end %>
91
+
92
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right" %>
93
+
94
+ <%= clear_tag %>
95
+
96
+ </div>
@@ -0,0 +1,52 @@
1
+ <div class="row">
2
+
3
+ <div class="col-md-12">
4
+
5
+ <ul class="nav nav-tabs nav-tabs-justified">
6
+ </ul>
7
+
8
+ <div class="tab-content">
9
+ <div class="tab-pane active">
10
+
11
+ <div id="div_career_opportunity_action_buttons">
12
+
13
+ <div class="row">
14
+ <div class="col-sm-6">
15
+ <%= theme_button('Add a CareerOpportunity', 'plus', new_career_opportunity_path(), classes: "pull-left mr-10", btn_type: "success") if @current_user.has_create_permission?(Dhatu::CareerOpportunity) %>
16
+
17
+ <%= theme_button('Refresh', 'refresh', career_opportunities_path(st: @status), classes: "pull-left mr-10", btn_type: "white") %>
18
+ </div>
19
+ <div class="col-sm-6">
20
+ <%= search_form_kuppayam(Dhatu::CareerOpportunity, career_opportunities_path(st: @status), text: @filters[:query]) %>
21
+ </div>
22
+ </div>
23
+
24
+ <div class="row">
25
+ <div class="col-md-12 visible-sm visible-xs mt-10">
26
+ </div>
27
+ <div class="col-md-12">
28
+ <% @filter_ui_settings.each do |filter_name, options| %>
29
+ <% if options[:object_filter] == true %>
30
+ <%= report_object_filter(filter_name, options) %>
31
+ <% else %>
32
+ <%= report_filter(filter_name, options) %>
33
+ <% end %>
34
+ <% end %>
35
+ </div>
36
+ </div>
37
+
38
+ </div>
39
+ <%= clear_tag(10) %>
40
+
41
+ <div id="div_career_opportunity_index">
42
+ <%= render :partial=>"dhatu/career_opportunities/index" %>
43
+ </div>
44
+ <%= clear_tag(10) %>
45
+
46
+ </div>
47
+ </div>
48
+
49
+ </div>
50
+
51
+ </div>
52
+
@@ -131,7 +131,7 @@
131
131
  </div>
132
132
  <% end %>
133
133
 
134
- <%= link_to "Close", "#", onclick: "closeGenericModal();", class: "btn btn-primary pull-right" %>
134
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right" %>
135
135
 
136
136
  <%= clear_tag %>
137
137
 
@@ -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",