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
@@ -33,7 +33,7 @@
33
33
  <div>
34
34
  <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
35
35
 
36
- <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right btn btn-white" %>
36
+ <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: close_form_modal, class: "pull-right btn btn-white" %>
37
37
  </div>
38
38
 
39
39
  <%= clear_tag %>
@@ -120,7 +120,7 @@
120
120
  </div>
121
121
  <% end %>
122
122
 
123
- <%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
123
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right" %>
124
124
 
125
125
  <%= clear_tag %>
126
126
 
@@ -0,0 +1,40 @@
1
+ <%= form_for(@manufacturer,
2
+ :url => (@manufacturer.new_record? ? dhatu.manufacturers_path : dhatu.manufacturer_path),
3
+ :method => (@manufacturer.new_record? ? :post : :put),
4
+ :remote => true,
5
+ :html => {:id=>"form_manufacturer", :class=>"mb-0 form-horizontal"}) do |f| %>
6
+
7
+ <div id="manufacturer_form_error">
8
+ <%= @manufacturer.errors[:base].to_sentence %>
9
+ </div>
10
+
11
+ <div class="form-inputs m-15">
12
+
13
+ <%= theme_form_field(@manufacturer, :name, required: true, form_style: "top-bottom", html_options: { placeholder: "", "data-id": @manufacturer.id.to_s}) %>
14
+
15
+ <%= theme_form_field(@manufacturer, :description, required: true, html_options: {type: :textarea, class: "form-control wysihtml5", "data-stylesheet-url": "assets/wysiwyg-color.css"}, form_style: "top-bottom") %>
16
+
17
+ <%= theme_form_field(@manufacturer, :remarks, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
18
+
19
+ <div class="row">
20
+ <div class="col-md-9 pl-20">
21
+ <%= theme_form_field(@manufacturer, :website, required: true, form_style: "top-bottom", html_options: { placeholder: "http://" }) %>
22
+ </div>
23
+
24
+ <div class="col-md-3 pl-20">
25
+ <%= theme_form_field(@manufacturer, :priority, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
26
+ </div>
27
+ </div>
28
+
29
+ </div>
30
+
31
+ <div>
32
+ <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
33
+
34
+ <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: close_form_modal, class: "pull-right btn btn-white" %>
35
+ </div>
36
+
37
+ <%= clear_tag %>
38
+
39
+ <% end %>
40
+
@@ -0,0 +1,56 @@
1
+ <div class="table-responsive1">
2
+ <table class="table table-hover members-table middle-align">
3
+ <thead>
4
+ <tr>
5
+ <th style="text-align: center;width:5%" class="hidden-sm hidden-xs">#</th>
6
+ <th style="text-align: center;width:100px"><i class="fa fa-photo"></i></th>
7
+ <th>Name</th>
8
+ <th>Website</th>
9
+ <% if display_manage_links? %>
10
+ <th style="text-align: center;" colspan="2" class="hidden-sm hidden-xs">Actions</th>
11
+ <% end %>
12
+ </tr>
13
+ </thead>
14
+ <tbody>
15
+ <tr id="tr_manufacturer_0"></tr>
16
+ <% @manufacturers.each_with_index do |manufacturer, i| %>
17
+ <tr id="tr_manufacturer_<%= manufacturer.id %>">
18
+
19
+ <th scope="row" style="text-align: center;" class="hidden-sm hidden-xs">
20
+ <%= serial_number(i) %>
21
+ </th>
22
+
23
+ <td class="display-image" class="hidden-sm hidden-xs">
24
+ <%= display_thumbnail(manufacturer) %>
25
+ </td>
26
+
27
+ <td class="display-link">
28
+ <%= link_to manufacturer.name, manufacturer_path(manufacturer), remote: true, style: "color: chocolate;font-size:16px;" %><br>
29
+ <%= display_publishable_status(manufacturer) %>
30
+ <%= display_featured(manufacturer) %>
31
+ </td>
32
+
33
+ <td>
34
+ <%= manufacturer.website %>
35
+ </td>
36
+
37
+ <% if display_manage_links? %>
38
+ <td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(manufacturer) %></td>
39
+
40
+ <td class="action-links hidden-sm hidden-xs" style="width:10%">
41
+ <%= display_featurable_links(manufacturer) %>
42
+ <%= display_manage_links(manufacturer, @current_user) %>
43
+ </td>
44
+ <% end %>
45
+
46
+ </tr>
47
+ <% end %>
48
+ </tbody>
49
+ </table>
50
+ </div>
51
+
52
+ <div class="row">
53
+ <div class="col-sm-12">
54
+ <%= paginate_kuppayam(@manufacturers) %>
55
+ </div>
56
+ </div>
@@ -0,0 +1,30 @@
1
+ <tr id="tr_manufacturer_<%= manufacturer.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(manufacturer) %>
9
+ </td>
10
+
11
+ <td class="display-link">
12
+ <%= link_to manufacturer.name, manufacturer_path(manufacturer), remote: true, style: "color: chocolate;font-size:16px;" %><br>
13
+ <%= display_publishable_status(manufacturer) %>
14
+ <%= display_featured(manufacturer) %>
15
+ </td>
16
+
17
+ <td>
18
+ <%= manufacturer.website %>
19
+ </td>
20
+
21
+ <% if display_manage_links? %>
22
+ <td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(manufacturer) %></td>
23
+
24
+ <td class="action-links hidden-sm hidden-xs" style="width:10%">
25
+ <%= display_featurable_links(manufacturer) %>
26
+ <%= display_manage_links(manufacturer, @current_user) %>
27
+ </td>
28
+ <% end %>
29
+
30
+ </tr>
@@ -0,0 +1,69 @@
1
+ <div id="div_manufacturer_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(@manufacturer.name) %>
6
+ <%= clear_tag(10) %>
7
+ <%= display_publishable_status(@manufacturer) %>
8
+ <%= display_featured(@manufacturer) %>
9
+ <%= clear_tag(20) %>
10
+ <div class="row">
11
+ <div class="col-md-8">
12
+ <table class="table table-condensed table-bordered mb-60">
13
+ <tbody>
14
+ <tr><th>Priority</th><td><%= @manufacturer.priority %></td></tr>
15
+ </tbody>
16
+ </table>
17
+ </div>
18
+ </div>
19
+ <%= clear_tag(20) %>
20
+ </div>
21
+
22
+ <% if display_manage_links? %>
23
+ <div class="col-md-3 col-sm-12 col-xs-12">
24
+ <%= display_manage_buttons(@manufacturer) %>
25
+ <%= display_publishable_buttons(@manufacturer) %>
26
+ <%= display_featurable_buttons(@manufacturer) %>
27
+ </div>
28
+ <% end %>
29
+ </div>
30
+
31
+ <div class="row">
32
+
33
+ <div class="col-md-6 col-xs-12">
34
+ <%= clear_tag(40) %>
35
+ <div><strong class="fs-18">Manufacturer Details</strong></div>
36
+ <hr>
37
+ <strong>Description</strong><br><br>
38
+ <%= raw @manufacturer.description %>
39
+ <%= clear_tag(20) %>
40
+
41
+ <strong>Remarks</strong><br><br>
42
+ <%= @manufacturer.remarks %>
43
+ <%= clear_tag(20) %>
44
+ </div>
45
+
46
+ <div class="col-md-6 col-xs-12">
47
+ <%= clear_tag(40) %>
48
+ <div><strong class="fs-18">Cover Image</strong></div>
49
+ <hr>
50
+ <div class="col-md-6 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
51
+ <% if display_edit_links? %>
52
+ <%= edit_image(@manufacturer,
53
+ "logo.image.large.url",
54
+ upload_image_link(@manufacturer, :logo, nil ),
55
+ remove_image_link(@manufacturer, :logo, nil ),
56
+ image_options: {assoc_name: :logo }) %>
57
+ <% else %>
58
+ <%= display_image(@manufacturer, "logo.image.large.url", class: "img-inline", alt: @manufacturer.display_name) %>
59
+ <% end %>
60
+ </div>
61
+ </div>
62
+
63
+ </div>
64
+
65
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right" %>
66
+
67
+ <%= clear_tag(20) %>
68
+
69
+ </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_manufacturer_action_buttons">
11
+ <div class="row">
12
+ <div class="col-sm-6">
13
+ <%= theme_button('Add a Manufacturer', 'plus', dhatu.new_manufacturer_path(ct: @category.try(:id)), classes: "pull-left mr-10", btn_type: "success") if @current_user.has_create_permission?(Dhatu::Manufacturer) %>
14
+
15
+ <%= theme_button('Refresh', 'refresh', dhatu.manufacturers_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::Manufacturer, dhatu.manufacturers_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_manufacturer_index">
39
+ <%= render :partial=>"dhatu/manufacturers/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 manufacturerId = $('#inp_permalink').data("id");
55
+ if(manufacturerId){
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_manufacturer_show">
6
+ <%= render :partial=>"dhatu/manufacturers/show" %>
7
+ </div>
8
+
9
+ </div>
10
+
11
+ </div>
12
+
@@ -33,7 +33,7 @@
33
33
  <div>
34
34
  <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
35
35
 
36
- <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right btn btn-white" %>
36
+ <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: close_form_modal, class: "pull-right btn btn-white" %>
37
37
  </div>
38
38
 
39
39
  <%= 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
 
@@ -56,7 +56,7 @@
56
56
 
57
57
  <%= clear_tag(40) %>
58
58
 
59
- <%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
59
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right" %>
60
60
 
61
61
  <%= clear_tag %>
62
62
 
@@ -138,7 +138,7 @@
138
138
  </div>
139
139
  <% end %>
140
140
 
141
- <%= link_to "Close", "#", onclick: "closeGenericModal();", class: "btn btn-primary pull-right" %>
141
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right" %>
142
142
 
143
143
  <%= clear_tag %>
144
144
 
@@ -58,7 +58,7 @@
58
58
  </div>
59
59
  <% end %>
60
60
 
61
- <%= link_to "Close", "#", onclick: "closeGenericModal();", class: "btn btn-primary pull-right" %>
61
+ <%= link_to "Close", "#", onclick: close_show_modal, class: "btn btn-primary pull-right" %>
62
62
 
63
63
  <%= clear_tag %>
64
64
 
@@ -0,0 +1,58 @@
1
+ <%= form_for(@product,
2
+ :url => (@product.new_record? ? dhatu.products_path : dhatu.product_path),
3
+ :method => (@product.new_record? ? :post : :put),
4
+ :remote => true,
5
+ :html => {:id=>"form_product", :class=>"mb-0 form-horizontal"}) do |f| %>
6
+
7
+ <div id="product_form_error">
8
+ <%= @product.errors[:base].to_sentence %>
9
+ </div>
10
+
11
+ <div class="form-inputs m-15">
12
+
13
+ <%= theme_form_field(@product, :title, required: true, form_style: "top-bottom", html_options: { placeholder: "", "data-id": @product.id.to_s}) %>
14
+
15
+ <%= theme_form_field(@product, :sub_title, required: true, form_style: "top-bottom", html_options: { placeholder: "", "data-id": @product.id.to_s}) %>
16
+
17
+ <div class="row">
18
+ <div class="col-md-3 pr-20">
19
+ <% options = {assoc_collection: Dhatu::Category.filter_by_category_type("Dhatu::Product").published.select("id, name").order("priority ASC, name ASC").all, editable: true, assoc_display_method: :name, required: false, include_blank: true} %>
20
+ <%= theme_form_assoc_group(@product, :category_id, label: "Choose Category", form_style: "top-bottom", **options) %>
21
+ </div>
22
+ <div class="col-md-3 pl-20">
23
+ <%= theme_form_field(@product, :ean_sku, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
24
+ </div>
25
+ <div class="col-md-3 pl-20">
26
+ <%= theme_form_field(@product, :reference_number, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
27
+ </div>
28
+ </div>
29
+
30
+ <div class="row">
31
+ <div class="col-md-3 pr-20">
32
+ <% options = {assoc_collection: Dhatu::Manufacturer.published.select("id, name").order("priority ASC, name ASC").all, editable: true, assoc_display_method: :name, required: false, include_blank: true} %>
33
+ <%= theme_form_assoc_group(@product, :manufacturer_id, label: "Choose Manufacturer", form_style: "top-bottom", **options) %>
34
+ </div>
35
+ <div class="col-md-3 pl-20">
36
+ <%= theme_form_field(@product, :price, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
37
+ </div>
38
+ <div class="col-md-3 pl-20">
39
+ <%= theme_form_field(@product, :priority, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
40
+ </div>
41
+ </div>
42
+
43
+ <%= theme_form_field(@product, :short_description, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
44
+
45
+ <%= theme_form_field(@product, :description, required: true, html_options: {type: :textarea, class: "form-control wysihtml5", "data-stylesheet-url": "assets/wysiwyg-color.css"}, form_style: "top-bottom") %>
46
+
47
+ </div>
48
+
49
+ <div>
50
+ <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
51
+
52
+ <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: close_form_modal, class: "pull-right btn btn-white" %>
53
+ </div>
54
+
55
+ <%= clear_tag %>
56
+
57
+ <% end %>
58
+
@@ -0,0 +1,68 @@
1
+ <div class="table-responsive1">
2
+ <table class="table table-hover members-table middle-align">
3
+ <thead>
4
+ <tr>
5
+ <th style="text-align: center;width:5%" class="hidden-sm hidden-xs">#</th>
6
+ <th style="text-align: center;width:100px"><i class="fa fa-photo"></i></th>
7
+ <th>Title</th>
8
+ <th>Manufacturer</th>
9
+ <th>Category</th>
10
+ <th>Priority</th>
11
+ <% if display_manage_links? %>
12
+ <th style="text-align: center;" colspan="2" class="hidden-sm hidden-xs">Actions</th>
13
+ <% end %>
14
+ </tr>
15
+ </thead>
16
+ <tbody>
17
+ <tr id="tr_product_0"></tr>
18
+ <% @products.each_with_index do |product, i| %>
19
+ <tr id="tr_product_<%= product.id %>">
20
+
21
+ <th scope="row" style="text-align: center;" class="hidden-sm hidden-xs">
22
+ <%= serial_number(i) %>
23
+ </th>
24
+
25
+ <td class="display-image" class="hidden-sm hidden-xs">
26
+ <%= display_thumbnail(product) %>
27
+ </td>
28
+
29
+ <td class="display-link">
30
+ <%= link_to product.title, product_path(product), remote: true, style: "color: chocolate;font-size:16px;" %><br>
31
+ <%= link_to product.sub_title, product_path(product), remote: true, style: "color: chocolate;font-size:16px;" %><br>
32
+ <p style="color:#898989;" class="hidden-sm hidden-xs"><%= product.short_description %></p>
33
+ <%= display_publishable_status(product) %>
34
+ <%= display_featured(product) %>
35
+ </td>
36
+
37
+ <td>
38
+ <%= link_to product.manufacturer.try(:display_name), product_path(product), remote: true %>
39
+ </td>
40
+
41
+ <td>
42
+ <%= link_to product.category.try(:display_name), product_path(product), remote: true %>
43
+ </td>
44
+
45
+ <td>
46
+ <%= product.priority %>
47
+ </td>
48
+
49
+ <% if display_manage_links? %>
50
+ <td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(product) %></td>
51
+
52
+ <td class="action-links hidden-sm hidden-xs" style="width:10%">
53
+ <%= display_featurable_links(product) %>
54
+ <%= display_manage_links(product, @current_user) %>
55
+ </td>
56
+ <% end %>
57
+
58
+ </tr>
59
+ <% end %>
60
+ </tbody>
61
+ </table>
62
+ </div>
63
+
64
+ <div class="row">
65
+ <div class="col-sm-12">
66
+ <%= paginate_kuppayam(@products) %>
67
+ </div>
68
+ </div>