kuppayam 0.2.9.pre.materialize → 0.2.10.pre.materialize

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b375621dc28a7d58cb43a601a82caa6f3ea55fa24d0b4882bc98a1de92f0b5fe
4
- data.tar.gz: 28c7c6210f930359c7cbcbaeb9bb8cd69339241a1f2391da6c90a8eeb0768dc3
3
+ metadata.gz: 54220296da730bc2b7a7851401cdc3145a748516d486d8f044b0f2c6dcd3f3a8
4
+ data.tar.gz: ef1814612a9c6edb38d5fc6bc8031949764e3fa22ce21a45d06c61a2bd81ebeb
5
5
  SHA512:
6
- metadata.gz: bcc3b595a3d09a503496913cd9360aa70d9dcdbca0fcacc73c6a70ce1a068f81e61d1f7d081c3f53837aa93ee3bcc44503291af239312c6ce5fd052221b5bbf3
7
- data.tar.gz: 2992de631d6f7eaf0338c1d15df43c631f70afc78e97a071478c6a4a040277d7f8efe59f9717145be2d7601e9d78184f3f20d46a3175d4f00486347f7cd6ced9
6
+ metadata.gz: ff64062d4a1e7bd17ec97137e79a45c2d4d0ad6a757a80914df3095b8fd51008392279a4015408a973f0f8e854dfdc7ff3214ef0cf5a41ebe27a737a0aee30a5
7
+ data.tar.gz: fa382bfee3e3afc7d81e42c6f5a44a3df615f825e03536ebb5d2e0304560d0b74ac03c48275820aad5d6bb1ab341bf54b9258b4c78468271b7f10e172c557fa2
@@ -24,153 +24,3 @@
24
24
  // require tagsinput/bootstrap-tagsinput.min.js
25
25
  //= require_self
26
26
 
27
-
28
-
29
- var treeView = document.getElementsByClassName("treeview"),
30
- tree = new VanillaTree( treeView, {
31
- });
32
-
33
-
34
-
35
- tree.add({
36
- label: 'Konica Minolta',
37
- // id: 'a',
38
- id: 'KonicaMinolta',
39
- opened: true
40
- });
41
-
42
- tree.add({
43
- label: 'UAE',
44
- parent: 'KonicaMinolta',
45
- // id: 'a.a',
46
- id: 'KM-UAE',
47
- opened: true,
48
- selected: true
49
- });
50
-
51
- tree.add({
52
- label: 'Dubai',
53
- parent: 'KM-UAE',
54
- // id: 'a.a',
55
- id: 'KM-Dubai',
56
- opened: true,
57
- selected: false
58
- });
59
- tree.add({
60
- label: 'Juma Al Majid',
61
- parent: 'KM-Dubai'
62
- });
63
- tree.add({
64
- label: 'ACS',
65
- parent: 'KM-Dubai'
66
- });
67
-
68
-
69
- tree.add({
70
- label: 'Abu Dhabi',
71
- parent: 'KM-UAE',
72
- // id: 'a.a',
73
- id: 'KM-AbuDhabi',
74
- opened: true,
75
- selected: false
76
- });
77
- tree.add({
78
- label: 'Al Mulla Group',
79
- parent: 'KM-AbuDhabi'
80
- });
81
- tree.add({
82
- label: 'MHD',
83
- parent: 'KM-AbuDhabi'
84
- });
85
-
86
-
87
- tree.add({
88
- label: 'Sharjah',
89
- parent: 'KM-UAE',
90
- // id: 'a.a',
91
- id: 'KM-Sharjah',
92
- opened: true,
93
- selected: false
94
- });
95
- tree.add({
96
- label: 'HCL',
97
- parent: 'KM-Sharjah'
98
- });
99
- tree.add({
100
- label: 'A&P',
101
- parent: 'KM-Sharjah'
102
- });
103
-
104
-
105
-
106
-
107
-
108
- tree.add({
109
- label: 'Saudi Arabia',
110
- parent: 'KonicaMinolta',
111
- // id: 'a.a',
112
- id: 'KM-SaudiArabia',
113
- opened: true,
114
- selected: false
115
- });
116
-
117
-
118
- tree.add({
119
- label: 'Riyadh',
120
- parent: 'KM-SaudiArabia',
121
- // id: 'a.a',
122
- id: 'KM-Riyadh',
123
- opened: true,
124
- selected: false
125
- });
126
-
127
- tree.add({
128
- label: 'ABC',
129
- parent: 'KM-Riyadh'
130
- });
131
-
132
-
133
- tree.add({
134
- label: 'Jeddah',
135
- parent: 'KM-SaudiArabia',
136
- // id: 'a.a',
137
- id: 'KM-Jeddah',
138
- opened: true,
139
- selected: false
140
- });
141
-
142
- tree.add({
143
- label: 'XYC',
144
- parent: 'KM-Jeddah'
145
- });
146
-
147
-
148
-
149
-
150
-
151
-
152
- // // -----------------------------
153
-
154
-
155
-
156
- treeView.addEventListener('vtree-open', function(evt) {
157
- info.innerHTML = evt.detail.id + ' is opened';
158
- });
159
-
160
- treeView.addEventListener('vtree-close', function(evt) {
161
- info.innerHTML = evt.detail.id + ' is closed';
162
- });
163
-
164
- treeView.addEventListener('vtree-select', function(evt) {
165
- info.innerHTML = evt.detail.id + ' is selected';
166
- });
167
- $(document).ready(function(){
168
- $('.tooltip-btn').tooltip();
169
-
170
- $('#printing_device_color').change(function() {
171
- $('.color-input').hide();
172
- $('.' + $(this).val()).show();
173
- });
174
-
175
- });
176
-
@@ -371,10 +371,10 @@ border-top: 0px !important;
371
371
  .light-bg{
372
372
  background-color: #ebebeb;
373
373
  color: #474747;
374
- font-size: 14px;
375
- border-radius: 6px;
376
- margin-right: 20px;
377
- padding: 3px 10px;
374
+ font-size: 13px;
375
+ border-radius: 3px;
376
+ margin-right: 10px;
377
+ padding: 1px 7px;
378
378
  }
