kaui 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/app/assets/config/kaui_manifest.js +2 -44
  4. data/app/assets/javascripts/application.js +12 -0
  5. data/app/assets/javascripts/kaui/kaui.js +7 -452
  6. data/app/assets/javascripts/kaui/kaui_override.js +441 -0
  7. data/app/assets/stylesheets/application.css +23 -0
  8. data/app/assets/stylesheets/kaui/account.css +34 -0
  9. data/app/assets/stylesheets/kaui/audit.css +19 -0
  10. data/app/assets/stylesheets/kaui/common.css +550 -0
  11. data/app/assets/stylesheets/kaui/datatable.css +71 -0
  12. data/app/assets/stylesheets/kaui/header.css +129 -0
  13. data/app/assets/stylesheets/kaui/home.css +72 -0
  14. data/app/assets/stylesheets/kaui/invoice.css +37 -0
  15. data/app/assets/stylesheets/kaui/kaui.css +152 -0
  16. data/app/assets/stylesheets/kaui/overdue.css +7 -0
  17. data/app/assets/stylesheets/kaui/payment.css +28 -0
  18. data/app/assets/stylesheets/kaui/subscription.css +15 -0
  19. data/app/assets/stylesheets/kaui/tags.css +137 -0
  20. data/app/assets/stylesheets/kaui/timeline.css +5 -0
  21. data/app/assets/stylesheets/kaui/tooltip.css +16 -0
  22. data/app/controllers/kaui/account_tags_controller.rb +1 -1
  23. data/app/controllers/kaui/admin_allowed_users_controller.rb +1 -1
  24. data/app/controllers/kaui/admin_tenants_controller.rb +3 -3
  25. data/app/controllers/kaui/bundle_tags_controller.rb +1 -1
  26. data/app/controllers/kaui/engine_controller_util.rb +1 -1
  27. data/app/controllers/kaui/home_controller.rb +21 -12
  28. data/app/controllers/kaui/invoice_tags_controller.rb +1 -1
  29. data/app/controllers/kaui/invoices_controller.rb +6 -1
  30. data/app/controllers/kaui/payment_methods_controller.rb +1 -1
  31. data/app/controllers/kaui/subscriptions_controller.rb +9 -8
  32. data/app/controllers/kaui/transactions_controller.rb +1 -1
  33. data/app/helpers/kaui/object_helper.rb +16 -1
  34. data/app/models/kaui/admin_tenant.rb +1 -1
  35. data/app/models/kaui/catalog.rb +2 -2
  36. data/app/models/kaui/invoice_payment.rb +1 -1
  37. data/app/models/kaui/overdue.rb +2 -2
  38. data/app/models/kaui/tag.rb +2 -2
  39. data/app/models/kaui/tag_definition.rb +1 -1
  40. data/app/views/kaui/accounts/_billing_info.html.erb +2 -4
  41. data/app/views/kaui/accounts/_form.html.erb +3 -3
  42. data/app/views/kaui/accounts/index.html.erb +0 -1
  43. data/app/views/kaui/admin_tenants/new_overdue_config.html.erb +5 -5
  44. data/app/views/kaui/home/_advanced_search_modal.html.erb +22 -1
  45. data/app/views/kaui/invoices/show.html.erb +2 -1
  46. data/app/views/kaui/layouts/kaui_header.html.erb +2 -18
  47. data/app/views/kaui/refunds/_form.html.erb +50 -2
  48. data/app/views/kaui/subscriptions/_cancel_by_date_modal.html.erb +1 -1
  49. data/app/views/kaui/subscriptions/_edit_form.html.erb +1 -1
  50. data/app/views/kaui/subscriptions/_form.html.erb +1 -1
  51. data/app/views/kaui/subscriptions/edit_bcd.erb +1 -1
  52. data/app/views/kaui/tag_definitions/_form.html.erb +1 -2
  53. data/config/routes.rb +1 -0
  54. data/lib/kaui/engine.rb +1 -4
  55. data/lib/kaui/version.rb +1 -1
  56. data/lib/kaui.rb +10 -10
  57. metadata +29 -130
  58. data/app/assets/javascripts/jquery.spin.js +0 -76
  59. data/app/assets/javascripts/kaui_application.js +0 -25
  60. data/app/assets/javascripts/spin.js +0 -76
  61. data/app/assets/stylesheets/bootstrap_and_overrides.scss +0 -240
  62. data/app/assets/stylesheets/kaui/account.scss +0 -52
  63. data/app/assets/stylesheets/kaui/audit.scss +0 -42
  64. data/app/assets/stylesheets/kaui/common.scss +0 -765
  65. data/app/assets/stylesheets/kaui/datatable.scss +0 -115
  66. data/app/assets/stylesheets/kaui/header.scss +0 -197
  67. data/app/assets/stylesheets/kaui/home.scss +0 -89
  68. data/app/assets/stylesheets/kaui/invoice.scss +0 -58
  69. data/app/assets/stylesheets/kaui/kaui.scss +0 -265
  70. data/app/assets/stylesheets/kaui/kaui_bootstrap.scss +0 -3
  71. data/app/assets/stylesheets/kaui/overdue.scss +0 -11
  72. data/app/assets/stylesheets/kaui/payment.scss +0 -43
  73. data/app/assets/stylesheets/kaui/subscription.scss +0 -27
  74. data/app/assets/stylesheets/kaui/tags.scss +0 -208
  75. data/app/assets/stylesheets/kaui/timeline.scss +0 -7
  76. data/app/assets/stylesheets/kaui/tooltip.scss +0 -15
  77. data/app/assets/stylesheets/kaui_application.css +0 -12
