kuppayam 0.2.5.pre.materialize → 0.2.6.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: ca032ea4f2e4542b6dc21f026cfde880b9664ee65478a4237073bec217d59bca
4
- data.tar.gz: ed793632565661247012e0e618f4cbac23576109159169a3fd49a38c6119d724
3
+ metadata.gz: 6b8ebf51610a55552b649cda6ccafeb42faebade2396447c89f5cef660bd1c70
4
+ data.tar.gz: 7d19af4fcc147d7e199083981ff01fe228e23b0ae783dcf633a00a09d1e1422d
5
5
  SHA512:
6
- metadata.gz: 0ced6a709aa97776d4baab149e6a72f3e073705492f3ebd2241610f33a40c8a3eadb73bfa58f109823cbe1727d6c9ce5bdd4a9bbeb0d918456a68ca3172c79b6
7
- data.tar.gz: f32733e64a1e3895be371e2fc2ce3a3557b83a879726976e41bd3d1f7bf410dd715121ca65e4fcad69c06c31fb3e578c399b86d990c186be3e4954881c7c2b93
6
+ metadata.gz: f606e204c08bb7d8d58b70248795ec5db1e5ede557a490bd40cd30e8590be05f88eaa174d09c14bf7fe7f6758fbc696706daacd98c9dc962a5aa0db7872e3038
7
+ data.tar.gz: 1ed58cc957625a0da45a859b43b88b21c3f7ad876c846c01bbe104ec0e1c098726780f500a72de272448137fb56121bf018290549bfa36fa6190bdbacbba935b
@@ -12,6 +12,7 @@
12
12
  //
13
13
  //= require kuppayam/utilities.js
14
14
  //= require toastr/toastr.min.js
15
+ //= require materialize/vanillatree.js
15
16
  //= require materialize/vendors.min.js
16
17
  //= require materialize/app.min.js
17
18
  //= require materialize/hoe.js
@@ -23,6 +24,146 @@
23
24
  // require tagsinput/bootstrap-tagsinput.min.js
24
25
  //= require_self
25
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
+ });
26
167
  $(document).ready(function(){
27
168
  $('.tooltip-btn').tooltip();
28
169
 
@@ -31,4 +172,5 @@ $(document).ready(function(){
31
172
  $('.' + $(this).val()).show();
32
173
  });
33
174
 
34
- });
175
+ });
176
+
@@ -19,11 +19,12 @@
19
19
  padding:5px 10px;
20
20
  white-space:nowrap;
21
21
  vertical-align:top;
22
+ background-color: blue !important;
22
23
  }
23
24
 
24
25
  .frozen-table {
25
26
  position:absolute;
26
- top:0;
27
+ top:0px;
27
28
  left:0;
28
29
  min-width: 100% !important;
29
30
  }
@@ -32,7 +33,7 @@
32
33
  white-space: nowrap;
33
34
  overflow: hidden;
34
35
  text-overflow: ellipsis;
35
- max-width: 80px !important;
36
+ /*max-width: 80px !important;*/
36
37
  }
37
38
 
38
39
  .frozen-table td, .frozen-table th {
@@ -40,15 +41,15 @@
40
41
  }
41
42
  .frozen-table tbody th {
42
43
  visibility:visible;
43
- color:red;
44
+ /*color:red;*/
44
45
  }
45
46
  .frozen-table td.frozen {
46
- background:#fafafa;
47
+ /*background:#fafafa;*/
47
48
  visibility:visible;
48
49
  }
49
50
 
50
51
  .frozen-table th.frozen {
51
- visibility: visible;
52
+ visibility: visible;
52
53
  }
53
54
 
54
55
  .frozen-table thead, .frozen-table tfoot{background:transparent;}
@@ -56,4 +57,8 @@
56
57
 
57
58
  .table-full.frozen-table thead tr > th.fixed-side:last-child {
58
59
  width: 150px;
59
- }
60
+ }
61
+
62
+ .col-heading {
63
+ height: 60px;
64
+ }
@@ -37,6 +37,7 @@ module KuppayamHelper
37
37
 
38
38
  # theme_search_form is a helper to create a form to filter the results by entering a search query
39
39
  def search_form_kuppayam(cls, url, **options)
40
+
40
41
  options.reverse_merge!(
41
42
  method: :get,
42
43
  remote: true,
@@ -45,8 +46,8 @@ module KuppayamHelper
45
46
  placeholder: "Search ...",
46
47
  button_text: "Search!",
47
48
  form_html: {
48
- :class=>"pull-right",
49
- :style=>"margin-bottom:0px;width:100%;"},
49
+ class: "pull-right",
50
+ style: "margin-bottom:0px;width:100%;"},
50
51
  div_html: {:class=>"input-group"},
51
52
  button_class: "btn btn-primary",
52
53
  text_class: "btn-text hidden-sm hidden-xs"
@@ -1,14 +1,2 @@
1
- <div class="page-error centered">
2
-
3
- <div class="error-symbol">
4
- <i class="fa-warning"></i>
5
- </div>
6
-
7
- <h2 style="color:#4b4b4b;">
8
- Permission Denied
9
- <small>Unauthorized</small>
10
- </h2>
11
-
12
- <p>You do not have permission to view this page or perform this action</p>
13
-
14
- </div>
1
+ <!-- Permission Denied -->
2
+ <%= render :partial=>"/layouts/kuppayam/materialize/permission_denied" -%>
@@ -0,0 +1,26 @@
1
+ <%
2
+ show_back_button = false unless defined?(show_back_button)
3
+ show_popup_close_button = false unless defined?(show_popup_close_button)
4
+ %>
5
+ <div class="page-error no-bg-color mb-40">
6
+ <div class="center">
7
+ <div class="card bordered z-depth-2" style="margin:0% auto;max-width: 500px;margin-top: 50px;">
8
+ <div class="card-content">
9
+ <div class="m-b-30 text-center"> <i class="md md-warning error-icon"></i>
10
+ <h1 class="uppercase">Access Denied!</h1>
11
+ <p class="card-title-desc">We're sorry. the page you are looking doesn't exist or you do not have the Permission.</p>
12
+ </div>
13
+ </div>
14
+ <div class="card-action clearfix">
15
+ <% if show_back_button %>
16
+ <div class="text-center"> <a href="#" onclick="window.history.back()" class="btn btn-primary btn-block">Go Back</a> </div>
17
+ <% end %>
18
+
19
+ <% if show_popup_close_button %>
20
+ <%= link_to "Close", "#", onclick: "closeGenericModal();", class: "btn btn-primary btn-block" %>
21
+ <% end %>
22
+
23
+ </div>
24
+ </div>
25
+ </div>
26
+ </div>
@@ -1,3 +1,3 @@
1
1
  module Kuppayam
2
- VERSION = '0.2.5.pre.materialize'
2
+ VERSION = '0.2.6.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.5.pre.materialize
4
+ version: 0.2.6.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-25 00:00:00.000000000 Z
11
+ date: 2018-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -672,6 +672,7 @@ files:
672
672
  - app/views/layouts/kuppayam/materialize/_head.html.erb
673
673
  - app/views/layouts/kuppayam/materialize/_header.html.erb
674
674
  - app/views/layouts/kuppayam/materialize/_heading.html.erb
675
+ - app/views/layouts/kuppayam/materialize/_permission_denied.html.erb
675
676
  - app/views/layouts/kuppayam/materialize/_sidebar.html.erb
676
677
  - app/views/layouts/kuppayam/materialize/admin.html.erb
677
678
  - app/views/layouts/kuppayam/materialize/blank.html.erb