dhatu 0.1.19 → 0.1.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/dhatu/blog_posts_controller.rb +81 -14
  3. data/app/controllers/dhatu/bookings_controller.rb +51 -5
  4. data/app/controllers/dhatu/branches_controller.rb +42 -8
  5. data/app/controllers/dhatu/categories_controller.rb +86 -47
  6. data/app/controllers/dhatu/events_controller.rb +79 -9
  7. data/app/controllers/dhatu/meta_tags_controller.rb +96 -0
  8. data/app/controllers/dhatu/offers_controller.rb +83 -10
  9. data/app/controllers/dhatu/pages_controller.rb +130 -0
  10. data/app/controllers/dhatu/prices_controller.rb +78 -12
  11. data/app/controllers/dhatu/projects_controller.rb +78 -22
  12. data/app/controllers/dhatu/promotion_enquiries_controller.rb +69 -7
  13. data/app/controllers/dhatu/promotions_controller.rb +46 -2
  14. data/app/controllers/dhatu/resource_controller.rb +4 -0
  15. data/app/controllers/dhatu/sections_controller.rb +41 -8
  16. data/app/controllers/dhatu/services_controller.rb +78 -18
  17. data/app/controllers/dhatu/team_members_controller.rb +41 -8
  18. data/app/controllers/dhatu/testimonials_controller.rb +41 -9
  19. data/app/models/dhatu/blog_post.rb +6 -2
  20. data/app/models/dhatu/category.rb +3 -3
  21. data/app/models/dhatu/event.rb +4 -0
  22. data/app/models/dhatu/meta_tag.rb +48 -0
  23. data/app/models/dhatu/offer.rb +4 -0
  24. data/app/models/dhatu/page.rb +50 -0
  25. data/app/models/dhatu/project.rb +7 -3
  26. data/app/models/dhatu/promotion.rb +1 -0
  27. data/app/models/dhatu/section.rb +8 -12
  28. data/app/models/dhatu/service.rb +7 -3
  29. data/app/models/image/og_image.rb +3 -0
  30. data/app/uploaders/og_image_uploader.rb +15 -0
  31. data/app/views/dhatu/blog_posts/_form.html.erb +1 -1
  32. data/app/views/dhatu/blog_posts/_index.html.erb +1 -1
  33. data/app/views/dhatu/blog_posts/_row.html.erb +1 -1
  34. data/app/views/dhatu/blog_posts/_show.html.erb +1 -1
  35. data/app/views/dhatu/bookings/_index.html.erb +7 -8
  36. data/app/views/dhatu/bookings/_row.html.erb +11 -7
  37. data/app/views/dhatu/bookings/index.html.erb +20 -12
  38. data/app/views/dhatu/branches/_index.html.erb +8 -12
  39. data/app/views/dhatu/branches/_show.html.erb +75 -69
  40. data/app/views/dhatu/branches/index.html.erb +13 -8
  41. data/app/views/dhatu/categories/_category_types.html.erb +27 -0
  42. data/app/views/dhatu/categories/_form.html.erb +2 -2
  43. data/app/views/dhatu/categories/_index.html.erb +114 -89
  44. data/app/views/dhatu/categories/_index_list.html.erb +118 -0
  45. data/app/views/dhatu/categories/_row.html.erb +27 -31
  46. data/app/views/dhatu/categories/_row_list.html.erb +34 -0
  47. data/app/views/dhatu/categories/_show.html.erb +101 -74
  48. data/app/views/dhatu/categories/choose_category_type.html.erb +20 -0
  49. data/app/views/dhatu/categories/index.html.erb +1 -19
  50. data/app/views/dhatu/dashboard/_index.html.erb +53 -42
  51. data/app/views/dhatu/events/_index.html.erb +1 -1
  52. data/app/views/dhatu/events/_row.html.erb +1 -1
  53. data/app/views/dhatu/events/_show.html.erb +99 -75
  54. data/app/views/dhatu/events/index.html.erb +14 -9
  55. data/app/views/dhatu/meta_tags/_form.html.erb +48 -0
  56. data/app/views/dhatu/meta_tags/_index.html.erb +59 -0
  57. data/app/views/dhatu/meta_tags/_row.html.erb +32 -0
  58. data/app/views/dhatu/meta_tags/create.js.erb +29 -0
  59. data/app/views/dhatu/offers/_index.html.erb +8 -8
  60. data/app/views/dhatu/offers/_row.html.erb +1 -1
  61. data/app/views/dhatu/offers/_show.html.erb +85 -81
  62. data/app/views/dhatu/offers/index.html.erb +14 -8
  63. data/app/views/dhatu/pages/_form.html.erb +44 -0
  64. data/app/views/dhatu/pages/_index.html.erb +57 -0
  65. data/app/views/dhatu/pages/_row.html.erb +47 -0
  66. data/app/views/dhatu/pages/_show.html.erb +99 -0
  67. data/app/views/dhatu/pages/index.html.erb +59 -0
  68. data/app/views/dhatu/pages/show.html.erb +12 -0
  69. data/app/views/dhatu/prices/_index.html.erb +6 -6
  70. data/app/views/dhatu/prices/_row.html.erb +3 -2
  71. data/app/views/dhatu/prices/_show.html.erb +34 -45
  72. data/app/views/dhatu/prices/index.html.erb +14 -25
  73. data/app/views/dhatu/projects/_form.html.erb +15 -16
  74. data/app/views/dhatu/projects/_index.html.erb +6 -7
  75. data/app/views/dhatu/projects/_row.html.erb +4 -4
  76. data/app/views/dhatu/projects/_show.html.erb +108 -97
  77. data/app/views/dhatu/projects/index.html.erb +13 -19
  78. data/app/views/dhatu/projects/show.html.erb +12 -0
  79. data/app/views/dhatu/promotion_attributes/_index.html.erb +1 -7
  80. data/app/views/dhatu/promotion_attributes/_row.html.erb +1 -4
  81. data/app/views/dhatu/promotion_enquiries/_index.html.erb +11 -11
  82. data/app/views/dhatu/promotion_enquiries/_row.html.erb +7 -5
  83. data/app/views/dhatu/promotion_enquiries/_show.html.erb +35 -43
  84. data/app/views/dhatu/promotion_enquiries/index.html.erb +20 -12
  85. data/app/views/dhatu/promotions/_index.html.erb +13 -15
  86. data/app/views/dhatu/promotions/_row.html.erb +10 -9
  87. data/app/views/dhatu/promotions/_show.html.erb +190 -93
  88. data/app/views/dhatu/promotions/index.html.erb +0 -8
  89. data/app/views/dhatu/{section_types → section_types1}/_form.html.erb +0 -0
  90. data/app/views/dhatu/{section_types → section_types1}/_index.html.erb +0 -0
  91. data/app/views/dhatu/{section_types → section_types1}/_row.html.erb +0 -0
  92. data/app/views/dhatu/{section_types → section_types1}/_show.html.erb +0 -0
  93. data/app/views/dhatu/{section_types → section_types1}/index.html.erb +0 -0
  94. data/app/views/dhatu/sections/_form.html.erb +116 -11
  95. data/app/views/dhatu/sections/_index.html.erb +6 -3
  96. data/app/views/dhatu/sections/_row.html.erb +5 -2
  97. data/app/views/dhatu/sections/_show.html.erb +168 -132
  98. data/app/views/dhatu/sections/index.html.erb +10 -2
  99. data/app/views/dhatu/services/_form.html.erb +16 -17
  100. data/app/views/dhatu/services/_index.html.erb +6 -7
  101. data/app/views/dhatu/services/_row.html.erb +4 -4
  102. data/app/views/dhatu/services/_show.html.erb +107 -96
  103. data/app/views/dhatu/services/index.html.erb +13 -19
  104. data/app/views/dhatu/team_members/_index.html.erb +5 -6
  105. data/app/views/dhatu/team_members/_row.html.erb +3 -3
  106. data/app/views/dhatu/team_members/_show.html.erb +70 -58
  107. data/app/views/dhatu/team_members/index.html.erb +13 -8
  108. data/app/views/dhatu/testimonials/_index.html.erb +3 -6
  109. data/app/views/dhatu/testimonials/_row.html.erb +2 -3
  110. data/app/views/dhatu/testimonials/_show.html.erb +63 -93
  111. data/app/views/dhatu/testimonials/index.html.erb +13 -8
  112. data/app/views/layouts/kuppayam/_sidebar.html.erb +63 -48
  113. data/app/views/usman/dashboard/_super_admin_index.html.erb +22 -0
  114. data/config/routes.rb +12 -1
  115. data/db/data/dummy/services.csv +1 -1
  116. data/db/migrate/20180101093435_create_pages.rb +14 -0
  117. data/db/migrate/20180101093436_create_meta_tags.rb +19 -0
  118. data/db/migrate/20180101093437_add_page_id_to_sections.rb +5 -0
  119. data/db/migrate/20180101093438_add_priority_to_pages_and_sections.rb +6 -0
  120. data/db/migrate/20180101093439_add_a_ton_of_boolean_fields_to_sections.rb +34 -0
  121. data/db/migrate/20180101093440_add_code_to_sections.rb +19 -0
  122. data/db/migrate/20180101093441_rename_meta_description_all_over.rb +7 -0
  123. data/db/migrate/20180101093442_add_name_to_sections.rb +19 -0
  124. data/lib/dhatu/version.rb +1 -1
  125. metadata +43 -14
  126. data/db/migrate/20171203114529_add_meta_description_to_services.rb +0 -7
