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.
- 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
@@ -1,171 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
if @section.new_record?
|
3
|
-
@section.page_id = params[:page_id]
|
4
|
-
@section.enable_title = true
|
5
|
-
@section.enable_sub_title = true
|
6
|
-
@section.enable_button_one = true
|
7
|
-
@section.enable_button_two = true
|
8
|
-
@section.enable_short_description = true
|
9
|
-
@section.enable_long_description = true
|
10
|
-
end
|
11
|
-
%>
|
12
|
-
|
13
|
-
<%= form_for(@section,
|
14
|
-
:url => (@section.new_record? ? dhatu.sections_path : dhatu.section_path),
|
15
|
-
:method => (@section.new_record? ? :post : :put),
|
16
|
-
:remote => true,
|
17
|
-
:html => {:id=>"form_section", :class=>"mb-0 form-horizontal"}) do |f| %>
|
18
|
-
|
19
|
-
<div id="section_form_error">
|
20
|
-
<%= @section.errors[:base].to_sentence %>
|
21
|
-
</div>
|
22
|
-
|
23
|
-
<div class="form-inputs">
|
24
|
-
|
25
|
-
<!-- Hidden field tag to carry page_id -->
|
26
|
-
<%= hidden_field_tag :page_id, params[:page_id] %>
|
27
|
-
|
28
|
-
<div class="row">
|
29
|
-
|
30
|
-
<% if @current_user.super_admin? %>
|
31
|
-
<!-- Name -->
|
32
|
-
<div class="col-md-12">
|
33
|
-
<%= theme_form_field(@section, :name, form_style: "top-bottom", html_options: { placeholder: "", id: "inp_section_name"}) %>
|
34
|
-
</div>
|
35
|
-
<% end %>
|
36
|
-
|
37
|
-
<!-- Title -->
|
38
|
-
<% if @section.enable_title %>
|
39
|
-
<div class="col-md-12">
|
40
|
-
<%= theme_form_field(@section, :title, form_style: "top-bottom", html_options: { placeholder: ""}) %>
|
41
|
-
</div>
|
42
|
-
<% end %>
|
43
|
-
|
44
|
-
<!-- Sub Title -->
|
45
|
-
<% if @section.enable_sub_title %>
|
46
|
-
<div class="col-md-12">
|
47
|
-
<%= theme_form_field(@section, :sub_title, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
|
48
|
-
</div>
|
49
|
-
<% end %>
|
50
|
-
|
51
|
-
<!-- Button One -->
|
52
|
-
<% if @section.enable_button_one %>
|
53
|
-
<div class="col-md-4">
|
54
|
-
<div class="row">
|
55
|
-
<div class="col-md-6 pr-20">
|
56
|
-
<%= theme_form_field(@section, :button_one_text, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
|
57
|
-
</div>
|
58
|
-
<div class="col-md-6 pl-20">
|
59
|
-
<%= theme_form_field(@section, :button_one_link, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
|
60
|
-
</div>
|
61
|
-
</div>
|
62
|
-
</div>
|
63
|
-
<% end %>
|
64
|
-
|
65
|
-
<!-- Button Two -->
|
66
|
-
<% if @section.enable_button_one %>
|
67
|
-
<div class="col-md-4">
|
68
|
-
<div class="row">
|
69
|
-
<div class="col-md-6 pr-20">
|
70
|
-
<%= theme_form_field(@section, :button_two_text, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
|
71
|
-
</div>
|
72
|
-
<div class="col-md-6 pl-20">
|
73
|
-
<%= theme_form_field(@section, :button_two_link, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
|
74
|
-
</div>
|
75
|
-
</div>
|
76
|
-
</div>
|
77
|
-
<% end %>
|
78
|
-
|
79
|
-
</div>
|
80
|
-
|
81
|
-
<!-- Short Description -->
|
82
|
-
<% if @section.enable_short_description %>
|
83
|
-
<div class="row">
|
84
|
-
<div class="col-md-12">
|
85
|
-
<%#= theme_form_field(@section, :short_description, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
|
86
|
-
<%= theme_form_field(@section, :short_description, required: true, html_options: {type: :textarea, class: "form-control"}, form_style: "top-bottom") %>
|
87
|
-
</div>
|
88
|
-
</div>
|
89
|
-
<% end %>
|
90
|
-
|
91
|
-
<!-- Long Description -->
|
92
|
-
<% if @section.enable_long_description %>
|
93
|
-
<div class="row">
|
94
|
-
<div class="col-md-12">
|
95
|
-
<%= theme_form_field(@section, :long_description, required: true, html_options: {type: :textarea, class: "form-control wysihtml5", "data-stylesheet-url": "assets/wysiwyg-color.css"}, form_style: "top-bottom") %>
|
96
|
-
</div>
|
97
|
-
</div>
|
98
|
-
<% end %>
|
99
|
-
|
100
|
-
<% if @current_user.super_admin? %>
|
101
|
-
<div class="row">
|
102
|
-
|
103
|
-
<!-- Page -->
|
104
|
-
<div class="col-md-4">
|
105
|
-
<% options = {assoc_collection: Dhatu::Page.select("id, name").order("name ASC").all, editable: true, assoc_display_method: :name, include_blank: true} %>
|
106
|
-
<%= theme_form_assoc_group(@section, :page_id, label: "Page", form_style: "top-bottom", **options) %>
|
107
|
-
</div>
|
108
|
-
|
109
|
-
<!-- Code -->
|
110
|
-
<% if @current_user.super_admin? %>
|
111
|
-
<div class="col-md-4">
|
112
|
-
<%= theme_form_field(@section, :code, label: "Code", form_style: "top-bottom") %>
|
113
|
-
</div>
|
114
|
-
<% end %>
|
115
|
-
|
116
|
-
<!-- Priority -->
|
117
|
-
<div class="col-md-4">
|
118
|
-
<%= theme_form_field(@section, :priority, required: false, form_style: "top-bottom") %>
|
119
|
-
</div>
|
120
|
-
|
121
|
-
</div>
|
122
|
-
<% end %>
|
123
|
-
|
124
|
-
</div>
|
125
|
-
|
126
|
-
<% if @current_user.super_admin? %>
|
127
|
-
<%= clear_tag(30) %>
|
128
|
-
<div><strong class="fs-18">Configuration</strong></div>
|
129
|
-
<hr>
|
130
|
-
|
131
|
-
<div class="row">
|
132
|
-
<div class="col-md-3">
|
133
|
-
<%= theme_form_field(@section, :enable_title, required: false, html_options: {type: :checkbox}, form_style: "top-bottom") %>
|
134
|
-
</div>
|
135
|
-
<div class="col-md-3">
|
136
|
-
<%= theme_form_field(@section, :enable_sub_title, required: false, html_options: {type: :checkbox}, form_style: "top-bottom") %>
|
137
|
-
</div>
|
138
|
-
<div class="col-md-3">
|
139
|
-
<%= theme_form_field(@section, :enable_short_description, required: false, html_options: {type: :checkbox}, form_style: "top-bottom") %>
|
140
|
-
</div>
|
141
|
-
<div class="col-md-3">
|
142
|
-
<%= theme_form_field(@section, :enable_long_description, required: false, html_options: {type: :checkbox}, form_style: "top-bottom") %>
|
143
|
-
</div>
|
144
|
-
<div class="col-md-3">
|
145
|
-
<%= theme_form_field(@section, :enable_button_one, required: false, html_options: {type: :checkbox}, form_style: "top-bottom") %>
|
146
|
-
</div>
|
147
|
-
<div class="col-md-3">
|
148
|
-
<%= theme_form_field(@section, :enable_button_two, required: false, html_options: {type: :checkbox}, form_style: "top-bottom") %>
|
149
|
-
</div>
|
150
|
-
<div class="col-md-3">
|
151
|
-
<%= theme_form_field(@section, :enable_cover_image, required: false, html_options: {type: :checkbox}, form_style: "top-bottom") %>
|
152
|
-
</div>
|
153
|
-
<div class="col-md-3">
|
154
|
-
<%= theme_form_field(@section, :enable_gallery_images, required: false, html_options: {type: :checkbox}, form_style: "top-bottom") %>
|
155
|
-
</div>
|
156
|
-
</div>
|
157
|
-
<% end %>
|
158
|
-
|
159
|
-
<%= clear_tag(50) %>
|
160
|
-
<div class="row">
|
161
|
-
<div class="col-md-12 pr-20">
|
162
|
-
<%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
|
163
|
-
|
164
|
-
<%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right btn btn-white" %>
|
165
|
-
</div>
|
166
|
-
</div>
|
167
|
-
|
168
|
-
<%= clear_tag %>
|
169
|
-
|
170
|
-
<% end %>
|
171
|
-
|
@@ -1,53 +0,0 @@
|
|
1
|
-
<div class="table-responsive">
|
2
|
-
<table class="table table-hover table-condensed members-table middle-align">
|
3
|
-
<thead>
|
4
|
-
<tr>
|
5
|
-
<th style="text-align: center;width:5%">#</th>
|
6
|
-
<!-- <th style="text-align: center;width:100px"><i class="fa fa-photo"></i></th> -->
|
7
|
-
<th style="width:50%;">Title</th>
|
8
|
-
<th style="width:100px;" class="hidden-sm hidden-xs">Status</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_section_0"></tr>
|
16
|
-
<% @sections.each_with_index do |section, i| %>
|
17
|
-
|
18
|
-
<tr id="tr_section_<%= section.id %>">
|
19
|
-
|
20
|
-
<th scope="row" style="text-align: center;">
|
21
|
-
<%= serial_number(i) %>
|
22
|
-
</th>
|
23
|
-
|
24
|
-
<!-- <td class="display-image">
|
25
|
-
<%#= display_thumbnail(section) %>
|
26
|
-
</td> -->
|
27
|
-
|
28
|
-
<td>
|
29
|
-
<strong><%= section.title %></strong><br>
|
30
|
-
<%= section.sub_title %><br>
|
31
|
-
</td>
|
32
|
-
|
33
|
-
<td class="hidden-sm hidden-xs"><%= display_publishable_status(section) %></td>
|
34
|
-
|
35
|
-
<% if display_manage_links? %>
|
36
|
-
<td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(section) %></td>
|
37
|
-
|
38
|
-
<td class="action-links hidden-sm hidden-xs" style="width:10%">
|
39
|
-
<%= display_manage_links(section, @current_user) %>
|
40
|
-
</td>
|
41
|
-
<% end %>
|
42
|
-
|
43
|
-
</tr>
|
44
|
-
<% end %>
|
45
|
-
</tbody>
|
46
|
-
</table>
|
47
|
-
</div>
|
48
|
-
|
49
|
-
<div class="row">
|
50
|
-
<div class="col-sm-12">
|
51
|
-
<%= paginate_kuppayam(@sections) %>
|
52
|
-
</div>
|
53
|
-
</div>
|
@@ -1,26 +0,0 @@
|
|
1
|
-
<tr id="tr_section_<%= section.id %>">
|
2
|
-
|
3
|
-
<th scope="row" style="text-align: center;">
|
4
|
-
<%= serial_number(i) %>
|
5
|
-
</th>
|
6
|
-
|
7
|
-
<!-- <td class="display-image">
|
8
|
-
<%#= display_thumbnail(section) %>
|
9
|
-
</td> -->
|
10
|
-
|
11
|
-
<td>
|
12
|
-
<strong><%= section.title %></strong><br>
|
13
|
-
<%= section.sub_title %><br>
|
14
|
-
</td>
|
15
|
-
|
16
|
-
<td class="hidden-sm hidden-xs"><%= display_publishable_status(section) %></td>
|
17
|
-
|
18
|
-
<% if display_manage_links? %>
|
19
|
-
<td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(section) %></td>
|
20
|
-
|
21
|
-
<td class="action-links hidden-sm hidden-xs" style="width:10%">
|
22
|
-
<%= display_manage_links(section, @current_user) %>
|
23
|
-
</td>
|
24
|
-
<% end %>
|
25
|
-
|
26
|
-
</tr>
|
@@ -1,208 +0,0 @@
|
|
1
|
-
<div id="div_section_show">
|
2
|
-
|
3
|
-
<% if @current_user.super_admin? %>
|
4
|
-
<div class="row">
|
5
|
-
|
6
|
-
<div class="col-md-9 col-sm-12 col-xs-12">
|
7
|
-
<%= theme_panel_heading(@section.name) %>
|
8
|
-
<%= theme_panel_sub_heading(@section.page.try(:name), "#") %>
|
9
|
-
<%= clear_tag(10) %>
|
10
|
-
<%= display_publishable_status(@section) %>
|
11
|
-
</div>
|
12
|
-
|
13
|
-
<% if display_manage_links? %>
|
14
|
-
<div class="col-md-3 col-sm-12 col-xs-12">
|
15
|
-
<%= display_manage_buttons(@section) %>
|
16
|
-
<%= display_publishable_buttons(@section) if @current_user.super_admin? %>
|
17
|
-
</div>
|
18
|
-
<% end %>
|
19
|
-
|
20
|
-
</div>
|
21
|
-
|
22
|
-
<%= clear_tag(20) %>
|
23
|
-
<div><strong class="fs-18">Section Texts</strong></div>
|
24
|
-
<hr>
|
25
|
-
<% end %>
|
26
|
-
|
27
|
-
<%= clear_tag(20) %>
|
28
|
-
|
29
|
-
<div class="row tabular-item">
|
30
|
-
<% if @section.enable_title %>
|
31
|
-
<div class="col-sm-12 mb-40">
|
32
|
-
<div class="item-title">Title</div>
|
33
|
-
<div class="item-detail"><%= @section.title %></div>
|
34
|
-
</div>
|
35
|
-
<% end %>
|
36
|
-
|
37
|
-
<% if @section.enable_sub_title %>
|
38
|
-
<div class="col-sm-12 mb-40">
|
39
|
-
<div class="item-title">Sub Title</div>
|
40
|
-
<div class="item-detail"><%= @section.sub_title.blank? ? "-" : @section.sub_title %></div>
|
41
|
-
</div>
|
42
|
-
<% end %>
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<div class="row tabular-item">
|
46
|
-
<% if @section.enable_button_one %>
|
47
|
-
<div class="col-sm-3 mb-40">
|
48
|
-
<div class="item-title">Button Text One</div>
|
49
|
-
<div class="item-detail"><%= @section.button_one_text.blank? ? "-" : @section.button_one_text %></div>
|
50
|
-
</div>
|
51
|
-
<div class="col-sm-3 mb-40">
|
52
|
-
<div class="item-title">Button Link One</div>
|
53
|
-
<div class="item-detail"><%= @section.button_one_link.blank? ? "-" : @section.button_one_link %></div>
|
54
|
-
</div>
|
55
|
-
<% end %>
|
56
|
-
|
57
|
-
<% if @section.enable_button_two %>
|
58
|
-
<div class="col-sm-3 mb-40">
|
59
|
-
<div class="item-title">Button Text Two</div>
|
60
|
-
<div class="item-detail"><%= @section.button_two_text.blank? ? "-" : @section.button_two_text %></div>
|
61
|
-
</div>
|
62
|
-
<div class="col-sm-3 mb-40">
|
63
|
-
<div class="item-title">Button Link Two</div>
|
64
|
-
<div class="item-detail"><%= @section.button_two_link.blank? ? "-" : @section.button_two_link %></div>
|
65
|
-
</div>
|
66
|
-
<% end %>
|
67
|
-
</div>
|
68
|
-
|
69
|
-
<div class="row tabular-item">
|
70
|
-
<% if @section.enable_short_description %>
|
71
|
-
<div class="col-sm-12 mb-40">
|
72
|
-
<div class="item-title">Short Description</div>
|
73
|
-
<div class="item-detail pt-20 pb-20">
|
74
|
-
<% if @section.short_description.blank? %>
|
75
|
-
<Not Specified>
|
76
|
-
<% else %>
|
77
|
-
<%= raw(@section.short_description) %>
|
78
|
-
<% end %>
|
79
|
-
</div>
|
80
|
-
</div>
|
81
|
-
<% end %>
|
82
|
-
|
83
|
-
<% if @section.enable_long_description %>
|
84
|
-
<div class="col-sm-12 mb-40">
|
85
|
-
<div class="item-title">Long Description</div>
|
86
|
-
<div class="item-detail pt-20 pb-20">
|
87
|
-
<% if @section.long_description.blank? %>
|
88
|
-
<Not Specified>
|
89
|
-
<% else %>
|
90
|
-
<%= raw(@section.long_description) %>
|
91
|
-
<% end %>
|
92
|
-
</div>
|
93
|
-
</div>
|
94
|
-
<% end %>
|
95
|
-
</div>
|
96
|
-
|
97
|
-
<% if @section.enable_cover_image %>
|
98
|
-
<%= clear_tag(30) %>
|
99
|
-
<div class="row">
|
100
|
-
<div class="col-md-6">
|
101
|
-
<div><strong class="fs-18">Section Image (Optional)</strong></div>
|
102
|
-
</div>
|
103
|
-
</div>
|
104
|
-
<hr style="margin-top:0px;">
|
105
|
-
<div class="row">
|
106
|
-
<div class="col-md-3">
|
107
|
-
<%= clear_tag(10) %>
|
108
|
-
<% if display_edit_links? %>
|
109
|
-
<%= edit_image(@section,
|
110
|
-
"cover_image.image.large.url",
|
111
|
-
upload_image_link(@section, :cover_image, nil ),
|
112
|
-
remove_image_link(@section, :cover_image, nil ),
|
113
|
-
image_options: {assoc_name: :cover_image }) %>
|
114
|
-
<% else %>
|
115
|
-
<%= display_image(@section, "cover_image.image.large.url", class: "img-inline", alt: @section.display_name) %>
|
116
|
-
<% end %>
|
117
|
-
</div>
|
118
|
-
</div>
|
119
|
-
<%= clear_tag(30) %>
|
120
|
-
<% end %>
|
121
|
-
|
122
|
-
<% if @section.enable_gallery_images %>
|
123
|
-
<%= clear_tag(30) %>
|
124
|
-
<div class="row">
|
125
|
-
<div class="col-md-6">
|
126
|
-
<div><strong class="fs-18">Section Images (Optional)</strong></div>
|
127
|
-
</div>
|
128
|
-
<div class="col-md-6">
|
129
|
-
<%= theme_button('Upload a New Image', 'plus', upload_multiple_image_link(@section, :gallery_images, nil ), classes: "pull-right", btn_type: "success") %>
|
130
|
-
</div>
|
131
|
-
</div>
|
132
|
-
<hr style="margin-top:0px;">
|
133
|
-
<%= clear_tag(10) %>
|
134
|
-
<div id="div_multiple_images">
|
135
|
-
<%= render :partial=>"kuppayam/images/multiple_images", locals: { images: @section.gallery_images } %>
|
136
|
-
</div>
|
137
|
-
<%= clear_tag(30) %>
|
138
|
-
<% end %>
|
139
|
-
|
140
|
-
<% if @current_user.super_admin? %>
|
141
|
-
<%= clear_tag(30) %>
|
142
|
-
<div><strong class="fs-18">Technical Details</strong></div>
|
143
|
-
<hr>
|
144
|
-
<div class="table-responsive">
|
145
|
-
<table class="table table-striped table-condensed table-bordered mb-60">
|
146
|
-
<tbody>
|
147
|
-
|
148
|
-
<tr>
|
149
|
-
<th>ID</th><td><%= @section.id %></td>
|
150
|
-
<th style="width:25%">Page</th>
|
151
|
-
<td style="width:25%"><%= "#{@section.page.name} (#{@section.page.id})" if @section.page %></td>
|
152
|
-
</tr>
|
153
|
-
|
154
|
-
<tr>
|
155
|
-
<th>CODE</th><td><%= @section.code %></td>
|
156
|
-
<th></th><td></td>
|
157
|
-
</tr>
|
158
|
-
|
159
|
-
<tr>
|
160
|
-
<th>Status</th><td><%= @section.status %></td>
|
161
|
-
<th>Priority</th><td><%= @section.priority %></td>
|
162
|
-
</tr>
|
163
|
-
|
164
|
-
<tr>
|
165
|
-
<th style="width:25%">Enable Title</th>
|
166
|
-
<td style="width:25%"><%=@section.enable_title %></td>
|
167
|
-
<th style="width:25%">Enable Sub Title</th>
|
168
|
-
<td style="width:25%"><%=@section.enable_sub_title %></td>
|
169
|
-
</tr>
|
170
|
-
|
171
|
-
<tr>
|
172
|
-
<th style="width:25%">Enable Button One</th>
|
173
|
-
<td style="width:25%"><%=@section.enable_button_one %></td>
|
174
|
-
<th style="width:25%">Enable Button Two</th>
|
175
|
-
<td style="width:25%"><%=@section.enable_button_two %></td>
|
176
|
-
</tr>
|
177
|
-
|
178
|
-
<tr>
|
179
|
-
<th style="width:25%">Enable Short Description</th>
|
180
|
-
<td style="width:25%"><%=@section.enable_short_description %></td>
|
181
|
-
<th style="width:25%">Enable Long Description</th>
|
182
|
-
<td style="width:25%"><%=@section.enable_long_description %></td>
|
183
|
-
</tr>
|
184
|
-
|
185
|
-
<tr>
|
186
|
-
<th style="width:25%">Enable Cover Image</th>
|
187
|
-
<td style="width:25%"><%=@section.enable_cover_image %></td>
|
188
|
-
<th style="width:25%">Enable Gallery Images</th>
|
189
|
-
<td style="width:25%"><%=@section.enable_gallery_images %></td>
|
190
|
-
</tr>
|
191
|
-
|
192
|
-
<tr>
|
193
|
-
<th>Created At</th><td><%= @section.created_at.strftime("%m/%d/%Y - %H:%M:%S") if @section.created_at %></td>
|
194
|
-
<th>Updated At</th><td><%= @section.updated_at.strftime("%m/%d/%Y - %H:%M:%S") if @section.updated_at %></td>
|
195
|
-
</tr>
|
196
|
-
|
197
|
-
</tbody>
|
198
|
-
</table>
|
199
|
-
</div>
|
200
|
-
<% end %>
|
201
|
-
|
202
|
-
<%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right ml-10", style: "width:120px;" %>
|
203
|
-
|
204
|
-
<%= link_to "Edit", edit_section_path(@section), remote: true, class: "btn btn-success pull-right", style: "width:180px;" if display_manage_links? %>
|
205
|
-
|
206
|
-
<%= clear_tag %>
|
207
|
-
|
208
|
-
</div>
|