dhatu 0.1.5 → 0.1.6
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 +5 -5
- data/app/controllers/dhatu/bookings_controller.rb +76 -0
- data/app/controllers/dhatu/branches_controller.rb +1 -1
- data/app/controllers/dhatu/categories_controller.rb +14 -12
- data/app/controllers/dhatu/events_controller.rb +7 -9
- data/app/controllers/dhatu/offers_controller.rb +6 -8
- data/app/controllers/dhatu/prices_controller.rb +90 -0
- data/app/controllers/dhatu/sections_controller.rb +5 -5
- data/app/controllers/dhatu/services_controller.rb +6 -8
- data/app/controllers/dhatu/team_members_controller.rb +5 -7
- data/app/controllers/dhatu/testimonials_controller.rb +10 -12
- data/app/models/dhatu/booking.rb +55 -0
- data/app/models/dhatu/category.rb +11 -13
- data/app/models/dhatu/event.rb +2 -1
- data/app/models/dhatu/offer.rb +1 -0
- data/app/models/dhatu/price.rb +59 -0
- data/app/models/dhatu/section.rb +1 -14
- data/app/models/dhatu/service.rb +1 -14
- data/app/uploaders/category_image_uploader.rb +8 -0
- data/app/views/dhatu/blog_posts/_show.html.erb +3 -5
- data/app/views/dhatu/bookings/_index.html.erb +48 -0
- data/app/views/dhatu/bookings/_row.html.erb +18 -0
- data/app/views/dhatu/bookings/_show.html.erb +62 -0
- data/app/views/dhatu/bookings/index.html.erb +79 -0
- data/app/views/dhatu/bookings/show.js.erb +17 -0
- data/app/views/dhatu/categories/_form.html.erb +5 -6
- data/app/views/dhatu/categories/_index.html.erb +3 -0
- data/app/views/dhatu/categories/_row.html.erb +2 -0
- data/app/views/dhatu/categories/_show.html.erb +29 -16
- data/app/views/dhatu/categories/index.html.erb +10 -4
- data/app/views/dhatu/dashboard/_index.html.erb +12 -0
- data/app/views/dhatu/events/_form.html.erb +5 -2
- data/app/views/dhatu/offers/_form.html.erb +5 -2
- data/app/views/dhatu/prices/_form.html.erb +45 -0
- data/app/views/dhatu/prices/_index.html.erb +49 -0
- data/app/views/dhatu/prices/_row.html.erb +24 -0
- data/app/views/dhatu/prices/_show.html.erb +76 -0
- data/app/views/dhatu/prices/index.html.erb +69 -0
- data/app/views/dhatu/services/_show.html.erb +1 -0
- data/app/views/dhatu/team_members/_form.html.erb +10 -2
- data/app/views/dhatu/testimonials/_form.html.erb +21 -8
- data/app/views/layouts/kuppayam/_sidebar.html.erb +12 -0
- data/config/routes.rb +16 -0
- data/lib/dhatu/version.rb +1 -1
- data/spec/dummy/spec/factories/blog_post.rb +2 -0
- data/spec/dummy/spec/factories/category.rb +51 -0
- data/spec/dummy/spec/factories/event.rb +2 -0
- data/spec/dummy/spec/factories/offer.rb +1 -1
- data/spec/dummy/spec/factories/section.rb +2 -0
- metadata +23 -8
@@ -0,0 +1,79 @@
|
|
1
|
+
<div class="row">
|
2
|
+
|
3
|
+
<div class="col-md-12">
|
4
|
+
|
5
|
+
<div class="tabs-vertical-env">
|
6
|
+
|
7
|
+
<ul id="div_category_types" class="nav tabs-vertical">
|
8
|
+
<!-- <li class="<%= @status.blank? ? 'active' : '' %>">
|
9
|
+
<%#= link_to "All", bookings_path, style: "text-align:left;" %>
|
10
|
+
</li> -->
|
11
|
+
<% Readable::STATUS_REVERSE.keys.each do |st| %>
|
12
|
+
<%
|
13
|
+
if st == "new" && @new_bookings_count > 0
|
14
|
+
text = raw("#{st.titleize} <span class='badge badge-success ml-5'>#{@new_bookings_count}</span>")
|
15
|
+
elsif st == "unread" && @unread_bookings_count > 0
|
16
|
+
text = raw("#{st.titleize} <span class='badge badge-info ml-5'>#{@unread_bookings_count}</span>")
|
17
|
+
else
|
18
|
+
text = st.titleize
|
19
|
+
end
|
20
|
+
%>
|
21
|
+
<li class="<%= st == @status ? 'active' : '' %>">
|
22
|
+
<%= link_to text, bookings_path(st: st), style: "text-align:left;" %>
|
23
|
+
</li>
|
24
|
+
<% end %>
|
25
|
+
</ul>
|
26
|
+
|
27
|
+
<!-- <ul class="nav nav-tabs nav-tabs-justified">
|
28
|
+
<%# Dhatu::Booking::STATUS.each do |key, value| %>
|
29
|
+
<li class="<%#= @status == value ? 'active' : '' %>">
|
30
|
+
<%#= link_to dhatu.bookings_path(st: value), "aria-expanded" => "#{ @status == value ? 'true' : 'false' }" do %>
|
31
|
+
<span class="visible-xs"><i class="fa-gift"></i></span>
|
32
|
+
<span class="hidden-xs"><%#= key %></span>
|
33
|
+
<%# end %>
|
34
|
+
</li>
|
35
|
+
<%# end %>
|
36
|
+
</ul> -->
|
37
|
+
|
38
|
+
<div class="tab-content">
|
39
|
+
<div class="tab-pane active">
|
40
|
+
|
41
|
+
<div id="div_booking_action_buttons">
|
42
|
+
<div class="row">
|
43
|
+
<div class="col-sm-6">
|
44
|
+
<%= theme_button('Refresh', 'refresh', dhatu.bookings_path(st: @status), classes: "pull-left mr-10", btn_type: "white") %>
|
45
|
+
</div>
|
46
|
+
<div class="col-sm-6">
|
47
|
+
<%= search_form_kuppayam(Dhatu::Booking, dhatu.bookings_path, text: @filters[:query]) %>
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
<%= clear_tag(10) %>
|
53
|
+
|
54
|
+
<div id="div_booking_index">
|
55
|
+
<%= render :partial=>"dhatu/bookings/index" %>
|
56
|
+
</div>
|
57
|
+
<%= clear_tag(10) %>
|
58
|
+
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
</div>
|
63
|
+
|
64
|
+
</div>
|
65
|
+
|
66
|
+
</div>
|
67
|
+
|
68
|
+
<script type="text/javascript">
|
69
|
+
$('body').on('change', '#inp_name', function() {
|
70
|
+
var bookingId = $('#inp_permalink').data("id");
|
71
|
+
if(bookingId){
|
72
|
+
} else {
|
73
|
+
var permalink = convertToSlug($(this).val()).slice(0, 63);
|
74
|
+
$('#inp_permalink').val(permalink);
|
75
|
+
}
|
76
|
+
});
|
77
|
+
</script>
|
78
|
+
|
79
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<% if @r_object %>
|
2
|
+
|
3
|
+
// Show the details in the large modal
|
4
|
+
var heading = "<%= raw @r_object.try(:display_name) %>";
|
5
|
+
var bodyContent = "<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/show")) %>";
|
6
|
+
showLargeModal(heading, bodyContent, false);
|
7
|
+
|
8
|
+
// Updating the edited row and highlighting it
|
9
|
+
$('#tr_<%= @resource_options[:item_name] %>_<%= @r_object.id %>').replaceWith("<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/row", locals: { @resource_options[:item_name].to_sym => @r_object, i: -1})) %>");
|
10
|
+
$("#tr_<%= @resource_options[:item_name] %>_<%= @r_object.id %>").css("background-color", "#fffddd");
|
11
|
+
|
12
|
+
<% else %>
|
13
|
+
|
14
|
+
// Showing Growl Like Message
|
15
|
+
notifyError("<%= escape_javascript(@notification[:title]) %>", "<%= escape_javascript(raw(@notification[:message])) %>");
|
16
|
+
|
17
|
+
<% end %>
|
@@ -10,7 +10,10 @@
|
|
10
10
|
|
11
11
|
<%= theme_form_field(@category, :name) %>
|
12
12
|
|
13
|
-
|
13
|
+
<% options_list = Array[*@features.collect {|f| [f.display_name, f.name] }].sort %>
|
14
|
+
|
15
|
+
<%= theme_form_select_group(@category, :category_type, options_list, param_name: "dhatu/category[category_type]", label: "Choose Type", prompt: true) %>
|
16
|
+
|
14
17
|
<%= theme_form_field(@category, :one_liner, required: false) %>
|
15
18
|
<%= theme_form_field(@category, :description, required: false, html_options: {type: :textarea}) %>
|
16
19
|
<%= theme_form_field(@category, :priority, required: false, html_options: {type: :number, style: "width:70px;"}) %>
|
@@ -23,15 +26,11 @@
|
|
23
26
|
<% options = {assoc_collection: categories, required: false, editable: true, assoc_display_method: :name} %>
|
24
27
|
<%= theme_form_assoc_group(@category, :parent_id, **options) %>
|
25
28
|
</div>
|
26
|
-
|
27
|
-
|
28
29
|
|
29
30
|
<div>
|
30
|
-
|
31
31
|
<%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
|
32
32
|
|
33
|
-
<%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "
|
34
|
-
|
33
|
+
<%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right ml-10 btn btn-white" %>
|
35
34
|
</div>
|
36
35
|
<%= clear_tag(10) %>
|
37
36
|
</div>
|
@@ -48,6 +48,7 @@
|
|
48
48
|
<tr>
|
49
49
|
<th style="text-align: center;width:60px">#</th>
|
50
50
|
<th>Name</th>
|
51
|
+
<th>Type</th>
|
51
52
|
<!-- <th>Parent</th>
|
52
53
|
<th>Top Parent</th> -->
|
53
54
|
<th style="text-align: center;width:100px;">Status</th>
|
@@ -77,6 +78,8 @@
|
|
77
78
|
<%= link_to raw("<i class=\"fa fa-caret-right\"></i> #{category.display_name}"), categories_path(parent_id: category.id), remote: true %></td>
|
78
79
|
<% end %>
|
79
80
|
|
81
|
+
<td><%= category.category_type %></td>
|
82
|
+
|
80
83
|
<!--
|
81
84
|
<%# if category.parent == @current_category %>
|
82
85
|
<td class="category-name"><%#= category.parent.display_name if category.parent %></td>
|
@@ -15,6 +15,8 @@
|
|
15
15
|
<%= link_to raw("<i class=\"fa fa-caret-right\"></i> #{category.display_name}"), categories_path(parent_id: category.id), remote: true %></td>
|
16
16
|
<% end %>
|
17
17
|
|
18
|
+
<td><%= category.display_category_type %></td>
|
19
|
+
|
18
20
|
<!--
|
19
21
|
<%# if category.parent == @current_category %>
|
20
22
|
<td class="category-name"><%#= category.parent.display_name if category.parent %></td>
|
@@ -2,19 +2,19 @@
|
|
2
2
|
|
3
3
|
<div class="row">
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
"
|
9
|
-
upload_image_link(@category, :
|
10
|
-
remove_image_link(@category, :
|
11
|
-
image_options: {assoc_name: :
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
<div class="col-md-
|
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(@category,
|
8
|
+
"category_image.image.url",
|
9
|
+
upload_image_link(@category, :category_image, nil ),
|
10
|
+
remove_image_link(@category, :category_image, nil ),
|
11
|
+
image_options: {assoc_name: :category_image }) %>
|
12
|
+
<% else %>
|
13
|
+
<%= display_image(@category, "category_image.image.url", class: "img-inline", alt: @category.display_name) %>
|
14
|
+
<% end %>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div class="col-md-5 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
|
18
18
|
|
19
19
|
<%= theme_panel_heading(@category.name) %>
|
20
20
|
|
@@ -31,7 +31,7 @@
|
|
31
31
|
</div>
|
32
32
|
|
33
33
|
<% if display_manage_links? %>
|
34
|
-
<div class="col-md-
|
34
|
+
<div class="col-md-4 col-sm-12 col-xs-12">
|
35
35
|
<%= display_manage_buttons(@category) %>
|
36
36
|
<%= display_publishable_buttons(@category) %>
|
37
37
|
<%= display_featurable_buttons(@category) %>
|
@@ -66,8 +66,21 @@
|
|
66
66
|
</tr>
|
67
67
|
|
68
68
|
<tr>
|
69
|
-
<th>
|
70
|
-
<th
|
69
|
+
<th>Category Type</th><td><%= @category.category_type %></td>
|
70
|
+
<th></th><td></td>
|
71
|
+
</tr>
|
72
|
+
|
73
|
+
<tr>
|
74
|
+
<th>Parent</th><td>
|
75
|
+
<% if @category.parent %>
|
76
|
+
<%= @category.parent.try(:display_name) %> (<%= @category.parent.try(:id) %>)
|
77
|
+
<% end %>
|
78
|
+
</td>
|
79
|
+
<th>Top Parent</th><td>
|
80
|
+
<% if @category.top_parent %>
|
81
|
+
<%= @category.top_parent.try(:display_name) %> (<%= @category.top_parent.try(:id) %>)
|
82
|
+
<% end %>
|
83
|
+
</td>
|
71
84
|
</tr>
|
72
85
|
|
73
86
|
<tr>
|
@@ -4,11 +4,17 @@
|
|
4
4
|
<div class="tabs-vertical-env">
|
5
5
|
|
6
6
|
<ul id="div_category_types" class="nav tabs-vertical">
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
<li class="<%= @category_type == "All" ? 'active' : '' %>">
|
8
|
+
<%= link_to "All", categories_path %>
|
9
|
+
</li>
|
10
|
+
<% @features.each do |feature| %>
|
11
|
+
<li class="<%= @category_type == feature.name ? 'active' : '' %>">
|
12
|
+
<%= link_to feature.display_name, categories_path(category_type: feature.name) %>
|
10
13
|
</li>
|
11
|
-
<% end %>
|
14
|
+
<% end %>
|
15
|
+
<li class="<%= @category_type == "none" ? 'active' : '' %>">
|
16
|
+
<%= link_to "None", categories_path(category_type: :none) %>
|
17
|
+
</li>
|
12
18
|
</ul>
|
13
19
|
|
14
20
|
<div class="tab-content">
|
@@ -1,5 +1,11 @@
|
|
1
1
|
<%
|
2
2
|
dhatu_items = {
|
3
|
+
bookings: {
|
4
|
+
text: "Bookings",
|
5
|
+
icon_class: "fa-calendar",
|
6
|
+
url: dhatu.bookings_url,
|
7
|
+
has_permission: @current_user.has_read_permission?(Dhatu::Booking)
|
8
|
+
},
|
3
9
|
sections: {
|
4
10
|
text: "Sections",
|
5
11
|
icon_class: "fa-reorder",
|
@@ -18,6 +24,12 @@
|
|
18
24
|
url: dhatu.services_url,
|
19
25
|
has_permission: @current_user.has_read_permission?(Dhatu::Service)
|
20
26
|
},
|
27
|
+
prices: {
|
28
|
+
text: "Prices",
|
29
|
+
icon_class: "fa-dollar",
|
30
|
+
url: dhatu.prices_url,
|
31
|
+
has_permission: @current_user.has_read_permission?(Dhatu::Price)
|
32
|
+
},
|
21
33
|
branches: {
|
22
34
|
text: "Branches",
|
23
35
|
icon_class: "fa-location-arrow",
|
@@ -17,12 +17,15 @@
|
|
17
17
|
<%= theme_form_field(@event, :description, required: true, html_options: {type: :textarea, class: "form-control wysihtml5", "data-stylesheet-url": "assets/wysiwyg-color.css"}, form_style: "top-bottom") %>
|
18
18
|
|
19
19
|
<div class="row">
|
20
|
-
<div class="col-md-
|
20
|
+
<div class="col-md-3 pr-20">
|
21
21
|
<%= theme_form_field(@event, :starts_at, required: false, html_options: {type: :date}, form_style: "top-bottom") %>
|
22
22
|
</div>
|
23
|
-
<div class="col-md-
|
23
|
+
<div class="col-md-3 pl-20">
|
24
24
|
<%= theme_form_field(@event, :ends_at, required: false, html_options: {type: :date}, form_style: "top-bottom") %>
|
25
25
|
</div>
|
26
|
+
<div class="col-md-3 pl-20">
|
27
|
+
<%= theme_form_field(@event, :priority, required: false, html_options: {type: :number, style: "width:70px;"}, form_style: "top-bottom") %>
|
28
|
+
</div>
|
26
29
|
</div>
|
27
30
|
|
28
31
|
</div>
|
@@ -17,12 +17,15 @@
|
|
17
17
|
<%= theme_form_field(@offer, :description, required: true, html_options: {type: :textarea, class: "form-control wysihtml5", "data-stylesheet-url": "assets/wysiwyg-color.css"}, form_style: "top-bottom") %>
|
18
18
|
|
19
19
|
<div class="row">
|
20
|
-
<div class="col-md-
|
20
|
+
<div class="col-md-3 pr-20">
|
21
21
|
<%= theme_form_field(@offer, :starts_at, required: false, html_options: {type: :date}, form_style: "top-bottom") %>
|
22
22
|
</div>
|
23
|
-
<div class="col-md-
|
23
|
+
<div class="col-md-3 pl-20">
|
24
24
|
<%= theme_form_field(@offer, :ends_at, required: false, html_options: {type: :date}, form_style: "top-bottom") %>
|
25
25
|
</div>
|
26
|
+
<div class="col-md-3 pl-20">
|
27
|
+
<%= theme_form_field(@offer, :priority, required: false, html_options: {type: :number, style: "width:70px;"}, form_style: "top-bottom") %>
|
28
|
+
</div>
|
26
29
|
</div>
|
27
30
|
|
28
31
|
</div>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<%= form_for(@price,
|
2
|
+
:url => (@price.new_record? ? dhatu.prices_path : dhatu.price_path),
|
3
|
+
:method => (@price.new_record? ? :post : :put),
|
4
|
+
:remote => true,
|
5
|
+
:html => {:id=>"form_price", :class=>"mb-0 form-horizontal"}) do |f| %>
|
6
|
+
|
7
|
+
<div id="price_form_error">
|
8
|
+
<%= @price.errors[:base].to_sentence %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="form-inputs m-15">
|
12
|
+
|
13
|
+
<%= theme_form_field(@price, :title, required: true, form_style: "top-bottom", html_options: { placeholder: "", "data-id": @price.id.to_s}) %>
|
14
|
+
|
15
|
+
<div class="row">
|
16
|
+
<div class="col-md-6">
|
17
|
+
<%= theme_form_field(@price, :sub_title, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
|
18
|
+
</div>
|
19
|
+
<div class="col-md-6">
|
20
|
+
<% options = {assoc_collection: Dhatu::Category.filter_by_category_type("Price").published.select("id, name").order("name ASC").all, editable: true, assoc_display_method: :name} %>
|
21
|
+
<%= theme_form_assoc_group(@price, :category_id, label: "Choose Category", form_style: "top-bottom", **options) %>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<div class="row">
|
26
|
+
<div class="col-md-6">
|
27
|
+
<%= theme_form_field(@price, :price, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
|
28
|
+
</div>
|
29
|
+
<div class="col-md-6">
|
30
|
+
<%= theme_form_field(@price, :priority, required: false, form_style: "top-bottom", html_options: { placeholder: "" }) %>
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div>
|
37
|
+
<%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
|
38
|
+
|
39
|
+
<%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeGenericModal();", class: "pull-right btn btn-white" %>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<%= clear_tag %>
|
43
|
+
|
44
|
+
<% end %>
|
45
|
+
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<div class="table-responsive">
|
2
|
+
<table class="table table-hover members-table middle-align">
|
3
|
+
<thead>
|
4
|
+
<tr>
|
5
|
+
<th style="text-align: center;width:5%">#</th>
|
6
|
+
<th>Item</th>
|
7
|
+
<th style="width:200px">Price</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_price_0"></tr>
|
16
|
+
<% @prices.each_with_index do |price, i| %>
|
17
|
+
<tr id="tr_price_<%= price.id %>">
|
18
|
+
|
19
|
+
<th scope="row" style="text-align: center;">
|
20
|
+
<%= serial_number(i) %>
|
21
|
+
</th>
|
22
|
+
|
23
|
+
<td class="display-link">
|
24
|
+
<%= link_to price.title, price_path(price), remote: true %><br>
|
25
|
+
<%= link_to price.category.try(:display_name), price_path(price), remote: true, style: "color:darkred" %>
|
26
|
+
</td>
|
27
|
+
|
28
|
+
<td class="hidden-sm hidden-xs"><%= price.price %></td>
|
29
|
+
|
30
|
+
<td class="hidden-sm hidden-xs"><%= display_publishable_status(price) %></td>
|
31
|
+
|
32
|
+
<% if display_manage_links? %>
|
33
|
+
<td class="action-links hidden-sm hidden-xs" style="width:15%"><%= display_publishable_links(price) %></td>
|
34
|
+
|
35
|
+
<td class="action-links hidden-sm hidden-xs" style="width:15%">
|
36
|
+
<%= display_manage_links(price, @current_user) %>
|
37
|
+
</td>
|
38
|
+
<% end %>
|
39
|
+
</tr>
|
40
|
+
<% end %>
|
41
|
+
</tbody>
|
42
|
+
</table>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div class="row">
|
46
|
+
<div class="col-sm-12">
|
47
|
+
<%= paginate_kuppayam(@prices) %>
|
48
|
+
</div>
|
49
|
+
</div>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<tr id="tr_price_<%= price.id %>">
|
2
|
+
|
3
|
+
<th scope="row" style="text-align: center;">
|
4
|
+
<%= serial_number(i) %>
|
5
|
+
</th>
|
6
|
+
|
7
|
+
<td class="display-link">
|
8
|
+
<%= link_to price.title, price_path(price), remote: true %><br>
|
9
|
+
<%= link_to price.category.try(:display_name), price_path(price), remote: true %>
|
10
|
+
</td>
|
11
|
+
|
12
|
+
<td class="hidden-sm hidden-xs"><%= price.price %></td>
|
13
|
+
|
14
|
+
<td class="hidden-sm hidden-xs"><%= display_publishable_status(price) %></td>
|
15
|
+
|
16
|
+
<% if display_manage_links? %>
|
17
|
+
<td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(price) %></td>
|
18
|
+
|
19
|
+
<td class="action-links hidden-sm hidden-xs" style="width:10%">
|
20
|
+
<%= display_manage_links(price, @current_user) %>
|
21
|
+
</td>
|
22
|
+
<% end %>
|
23
|
+
|
24
|
+
</tr>
|
@@ -0,0 +1,76 @@
|
|
1
|
+
<div id="div_price_show">
|
2
|
+
|
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(@price,
|
8
|
+
"cover_image.image.large.url",
|
9
|
+
upload_image_link(@price, :cover_image, nil ),
|
10
|
+
remove_image_link(@price, :cover_image, nil ),
|
11
|
+
image_options: {assoc_name: :cover_image }) %>
|
12
|
+
<%# else %>
|
13
|
+
<%#= display_image(@price, "cover_image.image.large.url", class: "img-inline", alt: @price.display_name) %>
|
14
|
+
<%# end %>
|
15
|
+
</div> -->
|
16
|
+
|
17
|
+
<div class="col-md-8 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
|
18
|
+
|
19
|
+
<%= theme_panel_heading(@price.title) %>
|
20
|
+
|
21
|
+
<%= theme_panel_description(@price.sub_title) %>
|
22
|
+
|
23
|
+
<%= theme_panel_sub_heading(@price.category.try(:display_name), "#") if @price.category %>
|
24
|
+
|
25
|
+
<%= clear_tag(10) %>
|
26
|
+
|
27
|
+
<%= display_publishable_status(@price) %>
|
28
|
+
|
29
|
+
<%= display_featured(@price) %>
|
30
|
+
|
31
|
+
<%= clear_tag(20) %>
|
32
|
+
|
33
|
+
<div class="table-responsive">
|
34
|
+
<table class="table table-striped table-condensed table-bordered mb-60">
|
35
|
+
<tbody>
|
36
|
+
|
37
|
+
<tr>
|
38
|
+
<th>ID</th><td><%= @price.id %></td>
|
39
|
+
</tr>
|
40
|
+
|
41
|
+
<tr>
|
42
|
+
<th>Status</th><td><%= @price.status %></td>
|
43
|
+
</tr>
|
44
|
+
|
45
|
+
<tr>
|
46
|
+
<th>Created At</th><td><%= @price.created_at.strftime("%m/%d/%Y - %H:%M:%S") if @price.created_at %></td>
|
47
|
+
</tr>
|
48
|
+
|
49
|
+
<tr>
|
50
|
+
<th>Updated At</th><td><%= @price.updated_at.strftime("%m/%d/%Y - %H:%M:%S") if @price.updated_at %></td>
|
51
|
+
</tr>
|
52
|
+
|
53
|
+
</tbody>
|
54
|
+
</table>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<%= clear_tag(20) %>
|
58
|
+
</div>
|
59
|
+
|
60
|
+
<% if display_manage_links? %>
|
61
|
+
<div class="col-md-4 col-sm-12 col-xs-12">
|
62
|
+
<%= display_manage_buttons(@price) %>
|
63
|
+
<%= display_publishable_buttons(@price) %>
|
64
|
+
<%= display_featurable_buttons(@price) %>
|
65
|
+
</div>
|
66
|
+
<% end %>
|
67
|
+
|
68
|
+
</div>
|
69
|
+
|
70
|
+
<div class="visible-sm visible-xs mb-50"></div>
|
71
|
+
|
72
|
+
<%= link_to "Close", "#", onclick: "closeGenericModal();", class: "btn btn-primary pull-right" %>
|
73
|
+
|
74
|
+
<%= clear_tag %>
|
75
|
+
|
76
|
+
</div>
|