dhatu 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/dhatu/blog_posts_controller.rb +81 -14
- data/app/controllers/dhatu/bookings_controller.rb +51 -5
- data/app/controllers/dhatu/branches_controller.rb +42 -8
- data/app/controllers/dhatu/categories_controller.rb +86 -47
- data/app/controllers/dhatu/events_controller.rb +79 -9
- data/app/controllers/dhatu/meta_tags_controller.rb +96 -0
- data/app/controllers/dhatu/offers_controller.rb +83 -10
- data/app/controllers/dhatu/pages_controller.rb +130 -0
- data/app/controllers/dhatu/prices_controller.rb +78 -12
- data/app/controllers/dhatu/projects_controller.rb +78 -22
- data/app/controllers/dhatu/promotion_enquiries_controller.rb +69 -7
- data/app/controllers/dhatu/promotions_controller.rb +46 -2
- data/app/controllers/dhatu/resource_controller.rb +4 -0
- data/app/controllers/dhatu/sections_controller.rb +41 -8
- data/app/controllers/dhatu/services_controller.rb +78 -18
- data/app/controllers/dhatu/team_members_controller.rb +41 -8
- data/app/controllers/dhatu/testimonials_controller.rb +41 -9
- data/app/models/dhatu/blog_post.rb +6 -2
- data/app/models/dhatu/category.rb +3 -3
- data/app/models/dhatu/event.rb +4 -0
- data/app/models/dhatu/meta_tag.rb +48 -0
- data/app/models/dhatu/offer.rb +4 -0
- data/app/models/dhatu/page.rb +50 -0
- data/app/models/dhatu/project.rb +7 -3
- data/app/models/dhatu/promotion.rb +1 -0
- data/app/models/dhatu/section.rb +8 -12
- data/app/models/dhatu/service.rb +7 -3
- data/app/models/image/og_image.rb +3 -0
- data/app/uploaders/og_image_uploader.rb +15 -0
- data/app/views/dhatu/blog_posts/_form.html.erb +1 -1
- data/app/views/dhatu/blog_posts/_index.html.erb +1 -1
- data/app/views/dhatu/blog_posts/_row.html.erb +1 -1
- data/app/views/dhatu/blog_posts/_show.html.erb +1 -1
- data/app/views/dhatu/bookings/_index.html.erb +7 -8
- data/app/views/dhatu/bookings/_row.html.erb +11 -7
- data/app/views/dhatu/bookings/index.html.erb +20 -12
- data/app/views/dhatu/branches/_index.html.erb +8 -12
- data/app/views/dhatu/branches/_show.html.erb +75 -69
- data/app/views/dhatu/branches/index.html.erb +13 -8
- data/app/views/dhatu/categories/_category_types.html.erb +27 -0
- data/app/views/dhatu/categories/_form.html.erb +2 -2
- data/app/views/dhatu/categories/_index.html.erb +114 -89
- data/app/views/dhatu/categories/_index_list.html.erb +118 -0
- data/app/views/dhatu/categories/_row.html.erb +27 -31
- data/app/views/dhatu/categories/_row_list.html.erb +34 -0
- data/app/views/dhatu/categories/_show.html.erb +101 -74
- data/app/views/dhatu/categories/choose_category_type.html.erb +20 -0
- data/app/views/dhatu/categories/index.html.erb +1 -19
- data/app/views/dhatu/dashboard/_index.html.erb +53 -42
- data/app/views/dhatu/events/_index.html.erb +1 -1
- data/app/views/dhatu/events/_row.html.erb +1 -1
- data/app/views/dhatu/events/_show.html.erb +99 -75
- data/app/views/dhatu/events/index.html.erb +14 -9
- data/app/views/dhatu/meta_tags/_form.html.erb +48 -0
- data/app/views/dhatu/meta_tags/_index.html.erb +59 -0
- data/app/views/dhatu/meta_tags/_row.html.erb +32 -0
- data/app/views/dhatu/meta_tags/create.js.erb +29 -0
- data/app/views/dhatu/offers/_index.html.erb +8 -8
- data/app/views/dhatu/offers/_row.html.erb +1 -1
- data/app/views/dhatu/offers/_show.html.erb +85 -81
- data/app/views/dhatu/offers/index.html.erb +14 -8
- data/app/views/dhatu/pages/_form.html.erb +44 -0
- data/app/views/dhatu/pages/_index.html.erb +57 -0
- data/app/views/dhatu/pages/_row.html.erb +47 -0
- data/app/views/dhatu/pages/_show.html.erb +99 -0
- data/app/views/dhatu/pages/index.html.erb +59 -0
- data/app/views/dhatu/pages/show.html.erb +12 -0
- data/app/views/dhatu/prices/_index.html.erb +6 -6
- data/app/views/dhatu/prices/_row.html.erb +3 -2
- data/app/views/dhatu/prices/_show.html.erb +34 -45
- data/app/views/dhatu/prices/index.html.erb +14 -25
- data/app/views/dhatu/projects/_form.html.erb +15 -16
- data/app/views/dhatu/projects/_index.html.erb +6 -7
- data/app/views/dhatu/projects/_row.html.erb +4 -4
- data/app/views/dhatu/projects/_show.html.erb +108 -97
- data/app/views/dhatu/projects/index.html.erb +13 -19
- data/app/views/dhatu/projects/show.html.erb +12 -0
- data/app/views/dhatu/promotion_attributes/_index.html.erb +1 -7
- data/app/views/dhatu/promotion_attributes/_row.html.erb +1 -4
- data/app/views/dhatu/promotion_enquiries/_index.html.erb +11 -11
- data/app/views/dhatu/promotion_enquiries/_row.html.erb +7 -5
- data/app/views/dhatu/promotion_enquiries/_show.html.erb +35 -43
- data/app/views/dhatu/promotion_enquiries/index.html.erb +20 -12
- data/app/views/dhatu/promotions/_index.html.erb +13 -15
- data/app/views/dhatu/promotions/_row.html.erb +10 -9
- data/app/views/dhatu/promotions/_show.html.erb +190 -93
- data/app/views/dhatu/promotions/index.html.erb +0 -8
- data/app/views/dhatu/{section_types → section_types1}/_form.html.erb +0 -0
- data/app/views/dhatu/{section_types → section_types1}/_index.html.erb +0 -0
- data/app/views/dhatu/{section_types → section_types1}/_row.html.erb +0 -0
- data/app/views/dhatu/{section_types → section_types1}/_show.html.erb +0 -0
- data/app/views/dhatu/{section_types → section_types1}/index.html.erb +0 -0
- data/app/views/dhatu/sections/_form.html.erb +116 -11
- data/app/views/dhatu/sections/_index.html.erb +6 -3
- data/app/views/dhatu/sections/_row.html.erb +5 -2
- data/app/views/dhatu/sections/_show.html.erb +168 -132
- data/app/views/dhatu/sections/index.html.erb +10 -2
- data/app/views/dhatu/services/_form.html.erb +16 -17
- data/app/views/dhatu/services/_index.html.erb +6 -7
- data/app/views/dhatu/services/_row.html.erb +4 -4
- data/app/views/dhatu/services/_show.html.erb +107 -96
- data/app/views/dhatu/services/index.html.erb +13 -19
- data/app/views/dhatu/team_members/_index.html.erb +5 -6
- data/app/views/dhatu/team_members/_row.html.erb +3 -3
- data/app/views/dhatu/team_members/_show.html.erb +70 -58
- data/app/views/dhatu/team_members/index.html.erb +13 -8
- data/app/views/dhatu/testimonials/_index.html.erb +3 -6
- data/app/views/dhatu/testimonials/_row.html.erb +2 -3
- data/app/views/dhatu/testimonials/_show.html.erb +63 -93
- data/app/views/dhatu/testimonials/index.html.erb +13 -8
- data/app/views/layouts/kuppayam/_sidebar.html.erb +63 -48
- data/app/views/usman/dashboard/_super_admin_index.html.erb +22 -0
- data/config/routes.rb +12 -1
- data/db/data/dummy/services.csv +1 -1
- data/db/migrate/20180101093435_create_pages.rb +14 -0
- data/db/migrate/20180101093436_create_meta_tags.rb +19 -0
- data/db/migrate/20180101093437_add_page_id_to_sections.rb +5 -0
- data/db/migrate/20180101093438_add_priority_to_pages_and_sections.rb +6 -0
- data/db/migrate/20180101093439_add_a_ton_of_boolean_fields_to_sections.rb +34 -0
- data/db/migrate/20180101093440_add_code_to_sections.rb +19 -0
- data/db/migrate/20180101093441_rename_meta_description_all_over.rb +7 -0
- data/db/migrate/20180101093442_add_name_to_sections.rb +19 -0
- data/lib/dhatu/version.rb +1 -1
- metadata +43 -14
- data/db/migrate/20171203114529_add_meta_description_to_services.rb +0 -7
@@ -6,7 +6,7 @@
|
|
6
6
|
<% Dhatu::Section::STATUS.each do |key, value| %>
|
7
7
|
<li class="<%= @status == value ? 'active' : '' %>">
|
8
8
|
<%= link_to dhatu.sections_path(st: value), "aria-expanded" => "#{ @status == value ? 'true' : 'false' }" do %>
|
9
|
-
<span class="
|
9
|
+
<span class="mr-5"><i class="<%= Dhatu::Section::STATUS_UI_ICON[value] %>"></i></span>
|
10
10
|
<span class="hidden-xs"><%= key %></span>
|
11
11
|
<% end %>
|
12
12
|
</li>
|
@@ -41,4 +41,12 @@
|
|
41
41
|
|
42
42
|
</div>
|
43
43
|
|
44
|
-
</div>
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<script type="text/javascript">
|
47
|
+
$('body').on('change', '#inp_title', function() {
|
48
|
+
var sectionCode = $(this).val().replace(/ /g, '_').toUpperCase().slice(0, 63);
|
49
|
+
console.log("hello");
|
50
|
+
$('#inp_code').val(sectionCode);
|
51
|
+
});
|
52
|
+
</script>
|
@@ -13,34 +13,33 @@
|
|
13
13
|
<%= theme_form_field(@service, :name, required: true, form_style: "top-bottom", html_options: { placeholder: "", "data-id": @service.id.to_s}) %>
|
14
14
|
|
15
15
|
<div class="row">
|
16
|
-
<div class="col-md-
|
17
|
-
<% options = {assoc_collection: Dhatu::Category.filter_by_category_type("Dhatu::Service").published.select("id, name").order("priority ASC, name ASC").all, editable: true, assoc_display_method: :name} %>
|
16
|
+
<div class="col-md-3 pr-20">
|
17
|
+
<% options = {assoc_collection: Dhatu::Category.filter_by_category_type("Dhatu::Service").published.select("id, name").order("priority ASC, name ASC").all, editable: true, assoc_display_method: :name, include_blank: true} %>
|
18
18
|
<%= theme_form_assoc_group(@service, :category_id, label: "Choose Category", form_style: "top-bottom", **options) %>
|
19
19
|
</div>
|
20
|
-
<div class="col-md-
|
21
|
-
<%= theme_form_field(@service, :
|
20
|
+
<div class="col-md-3 pr-20">
|
21
|
+
<%= theme_form_field(@service, :price, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
|
22
22
|
</div>
|
23
|
-
<div class="col-md-
|
24
|
-
|
25
|
-
<%= theme_form_field(@service, :permalink, form_style: "top-bottom", html_options: { placeholder: ""}) %>
|
26
|
-
<% else %>
|
27
|
-
<%= theme_form_field(@service, :permalink, form_style: "top-bottom", html_options: { placeholder: "", readonly: true}) %>
|
28
|
-
<% end %>
|
23
|
+
<div class="col-md-3 pl-20">
|
24
|
+
<%= theme_form_field(@service, :duration, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
|
29
25
|
</div>
|
30
26
|
</div>
|
31
27
|
|
28
|
+
<%= theme_form_field(@service, :short_description, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
|
29
|
+
|
32
30
|
<%= theme_form_field(@service, :description, required: true, html_options: {type: :textarea, class: "form-control wysihtml5", "data-stylesheet-url": "assets/wysiwyg-color.css"}, form_style: "top-bottom") %>
|
33
31
|
|
34
32
|
<div class="row">
|
35
|
-
<div class="col-md-
|
36
|
-
<%= theme_form_field(@service, :price, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
|
37
|
-
</div>
|
38
|
-
<div class="col-md-4 pl-20">
|
39
|
-
<%= theme_form_field(@service, :duration, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
|
40
|
-
</div>
|
41
|
-
<div class="col-md-4 pl-20">
|
33
|
+
<div class="col-md-3 pr-20">
|
42
34
|
<%= theme_form_field(@service, :priority, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
|
43
35
|
</div>
|
36
|
+
<div class="col-md-3 pl-20">
|
37
|
+
<% if @service.new_record? || @current_user.super_admin? %>
|
38
|
+
<%= theme_form_field(@service, :permalink, form_style: "top-bottom", html_options: { placeholder: ""}) %>
|
39
|
+
<% else %>
|
40
|
+
<%= theme_form_field(@service, :permalink, form_style: "top-bottom", html_options: { placeholder: "", readonly: true}) %>
|
41
|
+
<% end %>
|
42
|
+
</div>
|
44
43
|
</div>
|
45
44
|
|
46
45
|
</div>
|
@@ -1,8 +1,8 @@
|
|
1
|
-
<div class="table-
|
1
|
+
<div class="table-responsive1">
|
2
2
|
<table class="table table-hover members-table middle-align">
|
3
3
|
<thead>
|
4
4
|
<tr>
|
5
|
-
<th style="text-align: center;width:5%">#</th>
|
5
|
+
<th style="text-align: center;width:5%" class="hidden-sm hidden-xs">#</th>
|
6
6
|
<th style="text-align: center;width:100px"><i class="fa fa-photo"></i></th>
|
7
7
|
<th>Service Name</th>
|
8
8
|
<% if display_manage_links? %>
|
@@ -13,21 +13,20 @@
|
|
13
13
|
<tbody>
|
14
14
|
<tr id="tr_service_0"></tr>
|
15
15
|
<% @services.each_with_index do |service, i| %>
|
16
|
-
|
17
16
|
<tr id="tr_service_<%= service.id %>">
|
18
17
|
|
19
|
-
<th scope="row" style="text-align: center;">
|
18
|
+
<th scope="row" style="text-align: center;" class="hidden-sm hidden-xs">
|
20
19
|
<%= serial_number(i) %>
|
21
20
|
</th>
|
22
21
|
|
23
22
|
<td class="display-image">
|
24
|
-
<%=
|
23
|
+
<%= display_thumbnail(service) %>
|
25
24
|
</td>
|
26
25
|
|
27
26
|
<td class="display-link">
|
28
27
|
<%= link_to service.name, service_path(service), remote: true, style: "color: chocolate;font-size:16px;" %><br>
|
29
|
-
<%= link_to service.category.try(:display_name), service_path(service), remote: true %><br>
|
30
|
-
<p style="color:#898989;"><%= service.
|
28
|
+
<%= link_to service.category.try(:display_name), service_path(service), remote: true if service.category %><br>
|
29
|
+
<p style="color:#898989;" class="hidden-sm hidden-xs"><%= service.short_description %></p><br>
|
31
30
|
<%= display_publishable_status(service) %>
|
32
31
|
<%= display_featured(service) %>
|
33
32
|
</td>
|
@@ -1,17 +1,17 @@
|
|
1
1
|
<tr id="tr_service_<%= service.id %>">
|
2
2
|
|
3
|
-
<th scope="row" style="text-align: center;">
|
3
|
+
<th scope="row" style="text-align: center;" class="hidden-sm hidden-xs">
|
4
4
|
<%= serial_number(i) %>
|
5
5
|
</th>
|
6
6
|
|
7
7
|
<td class="display-image">
|
8
|
-
<%=
|
8
|
+
<%= display_thumbnail(service) %>
|
9
9
|
</td>
|
10
10
|
|
11
11
|
<td class="display-link">
|
12
12
|
<%= link_to service.name, service_path(service), remote: true, style: "color: chocolate;font-size:16px;" %><br>
|
13
|
-
<%= link_to service.category.try(:display_name), service_path(service), remote: true %><br>
|
14
|
-
<p style="color:#898989;"><%= service.
|
13
|
+
<%= link_to service.category.try(:display_name), service_path(service), remote: true if service.category %><br>
|
14
|
+
<p style="color:#898989;" class="hidden-sm hidden-xs"><%= service.short_description %></p><br>
|
15
15
|
<%= display_publishable_status(service) %>
|
16
16
|
<%= display_featured(service) %>
|
17
17
|
</td>
|
@@ -1,39 +1,23 @@
|
|
1
1
|
<div id="div_service_show">
|
2
2
|
|
3
3
|
<div class="row">
|
4
|
-
|
5
|
-
<div class="col-md-3 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
|
6
|
-
<% if display_edit_links? %>
|
7
|
-
<%= edit_image(@service,
|
8
|
-
"cover_image.image.large.url",
|
9
|
-
upload_image_link(@service, :cover_image, nil ),
|
10
|
-
remove_image_link(@service, :cover_image, nil ),
|
11
|
-
image_options: {assoc_name: :cover_image }) %>
|
12
|
-
<% else %>
|
13
|
-
<%= display_image(@service, "cover_image.image.large.url", class: "img-inline", alt: @service.display_name) %>
|
14
|
-
<% end %>
|
15
|
-
</div>
|
16
|
-
|
17
|
-
<div class="col-md-6 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
|
18
|
-
|
4
|
+
<div class="col-md-9 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
|
19
5
|
<%= theme_panel_heading(@service.name) %>
|
20
|
-
|
21
6
|
<%= theme_panel_sub_heading(@service.category.try(:display_name), "#") if @service.category %>
|
22
|
-
|
23
|
-
<%= clear_tag(10) %>
|
24
|
-
|
25
|
-
<div class="well">
|
26
|
-
<%= @service.meta_description %>
|
27
|
-
</div>
|
28
|
-
|
29
7
|
<%= clear_tag(10) %>
|
30
|
-
|
31
8
|
<%= display_publishable_status(@service) %>
|
32
|
-
|
33
9
|
<%= display_featured(@service) %>
|
34
|
-
|
35
10
|
<%= clear_tag(20) %>
|
36
|
-
|
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>Price</th><td><%= @service.price %></td></tr>
|
16
|
+
<tr><th>Duration</th><td><%= @service.duration %></td></tr>
|
17
|
+
</tbody>
|
18
|
+
</table>
|
19
|
+
</div>
|
20
|
+
</div>
|
37
21
|
</div>
|
38
22
|
|
39
23
|
<% if display_manage_links? %>
|
@@ -43,90 +27,117 @@
|
|
43
27
|
<%= display_featurable_buttons(@service) %>
|
44
28
|
</div>
|
45
29
|
<% end %>
|
46
|
-
|
47
30
|
</div>
|
48
|
-
|
49
31
|
<hr>
|
50
32
|
|
51
|
-
<div class="
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
<
|
58
|
-
|
59
|
-
<span class="hidden-xs">Service Details</span>
|
60
|
-
</a>
|
61
|
-
</li>
|
62
|
-
|
63
|
-
<li class="">
|
64
|
-
<a href="#service_images" data-toggle="tab" aria-expanded="false">
|
65
|
-
<span class="visible-xs"><i class="fa-database"></i></span>
|
66
|
-
<span class="hidden-xs">Images</span>
|
67
|
-
</a>
|
68
|
-
</li>
|
69
|
-
|
70
|
-
<li class="">
|
71
|
-
<a href="#technical_details" data-toggle="tab" aria-expanded="false">
|
72
|
-
<span class="visible-xs"><i class="fa-database"></i></span>
|
73
|
-
<span class="hidden-xs">Technical Details</span>
|
74
|
-
</a>
|
75
|
-
</li>
|
76
|
-
</ul>
|
77
|
-
|
78
|
-
<div class="tab-content">
|
79
|
-
<div class="tab-pane active" id="service_details" style="border: 1px solid #000;min-height:200px;padding:20px;margin-bottom:20px;max-height: 400px;overflow-y: auto;">
|
80
|
-
|
33
|
+
<div class="row">
|
34
|
+
|
35
|
+
<div class="col-md-6 col-xs-12">
|
36
|
+
<%= clear_tag(60) %>
|
37
|
+
<div><strong class="fs-18">Service Details</strong></div>
|
38
|
+
<hr>
|
39
|
+
<strong>Short Description</strong><br><br>
|
40
|
+
<%= @service.short_description %>
|
81
41
|
<%= clear_tag(20) %>
|
82
|
-
|
42
|
+
|
43
|
+
<strong>Description</strong><br><br>
|
83
44
|
<%= raw(@service.description) %>
|
84
|
-
<%= clear_tag(20) %>
|
85
|
-
|
86
45
|
</div>
|
87
46
|
|
88
|
-
<div class="
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
<div
|
93
|
-
<div class="
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
47
|
+
<div class="col-md-6 col-xs-12">
|
48
|
+
<%= clear_tag(60) %>
|
49
|
+
<div><strong class="fs-18">Cover Image</strong></div>
|
50
|
+
<hr>
|
51
|
+
<div class="row">
|
52
|
+
<div class="col-md-6 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
|
53
|
+
<% if display_edit_links? %>
|
54
|
+
<%= edit_image(@service,
|
55
|
+
"cover_image.image.large.url",
|
56
|
+
upload_image_link(@service, :cover_image, nil ),
|
57
|
+
remove_image_link(@service, :cover_image, nil ),
|
58
|
+
image_options: {assoc_name: :cover_image }) %>
|
59
|
+
<% else %>
|
60
|
+
<%= display_image(@service, "cover_image.image.large.url", class: "img-inline", alt: @service.display_name) %>
|
61
|
+
<% end %>
|
99
62
|
</div>
|
100
63
|
</div>
|
101
|
-
<%= clear_tag(10) %>
|
102
|
-
|
103
|
-
<%= render :partial=>"kuppayam/images/multiple_images", locals: { images: @service.gallery_images } %>
|
104
|
-
|
105
64
|
</div>
|
65
|
+
</div>
|
106
66
|
|
107
|
-
|
108
|
-
|
109
|
-
|
67
|
+
<%= clear_tag(60) %>
|
68
|
+
<div><strong class="fs-18">Gallery Images</strong></div>
|
69
|
+
<hr>
|
70
|
+
<div id="div_service_images_buttons">
|
71
|
+
<div class="row">
|
72
|
+
<div class="col-md-6">
|
73
|
+
<%= theme_button('Upload a New Image', 'plus', upload_multiple_image_link(@service, :gallery_images, nil ), classes: "pull-left", btn_type: "white") %>
|
74
|
+
</div>
|
75
|
+
<div class="col-md-6">
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
</div>
|
79
|
+
<%= render :partial=>"kuppayam/images/multiple_images", locals: { images: @service.gallery_images } %>
|
80
|
+
|
81
|
+
<% if @current_user.has_read_permission?(Dhatu::MetaTag) %>
|
82
|
+
<%= clear_tag(60) %>
|
83
|
+
<div><strong class="fs-18">Meta Tags</strong></div>
|
84
|
+
<hr>
|
85
|
+
<div id="div_meta_tags_action_buttons">
|
86
|
+
<div class="row">
|
87
|
+
<div class="col-md-6">
|
88
|
+
<%= theme_button('Add a Meta Tag', 'plus', new_meta_tag_path(meta_taggable_id: @service.id, meta_taggable_type: @service.class.name), classes: "pull-left mr-10", btn_type: "success") if @current_user.has_create_permission?(Dhatu::MetaTag) %>
|
110
89
|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
<tr>
|
116
|
-
<th>ID</th><td><%= @service.id %></td>
|
117
|
-
<th>Status</th><td><%= @service.status %></td>
|
118
|
-
</tr>
|
119
|
-
<tr>
|
120
|
-
<th>Created At</th><td><%= @service.created_at.strftime("%m/%d/%Y - %H:%M:%S") if @service.created_at %></td>
|
121
|
-
<th>Updated At</th><td><%= @service.updated_at.strftime("%m/%d/%Y - %H:%M:%S") if @service.updated_at %></td>
|
122
|
-
</tr>
|
123
|
-
|
124
|
-
</tbody>
|
125
|
-
</table>
|
90
|
+
<%= theme_button('Refresh', 'refresh', meta_tags_path(meta_taggable_id: @service.id, meta_taggable_type: @service.class.name), classes: "pull-left mr-10", btn_type: "white") %>
|
91
|
+
</div>
|
92
|
+
<div class="col-md-6">
|
93
|
+
<%= search_form_kuppayam(User, meta_tags_path(meta_taggable_id: @service.id, meta_taggable_type: @service.class.name), text: "") %>
|
126
94
|
</div>
|
127
|
-
|
128
95
|
</div>
|
129
96
|
</div>
|
97
|
+
<%= clear_tag(10) %>
|
98
|
+
<div id="div_meta_tag_index">
|
99
|
+
<% meta_tags = @service.meta_tags.page(@current_page).per(@per_page) %>
|
100
|
+
<%= render :partial=>"dhatu/meta_tags/index", locals: {meta_tags: meta_tags, meta_taggable: @service } %>
|
101
|
+
</div>
|
102
|
+
<% end %>
|
103
|
+
|
104
|
+
<% if @current_user.super_admin? %>
|
105
|
+
<%= clear_tag(60) %>
|
106
|
+
<div><strong class="fs-18">Technical Details</strong></div>
|
107
|
+
<hr>
|
108
|
+
<div class="table-responsive">
|
109
|
+
<table class="table table-striped table-condensed table-bordered mb-60">
|
110
|
+
<tbody>
|
111
|
+
|
112
|
+
<tr>
|
113
|
+
<th>ID</th><td><%= @service.id %></td>
|
114
|
+
<th>Permalink</th><td><%= @service.permalink %></td>
|
115
|
+
</tr>
|
116
|
+
|
117
|
+
<tr>
|
118
|
+
<th>Status</th><td><%= @service.status %></td>
|
119
|
+
<th>Featured</th><td><%= @service.featured? ? "Yes" : "No" %></td>
|
120
|
+
</tr>
|
121
|
+
|
122
|
+
<tr>
|
123
|
+
<th>Price</th><td><%= @service.price %></td>
|
124
|
+
<th>Duration</th><td><%= @service.duration %></td>
|
125
|
+
</tr>
|
126
|
+
|
127
|
+
<tr>
|
128
|
+
<th>Category</th><td><%= "#{@service.category.name} (#{@service.category.id})" if @service.category %></td>
|
129
|
+
<th>Priority</th><td><%= @service.priority %></td>
|
130
|
+
</tr>
|
131
|
+
|
132
|
+
<tr>
|
133
|
+
<th>Created At</th><td><%= @service.created_at.strftime("%m/%d/%Y - %H:%M:%S") if @service.created_at %></td>
|
134
|
+
<th>Updated At</th><td><%= @service.updated_at.strftime("%m/%d/%Y - %H:%M:%S") if @service.updated_at %></td>
|
135
|
+
</tr>
|
136
|
+
|
137
|
+
</tbody>
|
138
|
+
</table>
|
139
|
+
</div>
|
140
|
+
<% end %>
|
130
141
|
|
131
142
|
<%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
|
132
143
|
|
@@ -4,25 +4,6 @@
|
|
4
4
|
|
5
5
|
<div class="tabs-vertical-env">
|
6
6
|
|
7
|
-
<ul id="div_category_types" class="nav tabs-vertical">
|
8
|
-
<% @categories.each do |ct| %>
|
9
|
-
<li class="<%= ct == @category ? 'active' : '' %>">
|
10
|
-
<%= link_to ct.name, services_path(ct: ct.id) %>
|
11
|
-
</li>
|
12
|
-
<% end %>
|
13
|
-
</ul>
|
14
|
-
|
15
|
-
<!-- <ul class="nav nav-tabs nav-tabs-justified">
|
16
|
-
<%# Dhatu::Service::STATUS.each do |key, value| %>
|
17
|
-
<li class="<%#= @status == value ? 'active' : '' %>">
|
18
|
-
<%#= link_to dhatu.services_path(st: value), "aria-expanded" => "#{ @status == value ? 'true' : 'false' }" do %>
|
19
|
-
<span class="visible-xs"><i class="fa-gift"></i></span>
|
20
|
-
<span class="hidden-xs"><%#= key %></span>
|
21
|
-
<%# end %>
|
22
|
-
</li>
|
23
|
-
<%# end %>
|
24
|
-
</ul> -->
|
25
|
-
|
26
7
|
<div class="tab-content">
|
27
8
|
<div class="tab-pane active">
|
28
9
|
|
@@ -37,6 +18,19 @@
|
|
37
18
|
<%= search_form_kuppayam(Dhatu::Service, dhatu.services_path(), text: @filters[:query]) %>
|
38
19
|
</div>
|
39
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>
|
40
34
|
|
41
35
|
</div>
|
42
36
|
<%= clear_tag(10) %>
|
@@ -1,8 +1,8 @@
|
|
1
|
-
<div class="table-
|
1
|
+
<div class="table-responsive1">
|
2
2
|
<table class="table table-hover members-table middle-align">
|
3
3
|
<thead>
|
4
4
|
<tr>
|
5
|
-
<th style="text-align: center;width:5%">#</th>
|
5
|
+
<th style="text-align: center;width:5%" class="hidden-sm hidden-xs">#</th>
|
6
6
|
<th style="text-align: center;width:100px"><i class="fa fa-photo"></i></th>
|
7
7
|
<th>Name</th>
|
8
8
|
<th style="width:100px;" class="hidden-sm hidden-xs">Status</th>
|
@@ -14,15 +14,14 @@
|
|
14
14
|
<tbody>
|
15
15
|
<tr id="tr_team_member_0"></tr>
|
16
16
|
<% @team_members.each_with_index do |team_member, i| %>
|
17
|
-
|
18
17
|
<tr id="tr_team_member_<%= team_member.id %>">
|
19
18
|
|
20
|
-
<th scope="row" style="text-align: center;">
|
19
|
+
<th scope="row" style="text-align: center;" class="hidden-sm hidden-xs">
|
21
20
|
<%= serial_number(i) %>
|
22
21
|
</th>
|
23
22
|
|
24
23
|
<td class="display-image">
|
25
|
-
<%=
|
24
|
+
<%= display_thumbnail(
|
26
25
|
team_member,
|
27
26
|
method_name: "profile_image.image.small.url",
|
28
27
|
image_class: "img-circle",
|
@@ -31,7 +30,7 @@
|
|
31
30
|
</td>
|
32
31
|
|
33
32
|
<td class="display-link">
|
34
|
-
<%= link_to team_member.name, team_member_path(team_member), remote: true, style: "color:
|
33
|
+
<%= link_to team_member.name, team_member_path(team_member), remote: true, style: "color: chocolate;font-size:16px;" %><br>
|
35
34
|
<%= team_member.designation %><br>
|
36
35
|
</td>
|
37
36
|
|