it-logica-application-backbone 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/views/helpers/_build_table.html.erb +49 -37
- data/it-logica-application-backbone.gemspec +2 -2
- metadata +15 -15
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.6
|
@@ -1,63 +1,75 @@
|
|
1
1
|
<div class="page">
|
2
2
|
<%= render :partial => "/helpers/build_table_text_description", :locals => {:settings => settings} %>
|
3
3
|
</div>
|
4
|
-
|
5
|
-
|
4
|
+
<% if settings[:display_method]=="print_by_checkboxes" %>
|
5
|
+
<div class="print-window-buttons" style="float:right">
|
6
|
+
<a class="print_page_functionality print-window-print-dialog-button" href="" onclick="window.print()">
|
7
|
+
<i class="icon-print"></i>Tisknout</a>
|
8
|
+
<a class="print_page_functionality print-window-close-button" href="" onclick="window.close();">
|
9
|
+
<i class="icon-remove"></i>Zavřít</a>
|
10
|
+
</div>
|
11
|
+
<div style="clear:both"></div>
|
6
12
|
|
7
|
-
|
13
|
+
<% end %>
|
8
14
|
|
15
|
+
<% if settings[:display_method].blank? %>
|
16
|
+
<div class="tabs">
|
17
|
+
<%= yield :table_form_tabs %>
|
9
18
|
|
10
|
-
|
19
|
+
<div class="info">
|
20
|
+
|
21
|
+
|
22
|
+
<% if settings[:checkboxes] %>
|
11
23
|
<span>Vybraných řádků: <strong>
|
12
24
|
<span title="Počet označených řádků na všech stránkách" id="<%= settings[:form_id]+ "_active_checkboxes_count" %>">
|
13
25
|
<%= !settings[:params]["checkbox_pool"].blank? ? settings[:params]["checkbox_pool"].split(",").count : 0 %>
|
14
26
|
</span>
|
15
27
|
</strong>
|
16
28
|
</span>
|
17
|
-
|
29
|
+
<% end %>
|
18
30
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
31
|
+
<% if settings[:display_method].blank? %>
|
32
|
+
<% if settings[:checkboxes] %>
|
33
|
+
<script type="text/javascript">
|
34
|
+
function submit_in_new_window(form_id) {
|
35
|
+
var form_original = $("#" + form_id);
|
24
36
|
|
25
|
-
|
26
|
-
|
37
|
+
// create new form by cloning without events
|
38
|
+
var form = form_original.clone(false)
|
27
39
|
|
28
|
-
|
29
|
-
|
40
|
+
// disabling ajax
|
41
|
+
form.removeAttr("data-remote");
|
30
42
|
|
31
|
-
|
32
|
-
|
33
|
-
|
43
|
+
form.attr("target", "_blank");
|
44
|
+
form.attr("action", form_original.attr("action"));
|
45
|
+
form.attr("style", "display: none;");
|
34
46
|
|
35
|
-
|
36
|
-
|
47
|
+
// need to append it to browser html, otherwise it wont send in many browsers (with clone it works only with chrome)
|
48
|
+
form_original.after(form);
|
37
49
|
|
38
|
-
|
39
|
-
|
50
|
+
//Create an input type dynamically.
|
51
|
+
var element = document.createElement("input");
|
40
52
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
53
|
+
//Assign different attributes to the element.
|
54
|
+
element.setAttribute("type", "hidden");
|
55
|
+
element.setAttribute("value", "print_by_checkboxes");
|
56
|
+
element.setAttribute("name", "___display_method___");
|
45
57
|
|
46
|
-
|
47
|
-
|
58
|
+
//Append the element in form
|
59
|
+
form.append(element);
|
48
60
|
|
49
|
-
|
50
|
-
|
51
|
-
|
61
|
+
form.submit();
|
62
|
+
form.remove();
|
63
|
+
}
|
52
64
|
|
53
|
-
|
54
|
-
|
55
|
-
|
65
|
+
</script>
|
66
|
+
<a href="#" class="btn" onclick="submit_in_new_window('<%= settings[:form_id] %>'); return false;"><i class="icon-print"></i>
|
67
|
+
Tisknout výběr</a>
|
68
|
+
<% end %>
|
56
69
|
<% end %>
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
70
|
+
</div>
|
71
|
+
</div>
|
72
|
+
<% end %>
|
61
73
|
<%= form_tag settings[:filter_path], :html => {:'data-type' => 'html'}, :method => 'POST', :class => 'well dataGrid', :remote => true, :id => settings[:form_id] do |f| %>
|
62
74
|
<% if settings[:display_method].blank? %>
|
63
75
|
<% if content_for?(:table_form) %>
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "it-logica-application-backbone"
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ladas"]
|
12
|
-
s.date = "2012-10-
|
12
|
+
s.date = "2012-10-25"
|
13
13
|
s.description = "longer description of your gem"
|
14
14
|
s.email = "ladislav.smola@it-logica.cz"
|
15
15
|
s.extra_rdoc_files = [
|
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.1.
|
4
|
+
version: 1.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: htmlentities
|
16
|
-
requirement: &
|
16
|
+
requirement: &83123760 !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: *83123760
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: shoulda
|
27
|
-
requirement: &
|
27
|
+
requirement: &83123200 !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: *83123200
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rdoc
|
38
|
-
requirement: &
|
38
|
+
requirement: &83122610 !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: *83122610
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler
|
49
|
-
requirement: &
|
49
|
+
requirement: &83500180 !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: *83500180
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: jeweler
|
60
|
-
requirement: &
|
60
|
+
requirement: &83499820 !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: *83499820
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: simplecov
|
71
|
-
requirement: &
|
71
|
+
requirement: &83499390 !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: *83499390
|
80
80
|
description: longer description of your gem
|
81
81
|
email: ladislav.smola@it-logica.cz
|
82
82
|
executables: []
|
@@ -599,7 +599,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
599
599
|
version: '0'
|
600
600
|
segments:
|
601
601
|
- 0
|
602
|
-
hash:
|
602
|
+
hash: 326661299
|
603
603
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
604
604
|
none: false
|
605
605
|
requirements:
|