379
379
 
380
380
 
@@ -786,3 +786,5 @@ border-top: 0px !important;
786
786
  /*form Accodian*/
787
787
 
788
788
 
789
+ .res-show{display: none;}
790
+
@@ -4383,6 +4383,8 @@ table td[class*=col-],table th[class*=col-]{
4383
4383
  min-height:.01%
4384
4384
  }
4385
4385
  @media screen and (max-width:767px){
4386
+
4387
+
4386
4388
  .table-responsive{
4387
4389
  width:100%;
4388
4390
  margin-bottom:17.25px;
@@ -8244,6 +8246,28 @@ aside.sidebar .user-logged-in:after{
8244
8246
  z-index:-1
8245
8247
  }
8246
8248
  @media only screen and (max-width:992px){
8249
+
8250
+ .res-show{display: block !important;}
8251
+ .res-hide{display: none !important;}
8252
+
8253
+ img.device-select-img {
8254
+ height: 100px;
8255
+ }
8256
+ .staff-top-heading {
8257
+ font-size: 18px;
8258
+ display: inline-block;
8259
+ margin-top: 8px;
8260
+ color: #007ec6;
8261
+ width: 80%;
8262
+ white-space: nowrap;
8263
+ overflow: hidden;
8264
+ text-overflow: ellipsis;
8265
+ }
8266
+ .sw-theme-arrows>ul.step-anchor>li>a {
8267
+ padding: 10px 0 10px 35px !important;
8268
+ font-size: 14px;
8269
+ }
8270
+ .res-min-height{height: 320px;overflow: auto;}
8247
8271
  footer,main{
8248
8272
  padding-left:0
8249
8273
  }
@@ -24161,7 +24185,7 @@ table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTabl
24161
24185
  }
24162
24186
  table.dataTable thead .sorting:after,table.dataTable thead .sorting_asc:after,table.dataTable thead .sorting_desc:after{
24163
24187
  position:absolute;
24164
- top:8px;
24188
+ top:1px;
24165
24189
  right:8px;
24166
24190
  display:block;
24167
24191
  font-family:'Glyphicons Halflings';
@@ -24395,3 +24419,73 @@ div.FixedHeader_Cloned table{
24395
24419
  line-height: 20px;
24396
24420
  text-align: center;
24397
24421
  }
24422
+
24423
+
24424
+ @media only screen and (max-width: 640px) {
24425
+
24426
+ .res-height .well{
24427
+ max-height: 250px;
24428
+ overflow: scroll;
24429
+ }
24430
+ .hidden-mobile{
24431
+ display: none;
24432
+ }
24433
+ }
24434
+
24435
+ /* Small Device : 590px. */
24436
+ @media only screen and (max-width: 540px) {
24437
+ .res-xs-full-width{
24438
+ width: 100%;float: none;
24439
+ text-align: center;
24440
+ }
24441
+ .res-login-detais{
24442
+ float: none;
24443
+ width: 315px;
24444
+ margin: 0 auto;
24445
+ }
24446
+ .res-xs-full-width .staff-top-heading {
24447
+ margin: 0px;
24448
+ margin-top: 5px;
24449
+ }
24450
+ .res-login-detais .user-name{
24451
+ overflow: hidden;
24452
+ white-space: nowrap;
24453
+ text-overflow: ellipsis;
24454
+ max-width: 111px;
24455
+ }
24456
+ .main-content.p-15.pt-35.res-main-container {
24457
+ padding-top: 63px !important;
24458
+ }
24459
+
24460
+ .nav-tabs > li {
24461
+ float: none;
24462
+ margin-bottom: 3px;
24463
+ width: 100%;
24464
+ border: 1px solid #e5e5e5;
24465
+ border-bottom: 1px solid #e5e5e5;
24466
+ text-align: center;
24467
+ border-radius: 0px;
24468
+ }
24469
+
24470
+ .nav-tabs>li.active {
24471
+ border: 1px solid #e5e5e5;
24472
+ border-bottom: 1px solid #e5e5e5 !important;
24473
+ width: 100%;
24474
+ text-align: center;
24475
+ border-radius: 0px;
24476
+ background-color: #fff !important;
24477
+ }
24478
+ .main-content.p-15.pt-35.res-main-container .col-xs-6.col-sm-6.col-md-3, .main-content.p-15.pt-35.res-main-container .col-xs-6.col-sm-6.col-md-4 {
24479
+ width: 100%;
24480
+ }
24481
+
24482
+ .main-content.p-15.pt-35.res-main-container a.btn.popup-botton.edit-btn.pull-right {
24483
+ margin-top: 10px;
24484
+ }
24485
+
24486
+ .main-content.p-15.pt-35.res-main-container a.btn, input.btn {
24487
+ float: none !important;
24488
+ width: 100%;
24489
+ margin: 5px !important;
24490
+ }
24491
+ }
@@ -264,6 +264,8 @@ module FilterHelper
264
264
  # remove the filters which are to be removed and add which are to be added
265
265
  # Also remove the filter which is currently selected
266
266
  filter_options[:filters_to_remove] << filter_name.to_sym
267
+ filter_options[:filters_to_remove].uniq!
268
+ filter_options[:filters_to_remove].compact!
267
269
 
268
270
  # filters is now a hash with keys looking like year, month etc.
269
271
  # However, we need a hash with keys in short form like yr, mn
@@ -28,7 +28,7 @@
28
28
  <% elsif @resource_options[:form_model_size] == :large %>
29
29
  closeLargeModal();
30
30
  <% end %>
31
-
31
+
32
32
  <% if @resource_options[:show_modal_after_create] %>
33
33
 
34
34
  // Showing the saved data in the modal
@@ -46,16 +46,16 @@
46
46
  notifySuccess("<%= escape_javascript(@notification[:title]) %>", "<%= escape_javascript(@notification[:message]) %>");
47
47
 
48
48
  <% else %>
49
-
49
+
50
50
  // Reload the form with errors
51
- var heading = "Add an <%= @resource_options[:collection_name] %>";
52
- var bodyContent = "<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/form")) %>";
53
- <% if @resource_options[:form_model_size] == :generic %>
51
+ var heading = "Add <%= @resource_options[:item_name].to_s.titleize %>";
52
+ var bodyContent = "<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/form")) %>";
53
+ <% if @resource_options[:form_model_size] == :generic %>
54
54
  showGenericModal(heading, bodyContent, true);
