dhatu 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/dhatu/sections_controller.rb +19 -1
- data/app/views/dhatu/pages/_index.html.erb +1 -1
- data/app/views/dhatu/sections/_index.html.erb +20 -6
- data/app/views/dhatu/sections/_show.html.erb +2 -2
- data/app/views/dhatu/sections/create.js.erb +76 -0
- data/app/views/dhatu/sections/destroy.js.erb +32 -0
- data/app/views/dhatu/sections/edit.js.erb +21 -0
- data/app/views/dhatu/sections/index.js.erb +29 -0
- data/app/views/dhatu/sections/new.js.erb +21 -0
- data/app/views/dhatu/sections/row.js.erb +49 -0
- data/app/views/dhatu/sections/show.js.erb +17 -0
- data/app/views/dhatu/sections/update.js.erb +73 -0
- data/app/views/layouts/kuppayam/_sidebar.html.erb +6 -2
- data/lib/dhatu/version.rb +1 -1
- metadata +16 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 772976e588fc8350ad7f5d811b3bcdfd66c5b94ddb4b1bb6ae5509a6e9c53942
|
4
|
+
data.tar.gz: ccf828b3ff63233d9f804594804fff61f14a1ce3f26180fa8b29cdf7cd673a7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0eb0a29894e4d1a4a10c02eeab83c4d1ccaaa1d16caf8f0ed364f4ef17d8545660c0e4319c324ab1ee747ba1e404a9a19510392f01e48f5a11b48c442680d673
|
7
|
+
data.tar.gz: 208b25447aa574358c8aef658bf6ca53c7d15970c5d1fde29a292cb970338c5c65401f159acc08ca087b4b920233c0bf5fa02e3876614c930c337706ce450e6a
|
@@ -77,6 +77,24 @@ module Dhatu
|
|
77
77
|
# table uses html tables and feed uses div based boxes
|
78
78
|
layout: :feed,
|
79
79
|
|
80
|
+
# Mention all checkbox fields so that it will resource controller will set that value to be false when the update action is called
|
81
|
+
# if @resource_options[:checkbox_fields] && @resource_options[:checkbox_fields].any?
|
82
|
+
# @resource_options[:checkbox_fields].each do |field|
|
83
|
+
# @r_object.write_attribute(field, false)
|
84
|
+
# end
|
85
|
+
# end
|
86
|
+
# This is a tricky solution to update bolean fields which are shown as checkbox.
|
87
|
+
checkbox_fields: [
|
88
|
+
:enable_title,
|
89
|
+
:enable_sub_title,
|
90
|
+
:enable_short_description,
|
91
|
+
:enable_long_description,
|
92
|
+
:enable_button_one,
|
93
|
+
:enable_button_two,
|
94
|
+
:enable_cover_image,
|
95
|
+
:enable_gallery_images
|
96
|
+
],
|
97
|
+
|
80
98
|
# "/kuppayam/workflows/default"
|
81
99
|
#
|
82
100
|
# Default partial opens show and form partial according to the model_size configuration
|
@@ -91,7 +109,7 @@ module Dhatu
|
|
91
109
|
|
92
110
|
# Rendering Paths
|
93
111
|
view_path: "dhatu/sections",
|
94
|
-
js_view_path: "/
|
112
|
+
js_view_path: "dhatu/sections",
|
95
113
|
|
96
114
|
# Additional Configurations
|
97
115
|
load_rich_text_editor: true,
|
@@ -17,13 +17,27 @@
|
|
17
17
|
</div>
|
18
18
|
<% end %>
|
19
19
|
|
20
|
-
<div class="row mt-
|
20
|
+
<div class="row mt-10">
|
21
21
|
<div class="col-md-12">
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
<% else %>
|
22
|
+
<% if page.sections.empty? %>
|
23
|
+
<p id="p_section_empty_message_for_page_<%= page.id %>" class="ml-30"> You have not added any sections for this page. Click on the below button to add one. </p>
|
24
|
+
<% end %>
|
26
25
|
<%= theme_button('Add a Section', 'plus', dhatu.new_section_path(page_id: page), classes: "btn btn-success btn-xs ml-30 mb-5", btn_type: "info") if @current_user.super_admin? %>
|
27
|
-
|
26
|
+
|
27
|
+
<% if page.feature %>
|
28
|
+
<%
|
29
|
+
begin
|
30
|
+
url = url_for(page.feature.name.constantize)
|
31
|
+
rescue
|
32
|
+
url = nil
|
33
|
+
end
|
34
|
+
%>
|
35
|
+
<% if page.sections.any? %>
|
36
|
+
<p class="mt-60 ml-30"> Go to <%= page.feature.display_name %> section to edit rest of the contents on this page. </p>
|
37
|
+
<% else %>
|
38
|
+
<p class="mt-60 ml-30"> Go to <%= page.feature.display_name %> section to edit the contents on this page. </p>
|
39
|
+
<% end %>
|
40
|
+
<%= theme_button("Click Here to go to 'Manage #{page.feature.display_name}'", 'list', url, classes: "btn btn-primary btn-xs ml-30 mb-5", btn_type: "default", remote: false) if url %>
|
41
|
+
<% end %>
|
28
42
|
</div>
|
29
43
|
</div>
|
@@ -30,14 +30,14 @@
|
|
30
30
|
<% if @section.enable_title %>
|
31
31
|
<div class="col-sm-12 mb-40">
|
32
32
|
<div class="item-title">Title</div>
|
33
|
-
<div class="item-detail"><%= @section.title %></div>
|
33
|
+
<div class="item-detail"><%= raw @section.title %></div>
|
34
34
|
</div>
|
35
35
|
<% end %>
|
36
36
|
|
37
37
|
<% if @section.enable_sub_title %>
|
38
38
|
<div class="col-sm-12 mb-40">
|
39
39
|
<div class="item-title">Sub Title</div>
|
40
|
-
<div class="item-detail"><%= @section.sub_title.blank? ? "-" : @section.sub_title %></div>
|
40
|
+
<div class="item-detail"><%= @section.sub_title.blank? ? "-" : raw(@section.sub_title) %></div>
|
41
41
|
</div>
|
42
42
|
<% end %>
|
43
43
|
</div>
|
@@ -0,0 +1,76 @@
|
|
1
|
+
<%
|
2
|
+
item_id = "#div_#{@resource_options[:item_name]}_#{@r_object.try(:id)}"
|
3
|
+
parent_id = "#div_#{@resource_options[:item_name]}_list_for_page_#{@r_object.page_id}"
|
4
|
+
show_id = "#div_#{@resource_options[:item_name]}_show"
|
5
|
+
%>
|
6
|
+
|
7
|
+
<% if @r_object.errors.blank? %>
|
8
|
+
|
9
|
+
<%
|
10
|
+
locals = {@resource_options[:item_name].to_sym => @r_object, i: -1}
|
11
|
+
if @row_partial_locals && @row_partial_locals.is_a?(Hash) && !@row_partial_locals.empty?
|
12
|
+
locals.merge!(@row_partial_locals)
|
13
|
+
end
|
14
|
+
%>
|
15
|
+
|
16
|
+
// Inserting the row on top of the table and highlighting it
|
17
|
+
$("<%= parent_id %>").prepend("<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/row", locals: locals)) %>");
|
18
|
+
$("<%= item_id %>").css("background-color", "#fffddd");
|
19
|
+
$("#p_section_empty_message_for_page_<%= @r_object.page_id %>").hide();
|
20
|
+
|
21
|
+
<% if @resource_options[:show_modal_after_create] %>
|
22
|
+
|
23
|
+
// Showing the saved data in the modal
|
24
|
+
var heading = "<%= raw @r_object.try(:display_name) %>";
|
25
|
+
var bodyContent = "<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/show")) %>";
|
26
|
+
<% if @resource_options[:show_model_size] == :generic %>
|
27
|
+
showGenericModal(heading, bodyContent, true);
|
28
|
+
<% elsif @resource_options[:show_model_size] == :large %>
|
29
|
+
showLargeModal(heading, bodyContent, true);
|
30
|
+
<% end %>
|
31
|
+
|
32
|
+
<% else %>
|
33
|
+
// Closing the modal if it is opened
|
34
|
+
<% if @resource_options[:form_model_size] == :generic %>
|
35
|
+
closeGenericModal();
|
36
|
+
<% elsif @resource_options[:form_model_size] == :large %>
|
37
|
+
closeLargeModal();
|
38
|
+
<% end %>
|
39
|
+
<% end %>
|
40
|
+
|
41
|
+
// Showing Growl Like Message
|
42
|
+
notifySuccess("<%= escape_javascript(@notification[:title]) %>", "<%= escape_javascript(@notification[:message]) %>");
|
43
|
+
|
44
|
+
<% else %>
|
45
|
+
|
46
|
+
// Reload the form with errors
|
47
|
+
var heading = "Add an <%= @resource_options[:collection_name] %>";
|
48
|
+
var bodyContent = "<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/form")) %>";
|
49
|
+
<% if @resource_options[:form_model_size] == :generic %>
|
50
|
+
showGenericModal(heading, bodyContent, true);
|
51
|
+
<% elsif @resource_options[:form_model_size] == :large %>
|
52
|
+
showLargeModal(heading, bodyContent, true);
|
53
|
+
<% end %>
|
54
|
+
|
55
|
+
// Show Main Error Message on the form
|
56
|
+
<% error_message = content_tag(:div, I18n.t('errors.errors_highlighted'), class: "alert alert-danger mt-20") %>
|
57
|
+
$("#<%= @resource_options[:item_name] %>_form_error").html("<%= escape_javascript(error_message) %>");
|
58
|
+
|
59
|
+
<% if @resource_options[:load_rich_text_editor] %>
|
60
|
+
// Initialize WYSIHTML Editor
|
61
|
+
$(".wysihtml5").wysihtml5(
|
62
|
+
{"stylesheets": '/assets/wysiwyg-color.css'}
|
63
|
+
);
|
64
|
+
<% end %>
|
65
|
+
|
66
|
+
<% if @resource_options[:tagsinput] %>
|
67
|
+
// Initialize WYSIHTML Editor
|
68
|
+
$('input.kuppayam-tagsinput').tagsinput();
|
69
|
+
<% end %>
|
70
|
+
|
71
|
+
// Showing Growl Like Message
|
72
|
+
notifyError("<%= escape_javascript(@notification[:title]) %>", "<%= escape_javascript(raw(@notification[:message])) %>");
|
73
|
+
|
74
|
+
<% end %>
|
75
|
+
|
76
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<%
|
2
|
+
if @resource_options[:layout] == :table
|
3
|
+
item_id = "#tr_#{@resource_options[:item_name]}_#{@r_object.id}"
|
4
|
+
elsif @resource_options[:layout] == :feed
|
5
|
+
item_id = "#div_#{@resource_options[:item_name]}_#{@r_object.id}"
|
6
|
+
end
|
7
|
+
%>
|
8
|
+
|
9
|
+
<% if @destroyed %>
|
10
|
+
|
11
|
+
// Removing the item from the list
|
12
|
+
$("<%= item_id %>").remove();
|
13
|
+
|
14
|
+
// Closing the modal if it is opened
|
15
|
+
<% if @resource_options[:show_model_size] == :generic %>
|
16
|
+
closeGenericModal();
|
17
|
+
<% elsif @resource_options[:show_model_size] == :large %>
|
18
|
+
closeLargeModal();
|
19
|
+
<% end %>
|
20
|
+
|
21
|
+
// Showing Growl Like Message
|
22
|
+
notifySuccess("<%= escape_javascript(@notification[:title]) %>", "<%= escape_javascript(@notification[:message]) %>");
|
23
|
+
|
24
|
+
<% else %>
|
25
|
+
|
26
|
+
// Show the error in a modal
|
27
|
+
showMessageModal("<%= escape_javascript(@notification[:title]) %>", "<%= escape_javascript(@notification[:message]) %>");
|
28
|
+
|
29
|
+
// Showing Growl Like Message
|
30
|
+
notifyError("<%= escape_javascript(@notification[:title]) %>", "<%= escape_javascript(@notification[:message]) %>");
|
31
|
+
|
32
|
+
<% end %>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// Load the form
|
2
|
+
var heading = "Edit '<%= raw @r_object.try(:display_name) %>'";
|
3
|
+
var bodyContent = "<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/form")) %>";
|
4
|
+
<% if @resource_options[:form_model_size] == :generic %>
|
5
|
+
showGenericModal(heading, bodyContent, true);
|
6
|
+
<% elsif @resource_options[:form_model_size] == :large %>
|
7
|
+
showLargeModal(heading, bodyContent, true);
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
// Initialize WYSIHTML Editor
|
11
|
+
<% if @resource_options[:load_rich_text_editor] %>
|
12
|
+
$(".wysihtml5").wysihtml5(
|
13
|
+
{"stylesheets": '/assets/wysiwyg-color.css'}
|
14
|
+
);
|
15
|
+
<% end %>
|
16
|
+
|
17
|
+
// Initialize WYSIHTML Editor
|
18
|
+
<% if @resource_options[:tagsinput] %>
|
19
|
+
$('input.kuppayam-tagsinput').tagsinput();
|
20
|
+
<% end %>
|
21
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<%
|
2
|
+
if @resource_options[:layout] == :table
|
3
|
+
list_id = "#div_#{@resource_options[:item_name]}_index"
|
4
|
+
elsif @resource_options[:layout] == :feed
|
5
|
+
list_id = "#div_#{@resource_options[:item_name]}_list"
|
6
|
+
end
|
7
|
+
%>
|
8
|
+
|
9
|
+
// Close Modal if it is opened
|
10
|
+
<% if @resource_options[:show_model_size] == "generic" %>
|
11
|
+
closeGenericModal();
|
12
|
+
<% elsif @resource_options[:show_model_size] == "large" %>
|
13
|
+
closeLargeModal();
|
14
|
+
<% end %>
|
15
|
+
|
16
|
+
<% if @r_objects.any? %>
|
17
|
+
<%
|
18
|
+
if @row_partial_locals && @row_partial_locals.is_a?(Hash) && !@row_partial_locals.empty?
|
19
|
+
locals = @row_partial_locals
|
20
|
+
else
|
21
|
+
locals = {}
|
22
|
+
end
|
23
|
+
%>
|
24
|
+
// Refresh the list
|
25
|
+
$("<%= list_id %>").html("<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/index", locals: locals)) %>");
|
26
|
+
<% else %>
|
27
|
+
var noResultsText = "<%= escape_javascript(theme_panel_message(I18n.translate('success.no_results_found')))%>";
|
28
|
+
$("<%= list_id %>").html(noResultsText);
|
29
|
+
<% end %>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// Load the form
|
2
|
+
var heading = "Add <%= @resource_options[:item_name].to_s.titleize %>";
|
3
|
+
var bodyContent = "<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/form")) %>";
|
4
|
+
|
5
|
+
<% if @resource_options[:form_model_size] == :generic %>
|
6
|
+
showGenericModal(heading, bodyContent, true);
|
7
|
+
<% elsif @resource_options[:form_model_size] == :large %>
|
8
|
+
showLargeModal(heading, bodyContent, true);
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
// Initialize WYSIHTML Editor
|
12
|
+
<% if @resource_options[:load_rich_text_editor] %>
|
13
|
+
$(".wysihtml5").wysihtml5(
|
14
|
+
{"stylesheets": '/assets/wysiwyg-color.css'}
|
15
|
+
);
|
16
|
+
<% end %>
|
17
|
+
|
18
|
+
// Initialize WYSIHTML Editor
|
19
|
+
<% if @resource_options[:tagsinput] %>
|
20
|
+
$('input.kuppayam-tagsinput').tagsinput();
|
21
|
+
<% end %>
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<%
|
2
|
+
if @resource_options[:layout] == :table
|
3
|
+
item_id = "#tr_#{@resource_options[:item_name]}_#{@r_object.id}"
|
4
|
+
elsif @resource_options[:layout] == :feed
|
5
|
+
item_id = "#div_#{@resource_options[:item_name]}_#{@r_object.id}"
|
6
|
+
end
|
7
|
+
show_id = "#div_#{@resource_options[:item_name]}_show"
|
8
|
+
%>
|
9
|
+
|
10
|
+
<% if @r_object && @r_object.errors.blank? %>
|
11
|
+
|
12
|
+
<%
|
13
|
+
locals = {@resource_options[:item_name].to_sym => @r_object, i: -1}
|
14
|
+
if @row_partial_locals && @row_partial_locals.is_a?(Hash) && !@row_partial_locals.empty?
|
15
|
+
locals.merge!(@row_partial_locals)
|
16
|
+
end
|
17
|
+
%>
|
18
|
+
|
19
|
+
// Updating the edited row and highlighting it
|
20
|
+
$("<%= item_id %>").replaceWith("<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/row", locals: locals)) %>");
|
21
|
+
$("<%= item_id %>").css("background-color", "#fffddd");
|
22
|
+
|
23
|
+
<% if @resource_options[:show_modal_after_update] %>
|
24
|
+
// Refresh the modal content if it is open
|
25
|
+
$("<%= show_id %>").replaceWith("<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/show")) %>")
|
26
|
+
<% else %>
|
27
|
+
// Closing the modal if it is opened
|
28
|
+
<% if @resource_options[:form_model_size] == :generic %>
|
29
|
+
closeGenericModal();
|
30
|
+
<% elsif @resource_options[:form_model_size] == :large %>
|
31
|
+
closeLargeModal();
|
32
|
+
<% end %>
|
33
|
+
<% end %>
|
34
|
+
|
35
|
+
// Closing the modal
|
36
|
+
showAndHideModals();
|
37
|
+
|
38
|
+
// Showing Growl Like Message
|
39
|
+
notifySuccess("<%= @notification[:title] %>", "<%= @notification[:message] %>");
|
40
|
+
|
41
|
+
<% else %>
|
42
|
+
|
43
|
+
// Updating the row which got errored and highlighting it
|
44
|
+
$("<%= item_id %>").css("background-color", "#ffefef");
|
45
|
+
|
46
|
+
// Showing Growl Like Message
|
47
|
+
notifyError("<%= escape_javascript(@notification[:title]) %>", "<%= escape_javascript(raw(@notification[:message])) %>");
|
48
|
+
|
49
|
+
<% end %>
|
@@ -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
|
+
<% if @resource_options[:show_model_size] == :generic %>
|
7
|
+
showGenericModal(heading, bodyContent, true);
|
8
|
+
<% elsif @resource_options[:show_model_size] == :large %>
|
9
|
+
showLargeModal(heading, bodyContent, true);
|
10
|
+
<% end %>
|
11
|
+
|
12
|
+
<% else %>
|
13
|
+
|
14
|
+
// Showing Growl Like Message
|
15
|
+
notifyError("<%= escape_javascript(@notification[:title]) %>", "<%= escape_javascript(raw(@notification[:message])) %>");
|
16
|
+
|
17
|
+
<% end %>
|
@@ -0,0 +1,73 @@
|
|
1
|
+
<%
|
2
|
+
if @resource_options[:layout] == :table
|
3
|
+
item_id = "#tr_#{@resource_options[:item_name]}_#{@r_object.id}"
|
4
|
+
elsif @resource_options[:layout] == :feed
|
5
|
+
item_id = "#div_#{@resource_options[:item_name]}_#{@r_object.id}"
|
6
|
+
end
|
7
|
+
%>
|
8
|
+
|
9
|
+
<% if @r_object.errors.blank? %>
|
10
|
+
|
11
|
+
<%
|
12
|
+
locals = {@resource_options[:item_name].to_sym => @r_object, i: -1}
|
13
|
+
if @row_partial_locals && @row_partial_locals.is_a?(Hash) && !@row_partial_locals.empty?
|
14
|
+
locals.merge!(@row_partial_locals)
|
15
|
+
end
|
16
|
+
%>
|
17
|
+
|
18
|
+
// Updating the edited row and highlighting it
|
19
|
+
$("<%= item_id %>").replaceWith("<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/row", locals: locals)) %>");
|
20
|
+
$("<%= item_id %>").css("background-color", "#fffddd");
|
21
|
+
|
22
|
+
// Showing the saved data in the modal
|
23
|
+
<% if @resource_options[:show_modal_after_update] %>
|
24
|
+
var heading = "<%= raw @r_object.try(:display_name) %>";
|
25
|
+
var bodyContent = "<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/show")) %>";
|
26
|
+
<% if @resource_options[:show_model_size] == :generic %>
|
27
|
+
showGenericModal(heading, bodyContent, true);
|
28
|
+
<% elsif @resource_options[:show_model_size] == :large %>
|
29
|
+
showLargeModal(heading, bodyContent, true);
|
30
|
+
<% end %>
|
31
|
+
<% else %>
|
32
|
+
// Closing the modal if it is opened
|
33
|
+
<% if @resource_options[:form_model_size] == :generic %>
|
34
|
+
closeGenericModal();
|
35
|
+
<% elsif @resource_options[:form_model_size] == :large %>
|
36
|
+
closeLargeModal();
|
37
|
+
<% end %>
|
38
|
+
<% end %>
|
39
|
+
|
40
|
+
// Showing Growl Like Message
|
41
|
+
notifySuccess("<%= @notification[:title] %>", "<%= @notification[:message] %>");
|
42
|
+
|
43
|
+
<% else %>
|
44
|
+
|
45
|
+
// Reload the form with errors
|
46
|
+
var heading = "Edit '<%= raw @r_object.try(:display_name) %>'";
|
47
|
+
var bodyContent = "<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/form")) %>";
|
48
|
+
<% if @resource_options[:form_model_size] == :generic %>
|
49
|
+
showGenericModal(heading, bodyContent, true);
|
50
|
+
<% elsif @resource_options[:form_model_size] == :large %>
|
51
|
+
showLargeModal(heading, bodyContent, true);
|
52
|
+
<% end %>
|
53
|
+
|
54
|
+
// Show Main Error Message on the form
|
55
|
+
<% error_message = content_tag(:div, I18n.t('errors.errors_highlighted'), class: "alert alert-danger mt-20") %>
|
56
|
+
$("#<%= @resource_options[:item_name] %>_form_error").html("<%= escape_javascript(error_message) %>");
|
57
|
+
|
58
|
+
// Initialize WYSIHTML Editor
|
59
|
+
<% if @resource_options[:load_rich_text_editor] %>
|
60
|
+
$(".wysihtml5").wysihtml5(
|
61
|
+
{"stylesheets": '/assets/wysiwyg-color.css'}
|
62
|
+
);
|
63
|
+
<% end %>
|
64
|
+
|
65
|
+
// Initialize WYSIHTML Editor
|
66
|
+
<% if @resource_options[:tagsinput] %>
|
67
|
+
$('input.kuppayam-tagsinput').tagsinput();
|
68
|
+
<% end %>
|
69
|
+
|
70
|
+
// Showing Growl Like Message
|
71
|
+
notifyError("<%= escape_javascript(@notification[:title]) %>", "<%= escape_javascript(raw(@notification[:message])) %>");
|
72
|
+
|
73
|
+
<% end %>
|
@@ -165,8 +165,12 @@
|
|
165
165
|
<header class="logo-env">
|
166
166
|
<!-- logo -->
|
167
167
|
<div class="logo">
|
168
|
-
<a href="/" class="logo-expanded"
|
169
|
-
|
168
|
+
<a href="/" class="logo-expanded">
|
169
|
+
<%= image_tag("logo-white.png", width: "180") %>
|
170
|
+
</a>
|
171
|
+
<a href="/" class="logo-collapsed">
|
172
|
+
<%= image_tag("logo-small.png", width: "40") %>
|
173
|
+
</a>
|
170
174
|
</div>
|
171
175
|
|
172
176
|
<!-- This will toggle the mobile menu and will be visible only on mobile devices -->
|
data/lib/dhatu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dhatu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kpvarma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -107,7 +107,7 @@ dependencies:
|
|
107
107
|
version: '0.1'
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.1.
|
110
|
+
version: 0.1.39
|
111
111
|
type: :runtime
|
112
112
|
prerelease: false
|
113
113
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -117,7 +117,7 @@ dependencies:
|
|
117
117
|
version: '0.1'
|
118
118
|
- - ">="
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: 0.1.
|
120
|
+
version: 0.1.39
|
121
121
|
- !ruby/object:Gem::Dependency
|
122
122
|
name: pattana
|
123
123
|
requirement: !ruby/object:Gem::Requirement
|
@@ -127,7 +127,7 @@ dependencies:
|
|
127
127
|
version: '0.1'
|
128
128
|
- - ">="
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: 0.1.
|
130
|
+
version: 0.1.25
|
131
131
|
type: :runtime
|
132
132
|
prerelease: false
|
133
133
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -137,7 +137,7 @@ dependencies:
|
|
137
137
|
version: '0.1'
|
138
138
|
- - ">="
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version: 0.1.
|
140
|
+
version: 0.1.25
|
141
141
|
- !ruby/object:Gem::Dependency
|
142
142
|
name: usman
|
143
143
|
requirement: !ruby/object:Gem::Requirement
|
@@ -147,7 +147,7 @@ dependencies:
|
|
147
147
|
version: '0.3'
|
148
148
|
- - ">="
|
149
149
|
- !ruby/object:Gem::Version
|
150
|
-
version: 0.3.
|
150
|
+
version: 0.3.38
|
151
151
|
type: :runtime
|
152
152
|
prerelease: false
|
153
153
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -157,7 +157,7 @@ dependencies:
|
|
157
157
|
version: '0.3'
|
158
158
|
- - ">="
|
159
159
|
- !ruby/object:Gem::Version
|
160
|
-
version: 0.3.
|
160
|
+
version: 0.3.38
|
161
161
|
- !ruby/object:Gem::Dependency
|
162
162
|
name: bcrypt
|
163
163
|
requirement: !ruby/object:Gem::Requirement
|
@@ -538,7 +538,15 @@ files:
|
|
538
538
|
- app/views/dhatu/sections/_index.html.erb
|
539
539
|
- app/views/dhatu/sections/_row.html.erb
|
540
540
|
- app/views/dhatu/sections/_show.html.erb
|
541
|
+
- app/views/dhatu/sections/create.js.erb
|
542
|
+
- app/views/dhatu/sections/destroy.js.erb
|
543
|
+
- app/views/dhatu/sections/edit.js.erb
|
541
544
|
- app/views/dhatu/sections/index.html.erb
|
545
|
+
- app/views/dhatu/sections/index.js.erb
|
546
|
+
- app/views/dhatu/sections/new.js.erb
|
547
|
+
- app/views/dhatu/sections/row.js.erb
|
548
|
+
- app/views/dhatu/sections/show.js.erb
|
549
|
+
- app/views/dhatu/sections/update.js.erb
|
542
550
|
- app/views/dhatu/sections_old/_form.html.erb
|
543
551
|
- app/views/dhatu/sections_old/_index.html.erb
|
544
552
|
- app/views/dhatu/sections_old/_row.html.erb
|