caboose-cms 0.9.55 → 0.9.56
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/caboose/block_content_controller.js +1 -1
- data/app/assets/javascripts/caboose/block_content_controller_dragdrop.js +462 -0
- data/app/assets/javascripts/caboose/block_modal_controllers/block_modal_controller.js +3 -3
- data/app/assets/javascripts/caboose/model/bound_text.js +16 -0
- data/app/assets/stylesheets/caboose/admin_edit_page_content.scss +66 -0
- data/app/assets/stylesheets/caboose/admin_edit_page_content_dragdrop.scss +288 -0
- data/app/assets/stylesheets/caboose/icomoon_fonts.css +5 -3
- data/app/assets/stylesheets/caboose/modal_inline.css +4 -2
- data/app/controllers/caboose/blocks_controller.rb +60 -6
- data/app/controllers/caboose/sites_controller.rb +1 -0
- data/app/models/caboose/schema.rb +1 -0
- data/app/models/caboose/site.rb +1 -0
- data/app/views/caboose/pages/_new_block_header.html.erb +32 -11
- data/app/views/caboose/pages/admin_edit_content.html.erb +29 -57
- data/app/views/caboose/posts/admin_edit_content.html.erb +24 -54
- data/app/views/caboose/sites/admin_edit.html.erb +2 -0
- data/lib/caboose/version.rb +1 -1
- metadata +5 -2
@@ -162,6 +162,7 @@ module Caboose
|
|
162
162
|
when 'under_construction_html' then site.under_construction_html = value
|
163
163
|
when 'use_store' then site.use_store = value
|
164
164
|
when 'use_fonts' then site.use_fonts = value
|
165
|
+
when 'use_dragdrop' then site.use_dragdrop = value
|
165
166
|
when 'use_retargeting' then site.use_retargeting = value
|
166
167
|
when 'custom_css' then site.custom_css = value
|
167
168
|
when 'custom_js' then site.custom_js = value
|
@@ -735,6 +735,7 @@ class Caboose::Schema < Caboose::Utilities::Schema
|
|
735
735
|
[ :allow_self_registration , :boolean , { :default => false }],
|
736
736
|
[ :analytics_id , :string ],
|
737
737
|
[ :use_retargeting , :boolean , { :default => false }],
|
738
|
+
[ :use_dragdrop , :boolean , { :default => false }],
|
738
739
|
[ :date_js_updated , :datetime ],
|
739
740
|
[ :date_css_updated , :datetime ],
|
740
741
|
[ :default_layout_id , :integer ],
|
data/app/models/caboose/site.rb
CHANGED
@@ -1,13 +1,34 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
<%
|
2
|
+
btsm = Caboose::BlockTypeSiteMembership.where(:site_id => @site.id).pluq(:block_type_id)
|
3
|
+
@block_types = Caboose::BlockType.where(:parent_id => nil, :block_type_category_id => 2).where(:id => btsm).order(:description)
|
4
|
+
%>
|
5
|
+
|
6
|
+
<div class='icons' id='new_blocks_container2'>
|
7
|
+
<h4>Drag a block<br />onto the page.</h4>
|
7
8
|
<ul id='new_blocks'>
|
8
|
-
|
9
|
+
<li class='title'><span>Structure</span></li>
|
10
|
+
<li class='blocktype' id='new_block_3159_2' data-btid='3159' data-children='2'>
|
11
|
+
<span class='icon icon-insert-template'></span>
|
12
|
+
<span class='bname'>2 Column Row</span>
|
13
|
+
</li>
|
14
|
+
<li class='blocktype' id='new_block_3159_3' data-btid='3159' data-children='3'>
|
15
|
+
<span class='icon icon-insert-template'></span>
|
16
|
+
<span class='bname'>3 Column Row</span>
|
17
|
+
</li>
|
18
|
+
<li class='blocktype' id='new_block_3159_4' data-btid='3159' data-children='4'>
|
19
|
+
<span class='icon icon-insert-template'></span>
|
20
|
+
<span class='bname'>4 Column Row</span>
|
21
|
+
</li>
|
22
|
+
<li class='blocktype' id='new_block_3159_5' data-btid='3159' data-children='5'>
|
23
|
+
<span class='icon icon-insert-template'></span>
|
24
|
+
<span class='bname'>5 Column Row</span>
|
25
|
+
</li>
|
26
|
+
<li class='title'><span>Content</span></li>
|
27
|
+
<% @block_types.each do |block_type| %>
|
28
|
+
<li class='blocktype' id='new_block_<%= block_type.id %>' data-btid='<%= block_type.id %>'>
|
29
|
+
<span class='icon icon-<%= block_type.icon %>'></span>
|
30
|
+
<span class='bname'><%= block_type.description %></span>
|
31
|
+
</li>
|
32
|
+
<% end %>
|
9
33
|
</ul>
|
10
|
-
|
11
|
-
</div>
|
12
|
-
<ul id='blocks'></ul>
|
13
|
-
|
34
|
+
</div>
|
@@ -5,68 +5,26 @@
|
|
5
5
|
<% content_for :caboose_css do %>
|
6
6
|
<%= stylesheet_link_tag 'jquery-ui' %>
|
7
7
|
<%= stylesheet_link_tag 'caboose/admin_block_edit_image' %>
|
8
|
-
|
8
|
+
<% if @site && @site.use_dragdrop %>
|
9
|
+
<%= stylesheet_link_tag 'caboose/admin_edit_page_content_dragdrop' %>
|
10
|
+
<% else %>
|
11
|
+
<%= stylesheet_link_tag 'caboose/admin_edit_page_content' %>
|
12
|
+
<% end %>
|
9
13
|
<%= stylesheet_link_tag "caboose/modal_inline" %>
|
10
|
-
|
11
|
-
|
12
|
-
#tiny_header {
|
13
|
-
display: block;
|
14
|
-
color: #fff;
|
15
|
-
background-image: url(/assets/caboose/caboose_logo_small.png);
|
16
|
-
background-color: #000;
|
17
|
-
background-repeat: no-repeat;
|
18
|
-
background-position: right 0;
|
19
|
-
padding: 0 50px 0 10px;
|
20
|
-
position: absolute;
|
21
|
-
top: 0px;
|
22
|
-
right: 0px;
|
23
|
-
z-index: 100000;
|
24
|
-
border-left: #fff 1px solid;
|
25
|
-
border-bottom: #fff 1px solid;
|
26
|
-
}
|
27
|
-
#tiny_header a {
|
28
|
-
display: inline-block;
|
29
|
-
color: #fff;
|
30
|
-
padding: 16px 10px;
|
31
|
-
}
|
32
|
-
.block_over { background: #e3e3e3; }
|
33
|
-
.select_handle { display: none; }
|
34
|
-
.move_up_handle { display: none; }
|
35
|
-
.move_down_handle { display: none; }
|
36
|
-
.delete_handle { display: none; }
|
37
|
-
.duplicate_handle { display: none; }
|
38
|
-
.block_over > .select_handle { display: block; position: relative; z-index: 3; }
|
39
|
-
.block_over > .move_up_handle { display: block; position: relative; z-index: 3; }
|
40
|
-
.block_over > .move_down_handle { display: block; position: relative; z-index: 3; }
|
41
|
-
.block_over > .delete_handle { display: block; position: relative; z-index: 3; }
|
42
|
-
.block_over > .duplicate_handle { display: block; position: relative; z-index: 3; }
|
43
|
-
.block_over > .select_handle span { position: absolute; top: 0; right: 72px; width: 18px; height: 18px; background-color: #fff; border: #ccc 1px solid; }
|
44
|
-
.block_over > .move_up_handle span { position: absolute; top: 0; right: 36px; width: 18px; height: 18px; background-color: #fff; border: #ccc 1px solid; }
|
45
|
-
.block_over > .move_down_handle span { position: absolute; top: 0; right: 18px; width: 18px; height: 18px; background-color: #fff; border: #ccc 1px solid; }
|
46
|
-
.block_over > .delete_handle span { position: absolute; top: 0; right: 0px; width: 18px; height: 18px; background-color: #fff; border: #ccc 1px solid; }
|
47
|
-
.block_over > .duplicate_handle span { position: absolute; top: 0; right: 54px; width: 18px; height: 18px; background-color: #fff; border: #ccc 1px solid; }
|
48
|
-
|
49
|
-
.selected { background: #fff799; }
|
50
|
-
|
51
|
-
.new_block_link { position: relative; width: 100%; }
|
52
|
-
.new_block_link .line { position: absolute; top: -11px; width: 100%; height: 2px; background: transparent; }
|
53
|
-
.new_block_link a { position: absolute; top: -20px; left: 45%; background: transparent; color: transparent !important; display: block; padding: 4px 8px; }
|
54
|
-
|
55
|
-
.new_block_link_over { position: relative; width: 100%; }
|
56
|
-
.new_block_link_over .line { position: absolute; top: -11px; width: 100%; height: 2px; background: #ccc; }
|
57
|
-
.new_block_link_over a { position: absolute; top: -22px; left: 45%; color: #fff; background: #666; display: block; padding: 2px 4px; text-decoration: none; font-size: 12px; }
|
58
|
-
|
59
|
-
.caboose_note { padding: 10px 20px; background: #990000; color: #fff; font-size: 16px; }
|
60
|
-
|
61
|
-
</style>
|
14
|
+
<%= stylesheet_link_tag "caboose/icomoon_fonts" %>
|
62
15
|
<% end %>
|
63
16
|
|
64
17
|
<% content_for :caboose_js do %>
|
18
|
+
|
65
19
|
<%= javascript_include_tag 'jquery-ui' %>
|
66
20
|
<%= javascript_include_tag 'caboose/model/all' %>
|
67
21
|
<%= javascript_include_tag 'caboose/jquery-ui.drag-multiple.min.js' %>
|
68
22
|
<%= javascript_include_tag "caboose/clipboard" %>
|
23
|
+
<% if @site && @site.use_dragdrop %>
|
24
|
+
<%= javascript_include_tag 'caboose/block_content_controller_dragdrop' %>
|
25
|
+
<% else %>
|
69
26
|
<%= javascript_include_tag 'caboose/block_content_controller' %>
|
27
|
+
<% end %>
|
70
28
|
<%= javascript_include_tag "caboose/class" %>
|
71
29
|
<%= javascript_include_tag "caboose/modal_controller" %>
|
72
30
|
<%= javascript_include_tag "caboose/block_modal_controllers/block_modal_controller" %>
|
@@ -83,10 +41,24 @@ $(document).ready(function() {
|
|
83
41
|
$('body').append($('<div/>')
|
84
42
|
.attr('id', 'tiny_header')
|
85
43
|
.append($('<a/>').attr('href', '/admin/pages').html("< Back"))
|
86
|
-
.append($('<a/>').attr('href', '#').html('
|
87
|
-
|
88
|
-
.append($('<a/>').attr('href', '/admin/pages/<%= @page.id %>').html("Settings"))
|
89
|
-
|
44
|
+
.append($('<a/>').attr('href', '#').html('Custom Fields').click(function(e) { e.preventDefault(); caboose_modal_url('/admin/pages/<%= @page.id %>/custom-fields'); }))
|
45
|
+
// .append($('<a/>').attr('href', '/admin/pages/<%= @page.id %>/layout').html("Layout"))
|
46
|
+
.append($('<a/>').attr('href', '/admin/pages/<%= @page.id %>').html("Page Settings"))
|
47
|
+
.append($('<a/>').attr('href', '/<%= @page.uri %>').attr('target','_blank').text("View Page"))
|
48
|
+
);
|
49
|
+
|
50
|
+
<% if @site && @site.use_dragdrop %>
|
51
|
+
var html = "<%== (render :partial => 'caboose/pages/new_block_header').gsub( / *\n+/, '' ) %> ";
|
52
|
+
$('body').append($('<div/>')
|
53
|
+
.attr('id', 'block_sidebar')
|
54
|
+
.append(html)
|
55
|
+
);
|
56
|
+
$("#new_blocks li.blocktype").draggable({ revert: true, helper: 'clone', appendTo: 'body', zIndex: 999999, scroll: false, start: function(event, ui) {
|
57
|
+
$(".line.ui-droppable").addClass('dropzone'); }, stop: function(event, ui) { $(".line.ui-droppable").removeClass('dropzone'); } });
|
58
|
+
$('body').addClass('icons');
|
59
|
+
$('body').append($('<div/>').attr('id','caboose-loading').append( $('<div/>').addClass('table').append($('<div/>').addClass('table-cell').append('<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg id="loader" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" width="60px" height="60px" viewBox="0 0 128 128" xml:space="preserve"><g><path d="M64 0L40.08 21.9a10.98 10.98 0 0 0-5.05 8.75C34.37 44.85 64 60.63 64 60.63V0z" fill="#ffb118"/><path d="M128 64l-21.88-23.9a10.97 10.97 0 0 0-8.75-5.05C83.17 34.4 67.4 64 67.4 64H128z" fill="#80c141"/><path d="M63.7 69.73a110.97 110.97 0 0 1-5.04-20.54c-1.16-8.7.68-14.17.68-14.17h38.03s-4.3-.86-14.47 10.1c-3.06 3.3-19.2 24.58-19.2 24.58z" fill="#cadc28"/><path d="M64 128l23.9-21.88a10.97 10.97 0 0 0 5.05-8.75C93.6 83.17 64 67.4 64 67.4V128z" fill="#cf171f"/><path d="M58.27 63.7a110.97 110.97 0 0 1 20.54-5.04c8.7-1.16 14.17.68 14.17.68v38.03s.86-4.3-10.1-14.47c-3.3-3.06-24.58-19.2-24.58-19.2z" fill="#ec1b21"/><path d="M0 64l21.88 23.9a10.97 10.97 0 0 0 8.75 5.05C44.83 93.6 60.6 64 60.6 64H0z" fill="#018ed5"/><path d="M64.3 58.27a110.97 110.97 0 0 1 5.04 20.54c1.16 8.7-.68 14.17-.68 14.17H30.63s4.3.86 14.47-10.1c3.06-3.3 19.2-24.58 19.2-24.58z" fill="#00bbf2"/><path d="M69.73 64.34a111.02 111.02 0 0 1-20.55 5.05c-8.7 1.14-14.15-.7-14.15-.7V30.65s-.86 4.3 10.1 14.5c3.3 3.05 24.6 19.2 24.6 19.2z" fill="#f8f400"/><circle cx="64" cy="64" r="2.03"/><animateTransform attributeName="transform" type="rotate" from="0 64 64" to="-360 64 64" dur="2100ms" repeatCount="indefinite"></animateTransform></g></svg>').append('<h4>Loading...</h4>') ) ));
|
60
|
+
<% end %>
|
61
|
+
|
90
62
|
});
|
91
63
|
|
92
64
|
</script>
|
@@ -5,60 +5,13 @@
|
|
5
5
|
<% content_for :caboose_css do %>
|
6
6
|
<%= stylesheet_link_tag 'jquery-ui' %>
|
7
7
|
<%= stylesheet_link_tag 'caboose/admin_block_edit_image' %>
|
8
|
-
|
8
|
+
<% if @site && @site.use_dragdrop %>
|
9
|
+
<%= stylesheet_link_tag 'caboose/admin_edit_page_content_dragdrop' %>
|
10
|
+
<% else %>
|
11
|
+
<%= stylesheet_link_tag 'caboose/admin_edit_page_content' %>
|
12
|
+
<% end %>
|
9
13
|
<%= stylesheet_link_tag "caboose/modal_inline" %>
|
10
|
-
|
11
|
-
|
12
|
-
#tiny_header {
|
13
|
-
display: block;
|
14
|
-
color: #fff;
|
15
|
-
background-image: url(/assets/caboose/caboose_logo_small.png);
|
16
|
-
background-color: #000;
|
17
|
-
background-repeat: no-repeat;
|
18
|
-
background-position: right 0;
|
19
|
-
padding: 0 50px 0 10px;
|
20
|
-
position: absolute;
|
21
|
-
top: 0px;
|
22
|
-
right: 0px;
|
23
|
-
z-index: 100000;
|
24
|
-
border-left: #fff 1px solid;
|
25
|
-
border-bottom: #fff 1px solid;
|
26
|
-
}
|
27
|
-
#tiny_header a {
|
28
|
-
display: inline-block;
|
29
|
-
color: #fff;
|
30
|
-
padding: 16px 10px;
|
31
|
-
}
|
32
|
-
.block_over { background: #e3e3e3; }
|
33
|
-
.select_handle { display: none; }
|
34
|
-
.move_up_handle { display: none; }
|
35
|
-
.move_down_handle { display: none; }
|
36
|
-
.delete_handle { display: none; }
|
37
|
-
.duplicate_handle { display: none; }
|
38
|
-
.block_over > .select_handle { display: block; position: relative; }
|
39
|
-
.block_over > .move_up_handle { display: block; position: relative; }
|
40
|
-
.block_over > .move_down_handle { display: block; position: relative; }
|
41
|
-
.block_over > .delete_handle { display: block; position: relative; }
|
42
|
-
.block_over > .duplicate_handle { display: block; position: relative; }
|
43
|
-
.block_over > .select_handle span { position: absolute; top: 0; right: 72px; width: 18px; height: 18px; background-color: #fff; border: #ccc 1px solid; }
|
44
|
-
.block_over > .move_up_handle span { position: absolute; top: 0; right: 36px; width: 18px; height: 18px; background-color: #fff; border: #ccc 1px solid; }
|
45
|
-
.block_over > .move_down_handle span { position: absolute; top: 0; right: 18px; width: 18px; height: 18px; background-color: #fff; border: #ccc 1px solid; }
|
46
|
-
.block_over > .delete_handle span { position: absolute; top: 0; right: 0px; width: 18px; height: 18px; background-color: #fff; border: #ccc 1px solid; }
|
47
|
-
.block_over > .duplicate_handle span { position: absolute; top: 0; right: 54px; width: 18px; height: 18px; background-color: #fff; border: #ccc 1px solid; }
|
48
|
-
|
49
|
-
.selected { background: #fff799; }
|
50
|
-
|
51
|
-
.new_block_link { position: relative; width: 100%; }
|
52
|
-
.new_block_link .line { position: absolute; top: -11px; width: 100%; height: 2px; background: transparent; }
|
53
|
-
.new_block_link a { position: absolute; top: -20px; left: 45%; background: transparent; color: transparent !important; display: block; padding: 4px 8px; }
|
54
|
-
|
55
|
-
.new_block_link_over { position: relative; width: 100%; }
|
56
|
-
.new_block_link_over .line { position: absolute; top: -11px; width: 100%; height: 2px; background: #ccc; }
|
57
|
-
.new_block_link_over a { position: absolute; top: -22px; left: 45%; color: #fff; background: #666; display: block; padding: 2px 4px; text-decoration: none; font-size: 12px; }
|
58
|
-
|
59
|
-
.caboose_note { padding: 10px 20px; background: #990000; color: #fff; font-size: 16px; }
|
60
|
-
|
61
|
-
</style>
|
14
|
+
<%= stylesheet_link_tag "caboose/icomoon_fonts" %>
|
62
15
|
<% end %>
|
63
16
|
|
64
17
|
<% content_for :caboose_js do %>
|
@@ -66,7 +19,11 @@
|
|
66
19
|
<%= javascript_include_tag 'caboose/model/all' %>
|
67
20
|
<%= javascript_include_tag 'caboose/jquery-ui.drag-multiple.min.js' %>
|
68
21
|
<%= javascript_include_tag "caboose/clipboard" %>
|
22
|
+
<% if @site && @site.use_dragdrop %>
|
23
|
+
<%= javascript_include_tag 'caboose/block_content_controller_dragdrop' %>
|
24
|
+
<% else %>
|
69
25
|
<%= javascript_include_tag 'caboose/block_content_controller' %>
|
26
|
+
<% end %>
|
70
27
|
<%= javascript_include_tag "caboose/class" %>
|
71
28
|
<%= javascript_include_tag "caboose/modal_controller" %>
|
72
29
|
<%= javascript_include_tag "caboose/block_modal_controllers/block_modal_controller" %>
|
@@ -86,7 +43,20 @@ $(document).ready(function() {
|
|
86
43
|
.append($('<a/>').attr('href', '#').html('Post Options').click(function(e) { e.preventDefault(); caboose_modal_url('/admin/posts/<%= @post.id %>/custom-fields'); }))
|
87
44
|
.append($('<a/>').attr('href', '/admin/posts/<%= @post.id %>/layout').html("Layout"))
|
88
45
|
.append($('<a/>').attr('href', '/admin/posts/<%= @post.id %>').html("Settings"))
|
89
|
-
);
|
46
|
+
);
|
47
|
+
|
48
|
+
<% if @site && @site.use_dragdrop %>
|
49
|
+
var html = "<%== (render :partial => 'caboose/pages/new_block_header').gsub( / *\n+/, '' ) %> ";
|
50
|
+
$('body').append($('<div/>')
|
51
|
+
.attr('id', 'block_sidebar')
|
52
|
+
.append(html)
|
53
|
+
);
|
54
|
+
$("#new_blocks li.blocktype").draggable({ revert: true, helper: 'clone', appendTo: 'body', zIndex: 999999, scroll: false, start: function(event, ui) {
|
55
|
+
$(".line.ui-droppable").addClass('dropzone'); }, stop: function(event, ui) { $(".line.ui-droppable").removeClass('dropzone'); } });
|
56
|
+
$('body').addClass('icons');
|
57
|
+
$('body').append($('<div/>').attr('id','caboose-loading').append( $('<div/>').addClass('table').append($('<div/>').addClass('table-cell').append('<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg id="loader" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" width="60px" height="60px" viewBox="0 0 128 128" xml:space="preserve"><g><path d="M64 0L40.08 21.9a10.98 10.98 0 0 0-5.05 8.75C34.37 44.85 64 60.63 64 60.63V0z" fill="#ffb118"/><path d="M128 64l-21.88-23.9a10.97 10.97 0 0 0-8.75-5.05C83.17 34.4 67.4 64 67.4 64H128z" fill="#80c141"/><path d="M63.7 69.73a110.97 110.97 0 0 1-5.04-20.54c-1.16-8.7.68-14.17.68-14.17h38.03s-4.3-.86-14.47 10.1c-3.06 3.3-19.2 24.58-19.2 24.58z" fill="#cadc28"/><path d="M64 128l23.9-21.88a10.97 10.97 0 0 0 5.05-8.75C93.6 83.17 64 67.4 64 67.4V128z" fill="#cf171f"/><path d="M58.27 63.7a110.97 110.97 0 0 1 20.54-5.04c8.7-1.16 14.17.68 14.17.68v38.03s.86-4.3-10.1-14.47c-3.3-3.06-24.58-19.2-24.58-19.2z" fill="#ec1b21"/><path d="M0 64l21.88 23.9a10.97 10.97 0 0 0 8.75 5.05C44.83 93.6 60.6 64 60.6 64H0z" fill="#018ed5"/><path d="M64.3 58.27a110.97 110.97 0 0 1 5.04 20.54c1.16 8.7-.68 14.17-.68 14.17H30.63s4.3.86 14.47-10.1c3.06-3.3 19.2-24.58 19.2-24.58z" fill="#00bbf2"/><path d="M69.73 64.34a111.02 111.02 0 0 1-20.55 5.05c-8.7 1.14-14.15-.7-14.15-.7V30.65s-.86 4.3 10.1 14.5c3.3 3.05 24.6 19.2 24.6 19.2z" fill="#f8f400"/><circle cx="64" cy="64" r="2.03"/><animateTransform attributeName="transform" type="rotate" from="0 64 64" to="-360 64 64" dur="2100ms" repeatCount="indefinite"></animateTransform></g></svg>').append('<h4>Loading...</h4>') ) ));
|
58
|
+
<% end %>
|
59
|
+
|
90
60
|
});
|
91
61
|
|
92
62
|
</script>
|
@@ -13,6 +13,7 @@ user_ids = [] if user_ids.nil?
|
|
13
13
|
<p><div id='site_<%= @site.id %>_under_construction_html' ></div></p>
|
14
14
|
<p><div id='site_<%= @site.id %>_use_store' ></div></p>
|
15
15
|
<p><div id='site_<%= @site.id %>_use_fonts' ></div></p>
|
16
|
+
<p><div id='site_<%= @site.id %>_use_dragdrop' ></div></p>
|
16
17
|
<p><div id='site_<%= @site.id %>_allow_self_registration' ></div></p>
|
17
18
|
<p><div id='site_<%= @site.id %>_default_layout_id' ></div></p>
|
18
19
|
|
@@ -78,6 +79,7 @@ $(document).ready(function() {
|
|
78
79
|
{ name: 'under_construction_html' , nice_name: 'Under Construction HTML' , type: 'textarea' , value: <%= raw Caboose.json(@site.under_construction_html) %>, width: 600, height: 75 },
|
79
80
|
{ name: 'use_store' , nice_name: 'Enable Store' , type: 'checkbox' , value: <%= raw Caboose.json(@site.use_store ? true : false) %>, width: 400 },
|
80
81
|
{ name: 'use_fonts' , nice_name: 'Enable Fonts' , type: 'checkbox' , value: <%= raw Caboose.json(@site.use_fonts ? true : false) %>, width: 400 },
|
82
|
+
{ name: 'use_dragdrop' , nice_name: 'Enable Drag & Drop' , type: 'checkbox' , value: <%= raw Caboose.json(@site.use_dragdrop ? true : false) %>, width: 400 },
|
81
83
|
{ name: 'allow_self_registration' , nice_name: 'Allow Self Registration' , type: 'checkbox' , value: <%= raw Caboose.json(@site.allow_self_registration ? true : false) %>, width: 400 },
|
82
84
|
{ name: 'default_layout_id' , nice_name: 'Default Layout' , type: 'select' , value: <%= raw Caboose.json(@site.default_layout_id) %>, width: 600, options_url: "/admin/sites/<%= @site.id %>/default-layout-options" }
|
83
85
|
]
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.56
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -540,6 +540,7 @@ files:
|
|
540
540
|
- app/assets/javascripts/caboose/assets_controller.js
|
541
541
|
- app/assets/javascripts/caboose/authorize.net.js
|
542
542
|
- app/assets/javascripts/caboose/block_content_controller.js
|
543
|
+
- app/assets/javascripts/caboose/block_content_controller_dragdrop.js
|
543
544
|
- app/assets/javascripts/caboose/block_media_controller.js
|
544
545
|
- app/assets/javascripts/caboose/block_modal_controllers/block_modal_controller.js
|
545
546
|
- app/assets/javascripts/caboose/block_modal_controllers/button_modal_controller.js
|
@@ -707,6 +708,8 @@ files:
|
|
707
708
|
- app/assets/stylesheets/caboose/admin_assets_index.css
|
708
709
|
- app/assets/stylesheets/caboose/admin_block_edit_image.css.scss
|
709
710
|
- app/assets/stylesheets/caboose/admin_crumbtrail.css.scss
|
711
|
+
- app/assets/stylesheets/caboose/admin_edit_page_content.scss
|
712
|
+
- app/assets/stylesheets/caboose/admin_edit_page_content_dragdrop.scss
|
710
713
|
- app/assets/stylesheets/caboose/admin_main.css
|
711
714
|
- app/assets/stylesheets/caboose/admin_media_index.css.scss
|
712
715
|
- app/assets/stylesheets/caboose/admin_new_block.css
|