@@ -1,11 +1,11 @@
1
1
  <tr id="tr_team_member_<%= team_member.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
- <%= display_thumbnail_small(
8
+ <%= display_thumbnail(
9
9
  team_member,
10
10
  method_name: "profile_image.image.small.url",
11
11
  image_class: "img-circle",
@@ -14,7 +14,7 @@
14
14
  </td>
15
15
 
16
16
  <td class="display-link">
17
- <%= link_to team_member.name, team_member_path(team_member), remote: true, style: "color: darkgreen;font-size:16px;" %><br>
17
+ <%= link_to team_member.name, team_member_path(team_member), remote: true, style: "color: chocolate;font-size:16px;" %><br>
18
18
  <%= team_member.designation %><br>
19
19
  </td>
20
20
 
@@ -2,32 +2,13 @@
2
2
 
3
3
  <div class="row">
4
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(@team_member,
8
- "profile_image.image.large.url",
9
- upload_image_link(@team_member, :profile_image, nil ),
10
- remove_image_link(@team_member, :profile_image, nil ),
11
- image_options: {assoc_name: :profile_image, class: "img-circle img-inline userpic-32", width: "200", height: "200" }) %>
12
- <% else %>
13
- <%= display_image(@team_member, "profile_image.image.large.url", class: "img-inline", alt: @team_member.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;">
5
+ <div class="col-md-9 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
18
6
 
19
7
  <%= theme_panel_heading(@team_member.display_name) %>
20
-
21
8
  <%= theme_panel_sub_heading(@team_member.designation, "#") if @team_member.designation %>
22
-
23
9
  <%= clear_tag(10) %>
24
-
25
10
  <%= display_publishable_status(@team_member) %>
26
-
27
11
  <%= display_featured(@team_member) %>
28
-
29
- <%= clear_tag(20) %>
30
- <%= raw(@team_member.description) %>
31
12
  <%= clear_tag(20) %>
32
13
 
33
14
  </div>
@@ -42,50 +23,81 @@
42
23
 
43
24
  </div>
44
25
 
45
- <hr>
46
-
47
- <div class="visible-sm visible-xs mb-50"></div>
48
-
49
- <%= clear_tag(20) %>
50
-
51
- <ul class="nav nav-pills">
52
- <li class="active">
53
- <a href="#technical_details" data-toggle="tab" aria-expanded="false">
54
- <span class="visible-xs"><i class="fa-database"></i></span>
55
- <span class="hidden-xs">Technical Details</span>
56
- </a>
57
- </li>
58
- </ul>
59
-
60
- <div class="tab-content">
61
- <div class="tab-pane active" id="technical_details" style="border: 1px solid #000;min-height:200px;padding:20px;margin-bottom:20px;max-height: 400px;overflow-y: auto;">
62
-
26
+ <div class="row">
27
+ <div class="col-md-6 col-sm-12 col-xs-12">
28
+ <%= clear_tag(60) %>
29
+ <div><strong class="fs-18">Member Details</strong></div>
30
+ <hr>
31
+ <%= clear_tag(10) %>
32
+ <div class="well">
33
+ <%= raw(@team_member.description) %>
34
+ </div>
63
35
  <%= clear_tag(20) %>
64
36
 
65
- <div class="table-responsive">
66
- <table class="table table-striped table-condensed table-bordered mb-60">
67
- <tbody>
68
-
69
- <tr>
70
- <th>ID</th><td><%= @team_member.id %></td>
71
- <th>Permalink</th><td><%#= @team_member.to_param %></td>
72
- </tr>
73
- <tr>
74
- <th>Featured</th><td><%#= @team_member.featured %></td>
75
- <th>Status</th><td><%= @team_member.status %></td>
76
- </tr>
77
- <tr>
78
- <th>Created At</th><td><%= @team_member.created_at.strftime("%m/%d/%Y - %H:%M:%S") if @team_member.created_at %></td>
79
- <th>Updated At</th><td><%= @team_member.updated_at.strftime("%m/%d/%Y - %H:%M:%S") if @team_member.updated_at %></td>
80
- </tr>
81
-
82
- </tbody>
83
- </table>
84
- </div>
37
+ <table class="table table-striped table-condensed table-bordered mb-60">
38
+ <tbody>
85
39
 
40
+ <tr>
41
+ <th>Linked In URL </th><td><%= @team_member.linked_in_url %></td>
42
+ <tr>
43
+ </tr>
44
+ <th>Google Plus URL</th><td><%= @team_member.google_plus_url %></td>
45
+ </tr>
46
+ <tr>
47
+ <th>Facebook URL </th><td><%= @team_member.facebook_url %></td>
48
+ <tr>
49
+ </tr>
50
+ <th>Twitter URL</th><td><%= @team_member.twitter_url %></td>
51
+ </tr>
52
+
53
+ </tbody>
54
+ </table>
55
+ </div>
56
+
57
+ <div class="col-md-3 col-sm-6 col-xs-12 col-md-offset-1">
58
+ <%= clear_tag(60) %>
59
+ <div><strong class="fs-18" style="text-align: left;">Profile Image</strong></div>
60
+ <hr>
61
+ <div style="text-align:center;">
62
+ <% if display_edit_links? %>
63
+ <%= edit_image(@team_member,
64
+ "profile_image.image.large.url",
65
+ upload_image_link(@team_member, :profile_image, nil ),
66
+ remove_image_link(@team_member, :profile_image, nil ),
67
+ image_options: {assoc_name: :profile_image, class: "img-circle img-inline userpic-32", width: "200", height: "200" }) %>
68
+ <% else %>
69
+ <%= display_image(@team_member, "profile_image.image.large.url", class: "img-inline", alt: @team_member.display_name) %>
70
+ <% end %>
71
+ </div>
86
72
  </div>
87
73
  </div>
88
74
 
75
+ <% if @current_user.super_admin? %>
76
+ <%= clear_tag(40) %>
77
+ <div><strong class="fs-18">Technical Details</strong></div>
78
+ <hr>
79
+ <div class="table-responsive">
80
+ <table class="table table-striped table-condensed table-bordered mb-60">
81
+ <tbody>
82
+
83
+ <tr>
84
+ <th>ID</th><td><%= @team_member.id %></td>
85
+ <th>Permalink</th><td><%#= @team_member.to_param %></td>
86
+ </tr>
87
+ <tr>
88
+ <th>Featured</th><td><%#= @team_member.featured %></td>
89
+ <th>Status</th><td><%= @team_member.status %></td>
90
+ </tr>
91
+ <tr>
92
+ <th>Created At</th><td><%= @team_member.created_at.strftime("%m/%d/%Y - %H:%M:%S") if @team_member.created_at %></td>
93
+ <th>Updated At</th><td><%= @team_member.updated_at.strftime("%m/%d/%Y - %H:%M:%S") if @team_member.updated_at %></td>
94
+ </tr>
95
+
96
+ </tbody>
97
+ </table>
98
+ </div>
99
+ <% end %>
100
+
89
101
  <%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
90
102
 
91
103
  <%= clear_tag %>
@@ -3,14 +3,6 @@
3
3
  <div class="col-md-12">
4
4
 
5
5
  <ul class="nav nav-tabs nav-tabs-justified">
6
- <% Dhatu::TeamMember::STATUS.each do |key, value| %>
7
- <li class="<%= @status == value ? 'active' : '' %>">
8
- <%= link_to team_members_path(st: value), "aria-expanded" => "#{ @status == value ? 'true' : 'false' }" do %>
9
- <span class="visible-xs"><i class="fa-gift"></i></span>
10
- <span class="hidden-xs"><%= key %></span>
11
- <% end %>
12
- </li>
13
- <% end %>
14
6
  </ul>
15
7
 
16
8
  <div class="tab-content">
@@ -28,6 +20,19 @@
28
20
  <%= search_form_kuppayam(Dhatu::TeamMember, team_members_path(st: @status), text: @filters[:query]) %>
29
21
  </div>
30
22
  </div>
23
+ <div class="row">
24
+ <div class="col-md-12 visible-sm visible-xs mt-10">
25
+ </div>
26
+ <div class="col-md-12">
27
+ <% @filter_ui_settings.each do |filter_name, options| %>
28
+ <% if options[:object_filter] == true %>
29
+ <%= report_object_filter(filter_name, options) %>
30
+ <% else %>
31
+ <%= report_filter(filter_name, options) %>
32
+ <% end %>
33
+ <% end %>
34
+ </div>
35
+ </div>
31
36
 
32
37
  </div>
33
38
  <%= clear_tag(10) %>
@@ -1,4 +1,4 @@
1
- <div class="table-responsive">
1
+ <div class="table-responsive1">
2
2
  <table class="table table-hover members-table middle-align">
3
3
  <thead>
4
4
  <tr>
@@ -14,7 +14,6 @@
14
14
  <tbody>
15
15
  <tr id="tr_testimonial_0"></tr>
16
16
  <% @testimonials.each_with_index do |testimonial, i| %>
17
-
18
17
  <tr id="tr_testimonial_<%= testimonial.id %>">
19
18
 
20
19
  <th scope="row" style="text-align: center;">
@@ -22,7 +21,7 @@
22
21
  </th>
23
22
 
24
23
  <td class="display-image">
25
- <%= display_thumbnail_small(
24
+ <%= display_thumbnail(
26
25
  testimonial,
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 testimonial.name, testimonial_path(testimonial), remote: true, style: "color: darkgreen;font-size:16px;" %><br>
33
+ <%= link_to testimonial.name, testimonial_path(testimonial), remote: true, style: "color: chocolate;font-size:16px;" %><br>
35
34
  <%= testimonial.designation %><br>
36
35
  <%= testimonial.organisation %><br>
37
36
  </td>
@@ -49,9 +48,7 @@
49
48
  <%= display_manage_links(testimonial, @current_user) %>
50
49
  </td>
51
50
  <% end %>
52
-
53
51
  </tr>
54
-
55
52
  <% end %>
56
53
  </tbody>
57
54
  </table>
@@ -5,7 +5,7 @@
5
5
  </th>
6
6
 
7
7
  <td class="display-image">
8
- <%= display_thumbnail_small(
8
+ <%= display_thumbnail(
9
9
  testimonial,
10
10
  method_name: "profile_image.image.small.url",
11
11
  image_class: "img-circle",
@@ -14,7 +14,7 @@
14
14
  </td>
15
15
 
16
16
  <td class="display-link">
17
- <%= link_to testimonial.name, testimonial_path(testimonial), remote: true, style: "color: darkgreen;font-size:16px;" %><br>
17
+ <%= link_to testimonial.name, testimonial_path(testimonial), remote: true, style: "color: chocolate;font-size:16px;" %><br>
18
18
  <%= testimonial.designation %><br>
19
19
  <%= testimonial.organisation %><br>
20
20
  </td>
@@ -32,5 +32,4 @@
32
32
  <%= display_manage_links(testimonial, @current_user) %>
33
33
  </td>
34
34
  <% end %>
35
-
36
35
  </tr>
@@ -2,32 +2,13 @@
2
2
 
3
3
  <div class="row">
4
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(@testimonial,
8
- "profile_image.image.large.url",
9
- upload_image_link(@testimonial, :profile_image, nil ),
10
- remove_image_link(@testimonial, :profile_image, nil ),
11
- image_options: {assoc_name: :profile_image, class: "img-circle img-inline userpic-32", width: "200", height: "200" }) %>
12
- <% else %>
13
- <%= display_image(@testimonial, "profile_image.image.large.url", class: "img-inline", alt: @testimonial.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
-
5
+ <div class="col-md-9 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
19
6
  <%= theme_panel_heading(@testimonial.display_name) %>
20
-
21
7
  <%= theme_panel_sub_heading(@testimonial.designation, "#") if @testimonial.designation %>
22
-
23
8
  <%= theme_panel_sub_heading(@testimonial.organisation, "#") if @testimonial.organisation %>
24
-
25
9
  <%= clear_tag(10) %>
26
-
27
10
  <%= display_publishable_status(@testimonial) %>
28
-
29
11
  <%= display_featured(@testimonial) %>
30
-
31
12
  <%= clear_tag(20) %>
32
13
  </div>
33
14
 
@@ -41,91 +22,80 @@
41
22
 
42
23
  </div>
43
24
 
44
- <hr>
45
-
46
- <div class="visible-sm visible-xs mb-50"></div>
47
-
48
- <%= clear_tag(20) %>
49
-
50
- <ul class="nav nav-pills">
51
- <li class="active">
52
- <a href="#testimonial_details" data-toggle="tab" aria-expanded="false">
53
- <span class="visible-xs"><i class="fa-database"></i></span>
54
- <span class="hidden-xs">Testimonial Details</span>
55
- </a>
56
- </li>
57
-
58
- <li class="">
59
- <a href="#organisation_logo" data-toggle="tab" aria-expanded="false">
60
- <span class="visible-xs"><i class="fa-database"></i></span>
61
- <span class="hidden-xs">Organisation Logo</span>
62
- </a>
63
- </li>
64
-
65
- <li class="">
66
- <a href="#technical_details" data-toggle="tab" aria-expanded="false">
67
- <span class="visible-xs"><i class="fa-database"></i></span>
68
- <span class="hidden-xs">Technical Details</span>
69
- </a>
70
- </li>
71
-
72
- </ul>
73
-
74
- <div class="tab-content">
75
- <div class="tab-pane active" id="testimonial_details" style="border: 1px solid #000;min-height:200px;padding:20px;margin-bottom:20px;max-height: 400px;overflow-y: auto;">
76
-
25
+ <%= clear_tag(60) %>
26
+ <div class="row">
27
+ <div class="col-md-12 col-sm-12 col-xs-12">
28
+ <div><strong class="fs-18">Testimony</strong></div>
29
+ <hr>
77
30
  <%= clear_tag(20) %>
78
31
  <%= raw(@testimonial.statement) %>
79
32
  <%= clear_tag(20) %>
80
-
81
-
82
33
  </div>
34
+ </div>
83
35
 
84
- <div class="tab-pane" id="organisation_logo" style="border: 1px solid #000;min-height:200px;padding:20px;margin-bottom:20px;max-height: 400px;overflow-y: auto;">
85
-
86
- <div class="row">
87
- <div class="col-md-3 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
88
- <%= clear_tag(20) %>
36
+ <div class="row">
37
+ <div class="col-md-3 col-sm-6 col-xs-12">
38
+ <%= clear_tag(60) %>
39
+ <div><strong class="fs-18">Profile Image</strong></div>
40
+ <hr>
41
+ <div style="text-align:center;">
42
+ <% if display_edit_links? %>
89
43
  <%= edit_image(@testimonial,
90
- "logo_image.image.large.url",
91
- upload_image_link(@testimonial, :logo_image, nil ),
92
- remove_image_link(@testimonial, :logo_image, nil ),
93
- image_options: {assoc_name: :logo_image }) %>
94
- <%= clear_tag(20) %>
95
- </div>
44
+ "profile_image.image.large.url",
45
+ upload_image_link(@testimonial, :profile_image, nil ),
46
+ remove_image_link(@testimonial, :profile_image, nil ),
47
+ image_options: {assoc_name: :profile_image, class: "img-circle img-inline userpic-32", width: "100", height: "100" }) %>
48
+ <% else %>
49
+ <%= display_image(@testimonial, "profile_image.image.large.url", class: "img-inline", alt: @testimonial.display_name) %>
50
+ <% end %>
96
51
  </div>
97
-
98
-
99
52
  </div>
100
53
 
101
- <div class="tab-pane" id="technical_details" style="border: 1px solid #000;min-height:200px;padding:20px;margin-bottom:20px;max-height: 400px;overflow-y: auto;">
102
-
103
- <%= clear_tag(20) %>
104
-
105
- <div class="table-responsive">
106
- <table class="table table-striped table-condensed table-bordered mb-60">
107
- <tbody>
108
-
109
- <tr>
110
- <th>ID</th><td><%= @testimonial.id %></td>
111
- <th>Permalink</th><td><%= @testimonial.to_param %></td>
112
- </tr>
113
- <tr>
114
- <th>Featured</th><td><%= @testimonial.featured %></td>
115
- <th>Status</th><td><%= @testimonial.status %></td>
116
- </tr>
117
- <tr>
118
- <th>Created At</th><td><%= @testimonial.created_at.strftime("%m/%d/%Y - %H:%M:%S") if @testimonial.created_at %></td>
119
- <th>Updated At</th><td><%= @testimonial.updated_at.strftime("%m/%d/%Y - %H:%M:%S") if @testimonial.updated_at %></td>
120
- </tr>
121
-
122
- </tbody>
123
- </table>
54
+ <div class="col-md-3 col-sm-6 col-xs-12">
55
+ <%= clear_tag(60) %>
56
+ <div><strong class="fs-18">Organisation Logo</strong></div>
57
+ <hr>
58
+ <div style="text-align:center;">
59
+ <% if display_edit_links? %>
60
+ <%= edit_image(@testimonial,
61
+ "logo_image.image.large.url",
62
+ upload_image_link(@testimonial, :logo_image, nil ),
63
+ remove_image_link(@testimonial, :logo_image, nil ),
64
+ image_options: {assoc_name: :logo_image, width: "100", height: "100" }) %>
65
+ <% else %>
66
+ <%= display_image(@testimonial, "logo_image.image.large.url", class: "img-inline", alt: @testimonial.display_name) %>
67
+ <% end %>
124
68
  </div>
125
-
126
69
  </div>
127
70
  </div>
128
-
71
+
72
+
73
+ <% if @current_user.super_admin? %>
74
+ <%= clear_tag(60) %>
75
+ <div><strong class="fs-18">Technical Details</strong></div>
76
+ <hr>
77
+ <div class="table-responsive">
78
+ <table class="table table-striped table-condensed table-bordered mb-60">
79
+ <tbody>
80
+
81
+ <tr>
82
+ <th>ID</th><td><%= @testimonial.id %></td>
83
+ <th>Permalink</th><td><%= @testimonial.to_param %></td>
84
+ </tr>
85
+ <tr>
86
+ <th>Featured</th><td><%= @testimonial.featured %></td>
87
+ <th>Status</th><td><%= @testimonial.status %></td>
88
+ </tr>
89
+ <tr>
90
+ <th>Created At</th><td><%= @testimonial.created_at.strftime("%m/%d/%Y - %H:%M:%S") if @testimonial.created_at %></td>
91
+ <th>Updated At</th><td><%= @testimonial.updated_at.strftime("%m/%d/%Y - %H:%M:%S") if @testimonial.updated_at %></td>
92
+ </tr>
93
+
94
+ </tbody>
95
+ </table>
96
+ </div>
97
+ <% end %>
98
+
129
99
  <%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
130
100
 
131
101
  <%= clear_tag %>