@@ -1,115 +0,0 @@
1
- $smphone: unquote("max-width: 450px");
2
- $phone: unquote("max-width: 768px");
3
- $tablet: unquote("max-width: 1024px");
4
- .search {
5
- table {
6
- font-weight: 400;
7
-
8
- th, td {
9
- &:first-of-type {
10
- padding-left: 60px;
11
-
12
- @media ($phone) {
13
- padding: 5px;
14
- }
15
- }
16
- }
17
- }
18
-
19
- table.table-small-padding {
20
- th, td {
21
- white-space: nowrap;
22
-
23
- &:first-of-type {
24
- padding-left: 20px;
25
- }
26
- }
27
- }
28
-
29
- table.table-colored-rows {
30
- tr.insert {
31
- background-color: #dff0d8;
32
- }
33
- tr.update {
34
- background-color: #fcf8e3;
35
- }
36
- tr.delete {
37
- background-color: #f2dede;
38
- }
39
-
40
- th, td {
41
-
42
- &:first-of-type {
43
- padding-left: 20px;
44
- }
45
- }
46
- }
47
-
48
- tr.disabled {
49
- background-color: #f5f5f5;
50
- }
51
- }
52
-
53
- table.dataTable {
54
- padding: 0;
55
- }
56
-
57
- table.dataTable thead th {
58
- position: relative;
59
- }
60
-
61
- table.dataTable thead th,
62
- table.dataTable tbody td {
63
- vertical-align: middle;
64
- }
65
-
66
- table.dataTable thead th.sorting:after,
67
- table.dataTable thead th.sorting_asc:after,
68
- table.dataTable thead th.sorting_desc:after {
69
- content: '' !important;
70
- }
71
-
72
- table.dataTable {
73
- margin-top: 0 !important;
74
- margin-bottom: 0 !important;
75
-
76
- @media ($phone) {
77
- margin-bottom: 30px !important;
78
- }
79
- }
80
-
81
- table.dataTable thead th,
82
- table.dataTable thead td {
83
- font-size: 12px;
84
- border-bottom: 0;
85
- }
86
-
87
- table.dataTable.no-footer {
88
- border-bottom: 1px solid #dddddd;
89
- }
90
-
91
- .info-wrapper table.dataTable.no-footer {
92
- border-bottom: 0;
93
- }
94
-
95
- #invoice-table tbody tr {
96
- border-bottom: 1px solid #dddddd;
97
- }
98
-
99
- #accounts-table {
100
- @media ($phone) {
101
- width: 100% !important;
102
- }
103
- }
104
-
105
- table.dataTable.table-condensed thead > tr > th {
106
- border-right: 1px solid #c9c9c9;
107
-
108
- &:last-of-type {
109
- border-right: 0;
110
- }
111
- }
112
-
113
- .dataTables_paginate.paging_full_numbers {
114
- padding-top: 30px;
115
- }
@@ -1,197 +0,0 @@
1
- /*
2
- * Header Layout
3
- */
4
- $smphone: unquote("max-width: 450px");
5
- $phone: unquote("max-width: 768px");
6
- $tablet: unquote("max-width: 1024px");
7
-
8
- header {
9
- padding: 25px 0;
10
- background: #fff;
11
- border-bottom: 1px solid #ccc;
12
- margin-bottom: 40px;
13
-
14
- img {
15
- vertical-align: middle;
16
-
17
- @media ($phone) {
18
- display: block;
19
- margin: 0 auto 10px;
20
- }
21
- }
22
-
23
- #searchform {
24
- margin: 0 30px;
25
- vertical-align: middle;
26
- position: relative;
27
- display: inline-block;
28
-
29
- @media ($phone) {
30
- width: 185px;
31
- display: block;
32
- margin: 0 auto 10px;
33
- }
34
-
35
- input[type="text"] {
36
- padding-right: 28px;
37
-
38
- @media ($tablet) {
39
- width: 100px;
40
- }
41
-
42
- @media ($phone) {
43
- width: 100%;
44
- }
45
- }
46
-
47
- input[type="submit"] {
48
- display: block;
49
- width: 18px;
50
- height: 15px;
51
- position: absolute;
52
- top: 7px;
53
- right: 5px;
54
- background: asset-url("kaui/search.png") no-repeat top left;
55
- border: 0;
56
- text-indent: 999999px;
57
- overflow: hidden;
58
- outline: 0;
59
- padding: 0;
60
- }
61
- }
62
-
63
- a {
64
- font-size: 12px;
65
- text-transform: uppercase;
66
-
67
- @media ($phone) {
68
- text-align: center;
69
- display: block;
70
- }
71
- }
72
-
73
- nav {
74
- @media ($phone) {
75
- text-align: center;
76
- }
77
-
78
- ul {
79
- padding: 6px 0;
80
- margin: 0;
81
-
82
- @media ($tablet) {
83
- text-align: center;
84
-
85
- &.account-menu {
86
- margin: -10px 0;
87
- }
88
- }
89
-
90
- @media ($phone) {
91
-
92
- }
93
-
94
- li {
95
- list-style: none;
96
- display: inline-block;
97
- vertical-align: middle;
98
-
99
- a {
100
- color: rgb(119, 119, 119);
101
- padding: 0 10px;
102
- border-right: 1px solid #ccc;
103
-
104
- &:hover {
105
- color: #000;
106
- }
107
- }
108
-
109
- &:last-of-type {
110
- a {
111
- border: 0;
112
- }
113
- }
114
- }
115
- }
116
- }
117
- }
118
-
119
- .title-nav-area {
120
- background: #c7e4e7;
121
- margin: 0 0 30px;
122
- font-size: 0;
123
- margin-top: -40px;
124
-
125
- .container {
126
- @media ($phone) {
127
- text-align: center;
128
- width: 100%;
129
- padding: 0 15px;
130
- }
131
- }
132
-
133
- a,p {
134
- display: inline-block;
135
- padding: 12px 40px;
136
- font-size: 12px;
137
- margin: 0;
138
- line-height: 12px;
139
- background: transparent;
140
- vertical-align: top;
141
-
142
- @media ($phone) {
143
- width: 30%;
144
- padding: 12px 0;
145
- text-align: center;
146
- border-bottom: 1px solid #fff;
147
-
148
- &:nth-of-type(4), &:nth-of-type(5) {
149
- width: 45%;
150
- }
151
-
152
- &:nth-of-type(3), &:nth-of-type(5) {
153
- border-right: 1px solid #fff;
154
- }
155
- }
156
-
157
- @media ($smphone) {
158
- width: 50%;
159
- border: 0;
160
-
161
- &:nth-of-type(2), &:nth-of-type(4), &:nth-of-type(5) {
162
- border-right: 1px solid #fff;
163
- }
164
-
165
- &:nth-of-type(3) {
166
- border-right: 0;
167
- }
168
-
169
- &:nth-of-type(4) {
170
- width: 50%;
171
- }
172
-
173
- &:nth-of-type(5) {
174
- width: 100%;
175
- }
176
- }
177
- }
178
-
179
- a {
180
- color: #666666;
181
- text-transform: uppercase;
182
- border-left: 1px solid #fff;
183
-
184
- &:hover, &.current {
185
- color: #fff;
186
- background: #00919d;
187
- }
188
-
189
- &:last-of-type {
190
- border-right: 1px solid #fff;
191
- }
192
- }
193
-
194
- p {
195
- font-weight: normal;
196
- }
197
- }
@@ -1,89 +0,0 @@
1
- /*
2
- * Home Page
3
- */
4
- $smphone: unquote("max-width: 450px");
5
- $phone: unquote("max-width: 768px");
6
- $tablet: unquote("max-width: 1024px");
7
- .home {
8
- text-align: center;
9
-
10
- #home_searchform {
11
- padding-top: 150px;
12
-
13
- @media ($phone) {
14
- padding-top: 50px;
15
- }
16
-
17
- #search {
18
- line-height: 48px;
19
- padding: 0 25px;
20
- font-size: 18px;
21
- width: 330px;
22
- height: 50px;
23
-
24
- @media ($phone) {
25
- line-height: 33px;
26
- padding: 0 10px;
27
- font-size: 16px;
28
- width: 220px;
29
- height: 35px;
30
- }
31
- }
32
-
33
- input[type=submit] {
34
- background: #00919d asset-url("kaui/search_white.png") no-repeat center center;
35
- height: 50px;
36
- padding: 0 20px;
37
- text-indent: 999999px;
38
- overflow: hidden;
39
- width: 82px;
40
- border-radius: 25px;
41
- vertical-align: top;
42
- margin: 0 0 0 10px;
43
-
44
- @media ($phone) {
45
- height: 35px;
46
- width: 42px;
47
- border-radius: 15px;
48
- background-size: 20px;
49
- }
50
- }
51
- }
52
-
53
- .legend {
54
- margin-top: 40px;
55
- }
56
-
57
- .duck_help {
58
- width: 352px;
59
- height: 260px;
60
- padding: 35px 120px 100px 30px;
61
- font-size: 18px;
62
- color: #666;
63
- display: block;
64
- position: fixed;
65
- bottom: 0;
66
- right: 20%;
67
- background: asset-url("kaui/duck.png") no-repeat center center;
68
- text-align: center;
69
-
70
- @media ($phone) {
71
- position: relative;
72
- right: initial;
73
- bottom: initial;
74
- width: 300px;
75
- background-size: 300px auto;
76
- font-size: 16px;
77
- padding: 20px 120px 110px 40px;
78
- top: 50px;
79
- height: 220px;
80
- display: inline-block;
81
- }
82
-
83
- @media (min-height: 600px) {
84
- position: fixed;
85
- top: auto;
86
- bottom: 0;
87
- }
88
- }
89
- }
@@ -1,58 +0,0 @@
1
- $smphone: unquote("max-width: 450px");
2
- $phone: unquote("max-width: 768px");
3
- $tablet: unquote("max-width: 1024px");
4
-
5
- table.invoice-totals {
6
- border-top: 0;
7
- padding-top: 15px;
8
- margin-top: 45px;
9
-
10
- @media ($phone) {
11
- tr:first-of-type {
12
- th {
13
- padding-top: 60px;
14
- }
15
- }
16
- }
17
-
18
- th, td {
19
- padding: 5px;
20
- }
21
-
22
- th {
23
- background-color: transparent;
24
- text-transform: uppercase;
25
- width: 80%;
26
- text-align: right;
27
- padding-right: 15px;
28
-
29
- @media ($phone) {
30
- width: 50%;
31
- }
32
- }
33
-
34
- td {
35
- width: 20%;
36
-
37
- @media ($phone) {
38
- width: 50%;
39
- }
40
- }
41
-
42
- tr {
43
- border: 0;
44
- }
45
-
46
- tr:last-of-type {
47
- background-color: #c7e4e7;
48
- }
49
- }
50
-
51
- .invoice-date {
52
- margin-top: -15px;
53
- margin-bottom: 5px;
54
- font-weight: 700;
55
- text-transform: uppercase;
56
- font-size: 12px;
57
- padding: 5px 30px;
58
- }
@@ -1,265 +0,0 @@
1
-
2
- $smphone: unquote("max-width: 450px");
3
- $phone: unquote("max-width: 768px");
4
- $tablet: unquote("max-width: 1024px");
5
-
6
- @import "kaui/kaui_bootstrap.scss";
7
- @import "kaui/common.scss";
8
- @import "kaui/header.scss";
9
-
10
- @import "kaui/home.scss";
11
-
12
- @import "kaui/tags.scss";
13
- @import "kaui/subscription.scss";
14
- @import "kaui/invoice.scss";
15
- @import "kaui/payment.scss";
16
- @import "kaui/timeline.scss";
17
-
18
- @import "kaui/datatable.scss";
19
-
20
- @import "kaui/account.scss";
21
- @import "kaui/overdue.scss";
22
-
23
- @import "kaui/audit.scss";
24
- @import "kaui/tooltip.scss";
25
-
26
- // popover max width
27
- .popover {
28
- max-width: 350px;
29
- }
30
-
31
- //@todo: Remove?
32
- /// Set the correct sprite paths
33
-
34
-
35
- // Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
36
- $fontAwesomeEotPath: font-url("fontawesome-webfont.eot");
37
- $fontAwesomeEotPath_iefix: font-url("fontawesome-webfont.eot?#iefix");
38
- $fontAwesomeWoffPath: font-url("fontawesome-webfont.woff");
39
- $fontAwesomeTtfPath: font-url("fontawesome-webfont.ttf");
40
- $fontAwesomeSvgPath: font-url("fontawesome-webfont.svg#fontawesomeregular");
41
-
42
- //@todo: Remove?
43
- // Font Awesome
44
- //@import "font-awesome.css";
45
-
46
- /* Override Bootstrap 5 font locations */
47
- @font-face {
48
- font-family: 'Glyphicons Halflings';
49
- src: image-url('glyphicons-halflings-regular.eot');
50
- src: image-url('glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
51
- image-url('glyphicons-halflings-regular.woff') format('woff'),
52
- image-url('glyphicons-halflings-regular.ttf') format('truetype'),
53
- image-url('glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
54
- }
55
-
56
-
57
- $smphone: unquote("max-width: 450px");
58
- $phone: unquote("max-width: 768px");
59
- $tablet: unquote("max-width: 1024px");
60
-
61
- .tag-bar {
62
- border-bottom: 1px solid #ddd;
63
- margin-bottom: 0;
64
- position: relative;
65
-
66
- .tag-select {
67
- display: inline-block;
68
- vertical-align: middle;
69
-
70
- @media ($smphone) {
71
- width: 35%;
72
- }
73
-
74
- span {
75
- padding: 5px 20px;
76
- text-align: center;
77
- display: block;
78
- border-right: 1px solid #ddd;
79
-
80
- @media ($phone) {
81
- border: 0;
82
- }
83
-
84
- i {
85
- margin: 0 5px;
86
- color: #515151;
87
- font-size: 16px;
88
-
89
- &.fa-caret-down {
90
- color: #999999;
91
- font-size: 12px;
92
- }
93
-
94
- &.fa-tag {
95
- font-size: 18px;
96
- }
97
-
98
- &.fa-money, &.fa-credit-card {
99
- font-size: 16px;
100
- }
101
- }
102
- }
103
-
104
- &:hover {
105
- .tag-select-box {
106
- max-height: 500px;
107
- padding: 20px 25px;
108
- border: 1px solid #ddd;
109
- box-shadow: 1px 3px 2px rgba(0, 0, 0, 0.11);
110
- }
111
- }
112
-
113
- .tag-select-box {
114
- position: absolute;
115
- top: 100%;
116
- left: -1px;
117
- max-height: 0;
118
- background-color: #fff;
119
- z-index: 100;
120
- padding: 0 15px;
121
- font-size: 12px;
122
- color: #999999;
123
- overflow: auto;
124
- width: auto;
125
- border-bottom: 0;
126
- display: inline-block;
127
-
128
- @media ($phone) {
129
- border: 0;
130
- }
131
-
132
- strong {
133
- display: block;
134
- font-weight: 400;
135
- margin: 0 0 10px;
136
- }
137
-
138
- form {
139
- display: inline-block;
140
- width: 210px;
141
- }
142
-
143
- input[type=checkbox] {
144
- display: inline-block;
145
- width: 9%;
146
- margin: 0 1% 0 0;
147
- line-height: 20px;
148
- vertical-align: middle;
149
- }
150
-
151
- label {
152
- font-size: 12px;
153
- display: inline-block;
154
- width: 85%;
155
- line-height: 20px;
156
- vertical-align: middle;
157
- margin: 0;
158
- font-weight: 400;
159
- }
160
-
161
- textarea {
162
- resize: none;
163
- height: 80px;
164
- margin: 0 0 20px;
165
- width: 100%;
166
- }
167
-
168
- a {
169
- display: block;
170
- font-size: 12px;
171
- line-height: 20px;
172
- }
173
- }
174
- }
175
-
176
- .tag-selected {
177
- display: inline-block;
178
- padding: 2px 5px;
179
- vertical-align: middle;
180
-
181
- @media ($phone) {
182
- width: 64%;
183
- padding: 2px;
184
- overflow: hidden;
185
- border-left: 1px solid #ddd;
186
- }
187
-
188
- span {
189
- display: inline-block;
190
- font-size: 12px;
191
- color: #777777;
192
- background: #e5e5e5;
193
- padding: 3px 20px;
194
- margin: 0 5px;
195
- transition: all 0.5s;
196
- cursor: pointer;
197
-
198
- &:hover {
199
- background-color: #cce9eb;
200
- }
201
-
202
- @media ($phone) {
203
- font-size: 10px;
204
- padding: 3px 5px;
205
- display: block;
206
- margin: 0 0 2px;
207
- }
208
- }
209
- }
210
- }
211
-
212
- .tag-bar-breathe {
213
- margin-bottom: 30px;
214
- }
215
-
216
- .tag-bar-no-border {
217
- border-bottom: 0;
218
-
219
- .tag-select {
220
- span {
221
- border-right: 0;
222
- }
223
- }
224
- }
225
-
226
- #main-menu {
227
- .tag-bar {
228
- .tag-select {
229
- position: relative;
230
- }
231
- .tag-select-box {
232
- word-break: keep-all;
233
- white-space: nowrap;
234
- }
235
- }
236
- }
237
-
238
- .inline-row-tag-bar{
239
- padding-left: 10px !important;
240
-
241
- .tag-bar {
242
-
243
- .tag-select {
244
- span {
245
- padding: 5px;
246
- border-right: none;
247
-
248
- i {
249
- margin: 0 3px;
250
- font-size: 12px;
251
-
252
- &.fa-tag {
253
- font-size: 12px;
254
- }
255
- }
256
- }
257
- }
258
- .tag-select-box {
259
- label {
260
- white-space: nowrap;
261
- }
262
- }
263
- }
264
- }
265
-
@@ -1,3 +0,0 @@
1
- @import "font-awesome";
2
- @import "bootstrap-sprockets";
3
- @import "bootstrap";