Commit 859e9ba847cf31a58d12eec8fd99babb8544fa15
1 parent
d6508a9a
Exists in
master
and in
29 other branches
rails3: rename rhtml from display_content plugin
Showing
4 changed files
with
45 additions
and
45 deletions
Show diff stats
plugins/display_content/views/box_organizer/_choose_by_content_type.html.erb
0 → 100644
@@ -0,0 +1,15 @@ | @@ -0,0 +1,15 @@ | ||
1 | +<%= label :block, :types, _('Display content types:'), :class => 'formlabel' %> | ||
2 | +<div class="content_types"> | ||
3 | + <% @block.first_content_types.each do |type| %> | ||
4 | + <%= labelled_form_field check_box(:block, 'types', {:multiple => true}, type.name, nil) + _(type.short_description), '' %> | ||
5 | + <% end %> | ||
6 | + <% if !@block.more_content_types.empty? %> | ||
7 | + <a href="#" onclick="jQuery('.content_types .more').toggle(); return false;"><%= _('more') %></a> | ||
8 | + <% end %> | ||
9 | + <div class="more" style="display: none"> | ||
10 | + <% @block.more_content_types.each do |type| %> | ||
11 | + <%= labelled_form_field check_box(:block, 'types', {:multiple => true}, type.name, nil) + _(type.short_description), '' %> | ||
12 | + <% end %> | ||
13 | + </div> | ||
14 | +</div> | ||
15 | + |
plugins/display_content/views/box_organizer/_choose_by_content_type.rhtml
@@ -1,15 +0,0 @@ | @@ -1,15 +0,0 @@ | ||
1 | -<%= label :block, :types, _('Display content types:'), :class => 'formlabel' %> | ||
2 | -<div class="content_types"> | ||
3 | - <% @block.first_content_types.each do |type| %> | ||
4 | - <%= labelled_form_field check_box(:block, 'types', {:multiple => true}, type.name, nil) + _(type.short_description), '' %> | ||
5 | - <% end %> | ||
6 | - <% if !@block.more_content_types.empty? %> | ||
7 | - <a href="#" onclick="jQuery('.content_types .more').toggle(); return false;"><%= _('more') %></a> | ||
8 | - <% end %> | ||
9 | - <div class="more" style="display: none"> | ||
10 | - <% @block.more_content_types.each do |type| %> | ||
11 | - <%= labelled_form_field check_box(:block, 'types', {:multiple => true}, type.name, nil) + _(type.short_description), '' %> | ||
12 | - <% end %> | ||
13 | - </div> | ||
14 | -</div> | ||
15 | - |
plugins/display_content/views/box_organizer/_choose_directly.html.erb
0 → 100644
@@ -0,0 +1,30 @@ | @@ -0,0 +1,30 @@ | ||
1 | +<div id="display_content"> | ||
2 | +</div> | ||
3 | + | ||
4 | +<div class="display_folder_children"> | ||
5 | + <%= labelled_form_field check_box(:block, :display_folder_children) + _('Dinamically load children of selected folders'), '' %> | ||
6 | +</div> | ||
7 | + | ||
8 | +<script type="text/javascript" > | ||
9 | + | ||
10 | +jQuery_1_8_3("#display_content").jstree({ | ||
11 | + plugins : ["themes","json_data", "checkbox"], | ||
12 | + checkbox : { | ||
13 | + real_checkboxes : true, | ||
14 | + real_checkboxes_names : function (n) { return [("block[checked_nodes[" + n.attr('node_id') + "]]"), 1]; } | ||
15 | + }, | ||
16 | + themes : {"theme" : "classic", "icons" : true, "url": "/plugins/display_content/javascripts/jstree/themes/classic/style.css"}, | ||
17 | + json_data : { | ||
18 | + ajax : { | ||
19 | + url : '<%= url_for @block.url_params %>', | ||
20 | + async: true, | ||
21 | + data : function (m) { | ||
22 | + return m.attr ? {"id" : m.attr("node_id")} : {}; | ||
23 | + } | ||
24 | + } | ||
25 | + } | ||
26 | +}); | ||
27 | + | ||
28 | +jQuery( "#sortable" ).sortable(); | ||
29 | + | ||
30 | +</script> |
plugins/display_content/views/box_organizer/_choose_directly.rhtml
@@ -1,30 +0,0 @@ | @@ -1,30 +0,0 @@ | ||
1 | -<div id="display_content"> | ||
2 | -</div> | ||
3 | - | ||
4 | -<div class="display_folder_children"> | ||
5 | - <%= labelled_form_field check_box(:block, :display_folder_children) + _('Dinamically load children of selected folders'), '' %> | ||
6 | -</div> | ||
7 | - | ||
8 | -<script type="text/javascript" > | ||
9 | - | ||
10 | -jQuery_1_8_3("#display_content").jstree({ | ||
11 | - plugins : ["themes","json_data", "checkbox"], | ||
12 | - checkbox : { | ||
13 | - real_checkboxes : true, | ||
14 | - real_checkboxes_names : function (n) { return [("block[checked_nodes[" + n.attr('node_id') + "]]"), 1]; } | ||
15 | - }, | ||
16 | - themes : {"theme" : "classic", "icons" : true, "url": "/plugins/display_content/javascripts/jstree/themes/classic/style.css"}, | ||
17 | - json_data : { | ||
18 | - ajax : { | ||
19 | - url : '<%= url_for @block.url_params %>', | ||
20 | - async: true, | ||
21 | - data : function (m) { | ||
22 | - return m.attr ? {"id" : m.attr("node_id")} : {}; | ||
23 | - } | ||
24 | - } | ||
25 | - } | ||
26 | -}); | ||
27 | - | ||
28 | -jQuery( "#sortable" ).sortable(); | ||
29 | - | ||
30 | -</script> |