it-logica-application-backbone 1.0.35 → 1.0.36
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/assets/javascripts/backbone_js/ladas_jstree_methods.js.coffee +2 -2
- data/app/assets/stylesheets/backbone_css/overrides_of_lach_design.css.scss +47 -0
- data/app/views/helpers/_build_table.html.erb +43 -28
- data/app/views/helpers/_build_table_pager.html.erb +10 -5
- data/app/views/helpers/_build_table_wrapper.html.erb +4 -4
- data/it-logica-application-backbone.gemspec +2 -1
- metadata +15 -14
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.36
|
@@ -19,13 +19,13 @@ class JstreeMethods
|
|
19
19
|
element.show("fast")
|
20
20
|
element.parent("li").removeClass("jstree-closed")
|
21
21
|
element.parent("li").addClass("jstree-open")
|
22
|
-
element.parent("li").children("button").html("-")
|
22
|
+
element.parent("li").children("button").html('<i class="icon-minus-sign"></i>')
|
23
23
|
|
24
24
|
@hide: (element) ->
|
25
25
|
element.hide("fast")
|
26
26
|
element.parent("li").removeClass("jstree-open")
|
27
27
|
element.parent("li").addClass("jstree-closed")
|
28
|
-
element.parent("li").children("button").html("
|
28
|
+
element.parent("li").children("button").html('<i class="icon-plus-sign"></i>')
|
29
29
|
|
30
30
|
|
31
31
|
window.JstreeMethods = JstreeMethods
|
@@ -0,0 +1,47 @@
|
|
1
|
+
#intranet_left_menu button.left_menu_plus_button {
|
2
|
+
position: absolute;
|
3
|
+
top: 5px;
|
4
|
+
right: 5px;
|
5
|
+
z-index: 20;
|
6
|
+
display: inline;
|
7
|
+
margin: 0px;
|
8
|
+
|
9
|
+
|
10
|
+
}
|
11
|
+
|
12
|
+
#intranet_left_menu li.hasSubmenu {
|
13
|
+
position: relative
|
14
|
+
}
|
15
|
+
|
16
|
+
|
17
|
+
li.active > a {
|
18
|
+
background-color: #9C8866 !important;
|
19
|
+
border-color: #9CCB3B !important;
|
20
|
+
color: white !important;
|
21
|
+
}
|
22
|
+
|
23
|
+
|
24
|
+
.dataGrid table {
|
25
|
+
margin: 0;
|
26
|
+
}
|
27
|
+
|
28
|
+
|
29
|
+
.icon-shopping-card {
|
30
|
+
background-position: -359px -118px;
|
31
|
+
width: 15px;
|
32
|
+
height: 15px;
|
33
|
+
}
|
34
|
+
|
35
|
+
.full-width {
|
36
|
+
width: 100%;
|
37
|
+
}
|
38
|
+
|
39
|
+
.summarize_all .value, .summarize_page .value {
|
40
|
+
display: block;
|
41
|
+
}
|
42
|
+
|
43
|
+
|
44
|
+
.tabs {
|
45
|
+
min-height: 49px;
|
46
|
+
}
|
47
|
+
|
@@ -1,33 +1,48 @@
|
|
1
|
-
<%= yield :above_table_form %>
|
2
|
-
|
3
1
|
<%= render :partial => "/helpers/build_table_text_description", :locals => {:settings => settings} %>
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
2
|
+
|
3
|
+
<div class="tabs">
|
4
|
+
<%= yield :table_form_tabs %>
|
5
|
+
|
6
|
+
<div class="info">
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
<span>Vybraných řádků: <strong>
|
11
|
+
<span title="Počet označených řádků na všech stránkách" id="<%= settings[:form_id]+ "_active_checkboxes_count" %>">
|
12
|
+
<%= !settings[:params]["checkbox_pool"].blank? ? settings[:params]["checkbox_pool"].split(",").count : 0 %>
|
13
|
+
</span>
|
14
|
+
</strong>
|
15
|
+
</span>
|
16
|
+
|
17
|
+
<% if settings[:display_method].blank? %>
|
18
|
+
<% if settings[:checkboxes] %>
|
19
|
+
<script type="text/javascript">
|
20
|
+
function submit_in_new_window(form_id) {
|
21
|
+
var form_original = $("#" + form_id);
|
22
|
+
var form = form_original.clone(true, true);
|
23
|
+
form.attr("data-remote", "false");
|
24
|
+
form.attr("target", "_blank");
|
25
|
+
|
26
|
+
//Create an input type dynamically.
|
27
|
+
var element = document.createElement("input");
|
28
|
+
|
29
|
+
//Assign different attributes to the element.
|
30
|
+
element.setAttribute("type", "hidden");
|
31
|
+
element.setAttribute("value", "print_by_checkboxes");
|
32
|
+
element.setAttribute("name", "___display_method___");
|
33
|
+
|
34
|
+
|
35
|
+
//Append the element in form
|
36
|
+
form.append(element);
|
37
|
+
form.submit();
|
38
|
+
}
|
39
|
+
|
40
|
+
</script>
|
41
|
+
<a href="#" class="btn" onclick="submit_in_new_window('<%= settings[:form_id] %>'); return false;"><i class="icon-print"></i> Tisknout výběr</a>
|
42
|
+
<% end %>
|
29
43
|
<% end %>
|
30
|
-
|
44
|
+
</div>
|
45
|
+
</div>
|
31
46
|
|
32
47
|
<%= form_tag settings[:filter_path], :html => {:'data-type' => 'html'}, :method => 'POST', :class => 'well dataGrid', :remote => true, :id => settings[:form_id] do |f| %>
|
33
48
|
<% if settings[:display_method].blank? %>
|
@@ -8,11 +8,16 @@
|
|
8
8
|
|
9
9
|
<% if settings[:data_paginate].total_pages > 1 %>
|
10
10
|
<div id="<%= settings[:form_id] %>_pagination" class="paging <%= settings[:form_id] %>_pager">
|
11
|
-
<
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
<div class="goToPage">
|
12
|
+
<input type="text" class="own_page" value="<%= settings[:params].blank? ? 1 : settings[:params]["page"] %>"
|
13
|
+
placeholder="Strana"
|
14
|
+
onkeypress="paginate_by_enter('<%= settings[:form_id] %>', this, event);">
|
15
|
+
<button class="btn" onclick='$("#" + "<%= settings[:form_id] %>" + "_page").val($(this).prev("input").val()); $("#" + "<%= settings[:form_id] %>").submit(); return false;'>Přejít</button>
|
16
|
+
</div>
|
17
|
+
<div class="pages">
|
18
|
+
<%= will_paginate settings[:data_paginate], {:container => false, :inner_window => 1, :outer_window => 1} %>
|
19
|
+
<%= page_entries_info settings[:data_paginate] %>
|
20
|
+
</div>
|
16
21
|
</div>
|
17
22
|
|
18
23
|
<% end %>
|
@@ -17,10 +17,10 @@
|
|
17
17
|
<!--<a onclick="CheckboxPool.clear_by_form_id('<%#= settings[:form_id] %>')" class="btn uncheck">Odznačit vše</a>-->
|
18
18
|
<!--</div>-->
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
20
|
+
<!--<span title="Počet označených řádků na všech stránkách" id="<%#= settings[:form_id]+ "_active_checkboxes_count" %>">-->
|
21
|
+
<!--<%#= !settings[:params]["checkbox_pool"].blank? ? settings[:params]["checkbox_pool"].split(",").count : 0 %>-->
|
22
|
+
<!--</span>-->
|
23
|
+
<!--<br/>-->
|
24
24
|
<input type="checkbox" title="Označit/odznačit vše na stránce" onclick="CheckboxPool.check_or_uncheck_page(this, '<%= settings[:form_id] %>')" id=""/>
|
25
25
|
|
26
26
|
<!--<div class="checkboxes_menu">-->
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "it-logica-application-backbone"
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.36"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ladas"]
|
@@ -448,6 +448,7 @@ Gem::Specification.new do |s|
|
|
448
448
|
"app/assets/stylesheets/backbone_css/jquery_datetime_picker.css.scss",
|
449
449
|
"app/assets/stylesheets/backbone_css/jquery_ui.css.scss",
|
450
450
|
"app/assets/stylesheets/backbone_css/left_menu.css.scss",
|
451
|
+
"app/assets/stylesheets/backbone_css/overrides_of_lach_design.css.scss",
|
451
452
|
"app/assets/stylesheets/backbone_css/tables.css.scss",
|
452
453
|
"app/assets/stylesheets/backbone_css/themes/default-rtl/d.gif",
|
453
454
|
"app/assets/stylesheets/backbone_css/themes/default-rtl/d.png",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: it-logica-application-backbone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.36
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-09-13 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: htmlentities
|
16
|
-
requirement: &
|
16
|
+
requirement: &79745460 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *79745460
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: shoulda
|
27
|
-
requirement: &
|
27
|
+
requirement: &79744890 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *79744890
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rdoc
|
38
|
-
requirement: &
|
38
|
+
requirement: &79744420 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '3.12'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *79744420
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler
|
49
|
-
requirement: &
|
49
|
+
requirement: &79744090 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.1.0
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *79744090
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: jeweler
|
60
|
-
requirement: &
|
60
|
+
requirement: &79743750 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 1.8.4
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *79743750
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: simplecov
|
71
|
-
requirement: &
|
71
|
+
requirement: &79743460 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *79743460
|
80
80
|
description: longer description of your gem
|
81
81
|
email: ladislav.smola@it-logica.cz
|
82
82
|
executables: []
|
@@ -516,6 +516,7 @@ files:
|
|
516
516
|
- app/assets/stylesheets/backbone_css/jquery_datetime_picker.css.scss
|
517
517
|
- app/assets/stylesheets/backbone_css/jquery_ui.css.scss
|
518
518
|
- app/assets/stylesheets/backbone_css/left_menu.css.scss
|
519
|
+
- app/assets/stylesheets/backbone_css/overrides_of_lach_design.css.scss
|
519
520
|
- app/assets/stylesheets/backbone_css/tables.css.scss
|
520
521
|
- app/assets/stylesheets/backbone_css/themes/default-rtl/d.gif
|
521
522
|
- app/assets/stylesheets/backbone_css/themes/default-rtl/d.png
|
@@ -577,7 +578,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
577
578
|
version: '0'
|
578
579
|
segments:
|
579
580
|
- 0
|
580
|
-
hash: -
|
581
|
+
hash: -586799923
|
581
582
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
582
583
|
none: false
|
583
584
|
requirements:
|