55
55
  <% elsif @resource_options[:form_model_size] == :large %>
56
56
  showLargeModal(heading, bodyContent, true);
57
57
  <% end %>
58
-
58
+
59
59
  // Show Main Error Message on the form
60
60
  <% error_message = content_tag(:div, I18n.t('errors.errors_highlighted'), class: "alert alert-danger mt-20") %>
61
61
  $("#<%= @resource_options[:item_name] %>_form_error").html("<%= escape_javascript(error_message) %>");
@@ -74,7 +74,7 @@
74
74
 
75
75
  // Showing Growl Like Message
76
76
  notifyError("<%= escape_javascript(@notification[:title]) %>", "<%= escape_javascript(raw(@notification[:message])) %>");
77
-
77
+
78
78
  <% end %>
79
79
 
80
80
 
@@ -48,7 +48,7 @@
48
48
  <% else %>
49
49
 
50
50
  // Reload the form with errors
51
- var heading = "Add an <%= @resource_options[:collection_name] %>";
51
+ var heading = "Add <%= @resource_options[:collection_name] %>";
52
52
  var bodyContent = "<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/form")) %>";
53
53
  <% if @resource_options[:form_model_size] == :generic %>
54
54
  showGenericModal(heading, bodyContent, true);
@@ -27,7 +27,7 @@
27
27
  <% else %>
28
28
 
29
29
  // Reload the form with errors
30
- var heading = "Add an <%= @resource_options[:collection_name] %>";
30
+ var heading = "Add <%= @resource_options[:collection_name] %>";
31
31
  var bodyContent = "<%= escape_javascript(render(:partial=>"#{@resource_options[:view_path]}/form")) %>";
32
32
  showGenericModal(heading, bodyContent, true);
33
33
 
@@ -214,7 +214,7 @@ module Kuppayam
214
214
  object_name: object.class.name.underscore,
215
215
  required: true,
216
216
  label: foreign_key.to_s.titleize,
217
- prompt: "Please Select",
217
+ include_blank: "Please Select",
218
218
  editable: true,
219
219
  error_class: "has-error",
220
220
  form_style: "left-right"
@@ -1,3 +1,3 @@
1
1
  module Kuppayam
2
- VERSION = '0.2.9.pre.materialize'
2
+ VERSION = '0.2.10.pre.materialize'
3
3
  end
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.9.pre.materialize
4
+ version: 0.2.10.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-05-27 00:00:00.000000000 Z
11
+ date: 2018-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails