kuppayam 0.2.2.pre.materialize → 0.2.3.pre.materialize
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/kuppayam/utilities.js +18 -0
- data/app/assets/stylesheets/general/frozen-tables.css +55 -0
- data/app/assets/stylesheets/general/handyoverlay.css +13 -0
- data/app/assets/stylesheets/kuppayam-materialize.css +2 -0
- data/app/assets/stylesheets/kuppayam-xenon.css +4 -0
- data/app/helpers/render_helper.rb +9 -0
- data/app/views/layouts/kuppayam/materialize/admin.html.erb +12 -0
- data/lib/kuppayam/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5989cc34e58716e632c69ab84dd4998b72ba20d69e957f1bf76758874af7116
|
4
|
+
data.tar.gz: 8f916b5ab4ec456b10c437d5b852a508f2c666554b7d26ff91191ec593229dd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecc13904113bce3c5f289a5c684f8922bf1d8b824f0bb934042331db707b6ed40687b658425777074f53a0d739c95a8e114731cfb74a68a64ea639ebc06f2e7c
|
7
|
+
data.tar.gz: a33cf4a7203818fce0244442bbffbb120ab3711d5d496576deb82d950fcf99aa82f8fc320d59125f8f60706173d33ee66b638c2b2d7c83ea841c6b1e735a90f3
|
@@ -13,6 +13,7 @@ function sendAjaxRequest(url, mType){
|
|
13
13
|
var imageUploadModalId = "div_modal_image_upload";
|
14
14
|
var genericModalId = "div_modal_generic";
|
15
15
|
var largeModalId = "div_modal_large";
|
16
|
+
var fullScreenModalId = "div_modal_fullscreen";
|
16
17
|
var messageModalId = "div_modal_message";
|
17
18
|
|
18
19
|
// Call this function by passing model Id, heading and a bodyContent.
|
@@ -75,6 +76,19 @@ function showLargeModal(heading, bodyContent, showHeading){
|
|
75
76
|
}, 1000);
|
76
77
|
}
|
77
78
|
|
79
|
+
// Call this function by passing model Id, heading and a bodyContent.
|
80
|
+
// it will pop up bootstrap 3 modal.
|
81
|
+
function showFullScreenModal(bodyContent){
|
82
|
+
$('#' + fullScreenModalId + ' div.modal-body-main').html(bodyContent);
|
83
|
+
$('#' + fullScreenModalId).modal({show: true, backdrop: 'static', keyboard: false});
|
84
|
+
$('#' + fullScreenModalId + ' .modal-header').hide();
|
85
|
+
|
86
|
+
setTimeout(function() {
|
87
|
+
$('#' + fullScreenModalId).modal('handleUpdate'); //Update backdrop on modal show
|
88
|
+
$('#' + fullScreenModalId).scrollTop(0); //reset modal to top position
|
89
|
+
}, 1000);
|
90
|
+
}
|
91
|
+
|
78
92
|
// Call this function by passing heading and a message.
|
79
93
|
// it will pop up bootstrap 3 modal which shows the heading and message as content body.
|
80
94
|
function showMessageModal(heading, message, modalId){
|
@@ -109,6 +123,10 @@ function closeLargeModal(modalId){
|
|
109
123
|
$('#' + largeModalId).modal('hide');
|
110
124
|
}
|
111
125
|
|
126
|
+
function closeFullScreenModal(){
|
127
|
+
$('#' + fullScreenModalId).modal('hide');
|
128
|
+
}
|
129
|
+
|
112
130
|
function closeMessageModal(modalId){
|
113
131
|
$('#' + messageModalId).modal('hide');
|
114
132
|
|
@@ -0,0 +1,55 @@
|
|
1
|
+
/* Style for Freezing Table Columns */
|
2
|
+
|
3
|
+
.table-scroll {
|
4
|
+
position:relative;
|
5
|
+
/*max-width:600px;*/
|
6
|
+
margin:auto;
|
7
|
+
overflow:hidden;
|
8
|
+
}
|
9
|
+
.table-wrap {
|
10
|
+
width:100%;
|
11
|
+
overflow:auto;
|
12
|
+
}
|
13
|
+
.table-scroll table {
|
14
|
+
width:100%;
|
15
|
+
margin:auto;
|
16
|
+
border-collapse:separate;
|
17
|
+
border-spacing:0;
|
18
|
+
}
|
19
|
+
.table-scroll th, .table-scroll td {
|
20
|
+
padding:5px 10px;
|
21
|
+
white-space:nowrap;
|
22
|
+
vertical-align:top;
|
23
|
+
}
|
24
|
+
|
25
|
+
.table-clone {
|
26
|
+
position:absolute;
|
27
|
+
top:0;
|
28
|
+
left:0;
|
29
|
+
min-width: 100% !important;
|
30
|
+
}
|
31
|
+
.table-clone th, .table-clone td {
|
32
|
+
visibility:hidden;
|
33
|
+
white-space: nowrap;
|
34
|
+
overflow: hidden;
|
35
|
+
text-overflow: ellipsis;
|
36
|
+
max-width: 80px !important;
|
37
|
+
}
|
38
|
+
|
39
|
+
.table-clone td, .table-clone th {
|
40
|
+
border-color:transparent
|
41
|
+
}
|
42
|
+
.table-clone tbody th {
|
43
|
+
visibility:visible;
|
44
|
+
color:red;
|
45
|
+
}
|
46
|
+
.table-clone .frozen {
|
47
|
+
background:#fafafa;
|
48
|
+
visibility:visible;
|
49
|
+
}
|
50
|
+
.table-clone thead, .table-clone tfoot{background:transparent;}
|
51
|
+
|
52
|
+
|
53
|
+
.table-full.table-clone thead tr > th.fixed-side:last-child {
|
54
|
+
width: 150px;
|
55
|
+
}
|
@@ -17,7 +17,11 @@
|
|
17
17
|
*= require xenon-forms.css
|
18
18
|
*= require xenon-components.css
|
19
19
|
*= require xenon-skins.css
|
20
|
+
|
20
21
|
*= require general/handycss.css
|
22
|
+
*= require general/handyoverlay.css
|
23
|
+
*= require general/frozen-tables.css
|
24
|
+
|
21
25
|
*= require xenon/custom.css
|
22
26
|
*= require wysihtml5/src/bootstrap-wysihtml5.css
|
23
27
|
*= require multiselect/css/multi-select.css
|
@@ -67,6 +67,18 @@
|
|
67
67
|
</div><!-- /.modal-dialog -->
|
68
68
|
</div><!-- /.modal -->
|
69
69
|
|
70
|
+
<div id="div_modal_fullscreen" class="modal">
|
71
|
+
<div class="modal-dialog modal-lg" style="width: 99% !important;margin:10px !important">
|
72
|
+
<div class="modal-content">
|
73
|
+
<div class="modal-header">
|
74
|
+
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
75
|
+
<h3 class="modal-title">Modal title</h3>
|
76
|
+
</div>
|
77
|
+
<div class="modal-body-main"></div>
|
78
|
+
</div><!-- /.modal-content -->
|
79
|
+
</div><!-- /.modal-dialog -->
|
80
|
+
</div><!-- /.modal -->
|
81
|
+
|
70
82
|
<div id="div_modal_message" class="modal fade">
|
71
83
|
<div class="modal-dialog">
|
72
84
|
<div class="modal-content">
|
data/lib/kuppayam/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kuppayam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3.pre.materialize
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kpvarma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -523,7 +523,9 @@ files:
|
|
523
523
|
- app/assets/javascripts/materialize/vendors.min.js
|
524
524
|
- app/assets/sketches/defaults.sketch
|
525
525
|
- app/assets/sketches/logo.sketch
|
526
|
+
- app/assets/stylesheets/general/frozen-tables.css
|
526
527
|
- app/assets/stylesheets/general/handycss.css
|
528
|
+
- app/assets/stylesheets/general/handyoverlay.css
|
527
529
|
- app/assets/stylesheets/jquery_and_family.css
|
528
530
|
- app/assets/stylesheets/kuppayam-materialize.css
|
529
531
|
- app/assets/stylesheets/kuppayam-xenon.css
|