dhatu 0.3.0.pre.materialize → 0.3.1.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.
- 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
@@ -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
|
+
|
@@ -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:
|
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:
|
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:
|
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
|
|
@@ -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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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 %>
|
@@ -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:
|
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 %>
|
@@ -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",
|
data/config/routes.rb
CHANGED
@@ -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
|