godmin 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,238 @@
1
+ /*!
2
+ * Datetimepicker for Bootstrap v3
3
+ //! version : 3.1.3
4
+ * https://github.com/Eonasdan/bootstrap-datetimepicker/
5
+ */
6
+ .bootstrap-datetimepicker-widget {
7
+ top: 0;
8
+ left: 0;
9
+ width: 250px;
10
+ padding: 4px;
11
+ margin-top: 1px;
12
+ z-index: 99999 !important;
13
+ border-radius: 4px;
14
+ }
15
+ .bootstrap-datetimepicker-widget.timepicker-sbs {
16
+ width: 600px;
17
+ }
18
+ .bootstrap-datetimepicker-widget.bottom:before {
19
+ content: '';
20
+ display: inline-block;
21
+ border-left: 7px solid transparent;
22
+ border-right: 7px solid transparent;
23
+ border-bottom: 7px solid #ccc;
24
+ border-bottom-color: rgba(0, 0, 0, 0.2);
25
+ position: absolute;
26
+ top: -7px;
27
+ left: 7px;
28
+ }
29
+ .bootstrap-datetimepicker-widget.bottom:after {
30
+ content: '';
31
+ display: inline-block;
32
+ border-left: 6px solid transparent;
33
+ border-right: 6px solid transparent;
34
+ border-bottom: 6px solid white;
35
+ position: absolute;
36
+ top: -6px;
37
+ left: 8px;
38
+ }
39
+ .bootstrap-datetimepicker-widget.top:before {
40
+ content: '';
41
+ display: inline-block;
42
+ border-left: 7px solid transparent;
43
+ border-right: 7px solid transparent;
44
+ border-top: 7px solid #ccc;
45
+ border-top-color: rgba(0, 0, 0, 0.2);
46
+ position: absolute;
47
+ bottom: -7px;
48
+ left: 6px;
49
+ }
50
+ .bootstrap-datetimepicker-widget.top:after {
51
+ content: '';
52
+ display: inline-block;
53
+ border-left: 6px solid transparent;
54
+ border-right: 6px solid transparent;
55
+ border-top: 6px solid white;
56
+ position: absolute;
57
+ bottom: -6px;
58
+ left: 7px;
59
+ }
60
+ .bootstrap-datetimepicker-widget .dow {
61
+ width: 14.2857%;
62
+ }
63
+ .bootstrap-datetimepicker-widget.pull-right:before {
64
+ left: auto;
65
+ right: 6px;
66
+ }
67
+ .bootstrap-datetimepicker-widget.pull-right:after {
68
+ left: auto;
69
+ right: 7px;
70
+ }
71
+ .bootstrap-datetimepicker-widget > ul {
72
+ list-style-type: none;
73
+ margin: 0;
74
+ }
75
+ .bootstrap-datetimepicker-widget a[data-action] {
76
+ padding: 6px 0;
77
+ }
78
+ .bootstrap-datetimepicker-widget a[data-action]:active {
79
+ box-shadow: none;
80
+ }
81
+ .bootstrap-datetimepicker-widget .timepicker-hour,
82
+ .bootstrap-datetimepicker-widget .timepicker-minute,
83
+ .bootstrap-datetimepicker-widget .timepicker-second {
84
+ width: 54px;
85
+ font-weight: bold;
86
+ font-size: 1.2em;
87
+ margin: 0;
88
+ }
89
+ .bootstrap-datetimepicker-widget button[data-action] {
90
+ padding: 6px;
91
+ }
92
+ .bootstrap-datetimepicker-widget table[data-hour-format="12"] .separator {
93
+ width: 4px;
94
+ padding: 0;
95
+ margin: 0;
96
+ }
97
+ .bootstrap-datetimepicker-widget .datepicker > div {
98
+ display: none;
99
+ }
100
+ .bootstrap-datetimepicker-widget .picker-switch {
101
+ text-align: center;
102
+ }
103
+ .bootstrap-datetimepicker-widget table {
104
+ width: 100%;
105
+ margin: 0;
106
+ }
107
+ .bootstrap-datetimepicker-widget td,
108
+ .bootstrap-datetimepicker-widget th {
109
+ text-align: center;
110
+ border-radius: 4px;
111
+ }
112
+ .bootstrap-datetimepicker-widget td {
113
+ height: 54px;
114
+ line-height: 54px;
115
+ width: 54px;
116
+ }
117
+ .bootstrap-datetimepicker-widget td.cw {
118
+ font-size: 10px;
119
+ height: 20px;
120
+ line-height: 20px;
121
+ color: #777777;
122
+ }
123
+ .bootstrap-datetimepicker-widget td.day {
124
+ height: 20px;
125
+ line-height: 20px;
126
+ width: 20px;
127
+ }
128
+ .bootstrap-datetimepicker-widget td.day:hover,
129
+ .bootstrap-datetimepicker-widget td.hour:hover,
130
+ .bootstrap-datetimepicker-widget td.minute:hover,
131
+ .bootstrap-datetimepicker-widget td.second:hover {
132
+ background: #eeeeee;
133
+ cursor: pointer;
134
+ }
135
+ .bootstrap-datetimepicker-widget td.old,
136
+ .bootstrap-datetimepicker-widget td.new {
137
+ color: #777777;
138
+ }
139
+ .bootstrap-datetimepicker-widget td.today {
140
+ position: relative;
141
+ }
142
+ .bootstrap-datetimepicker-widget td.today:before {
143
+ content: '';
144
+ display: inline-block;
145
+ border-left: 7px solid transparent;
146
+ border-bottom: 7px solid #428bca;
147
+ border-top-color: rgba(0, 0, 0, 0.2);
148
+ position: absolute;
149
+ bottom: 4px;
150
+ right: 4px;
151
+ }
152
+ .bootstrap-datetimepicker-widget td.active,
153
+ .bootstrap-datetimepicker-widget td.active:hover {
154
+ background-color: #428bca;
155
+ color: #ffffff;
156
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
157
+ }
158
+ .bootstrap-datetimepicker-widget td.active.today:before {
159
+ border-bottom-color: #fff;
160
+ }
161
+ .bootstrap-datetimepicker-widget td.disabled,
162
+ .bootstrap-datetimepicker-widget td.disabled:hover {
163
+ background: none;
164
+ color: #777777;
165
+ cursor: not-allowed;
166
+ }
167
+ .bootstrap-datetimepicker-widget td span {
168
+ display: inline-block;
169
+ width: 54px;
170
+ height: 54px;
171
+ line-height: 54px;
172
+ margin: 2px 1.5px;
173
+ cursor: pointer;
174
+ border-radius: 4px;
175
+ }
176
+ .bootstrap-datetimepicker-widget td span:hover {
177
+ background: #eeeeee;
178
+ }
179
+ .bootstrap-datetimepicker-widget td span.active {
180
+ background-color: #428bca;
181
+ color: #ffffff;
182
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
183
+ }
184
+ .bootstrap-datetimepicker-widget td span.old {
185
+ color: #777777;
186
+ }
187
+ .bootstrap-datetimepicker-widget td span.disabled,
188
+ .bootstrap-datetimepicker-widget td span.disabled:hover {
189
+ background: none;
190
+ color: #777777;
191
+ cursor: not-allowed;
192
+ }
193
+ .bootstrap-datetimepicker-widget th {
194
+ height: 20px;
195
+ line-height: 20px;
196
+ width: 20px;
197
+ }
198
+ .bootstrap-datetimepicker-widget th.picker-switch {
199
+ width: 145px;
200
+ }
201
+ .bootstrap-datetimepicker-widget th.next,
202
+ .bootstrap-datetimepicker-widget th.prev {
203
+ font-size: 21px;
204
+ }
205
+ .bootstrap-datetimepicker-widget th.disabled,
206
+ .bootstrap-datetimepicker-widget th.disabled:hover {
207
+ background: none;
208
+ color: #777777;
209
+ cursor: not-allowed;
210
+ }
211
+ .bootstrap-datetimepicker-widget thead tr:first-child th {
212
+ cursor: pointer;
213
+ }
214
+ .bootstrap-datetimepicker-widget thead tr:first-child th:hover {
215
+ background: #eeeeee;
216
+ }
217
+ .input-group.date .input-group-addon span {
218
+ display: block;
219
+ cursor: pointer;
220
+ width: 16px;
221
+ height: 16px;
222
+ }
223
+ .bootstrap-datetimepicker-widget.left-oriented:before {
224
+ left: auto;
225
+ right: 6px;
226
+ }
227
+ .bootstrap-datetimepicker-widget.left-oriented:after {
228
+ left: auto;
229
+ right: 7px;
230
+ }
231
+ .bootstrap-datetimepicker-widget ul.list-unstyled li div.timepicker div.timepicker-picker table.table-condensed tbody > tr > td {
232
+ padding: 0px !important;
233
+ }
234
+ @media screen and (max-width: 767px) {
235
+ .bootstrap-datetimepicker-widget.timepicker-sbs {
236
+ width: 283px;
237
+ }
238
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: godmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Ljungblad
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-12-15 00:00:00.000000000 Z
13
+ date: 2014-12-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bcrypt
@@ -60,6 +60,20 @@ dependencies:
60
60
  - - "<"
61
61
  - !ruby/object:Gem::Version
62
62
  version: '4.2'
63
+ - !ruby/object:Gem::Dependency
64
+ name: momentjs-rails
65
+ requirement: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: 2.8.1
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: 2.8.1
63
77
  - !ruby/object:Gem::Dependency
64
78
  name: rails
65
79
  requirement: !ruby/object:Gem::Requirement
@@ -159,11 +173,12 @@ files:
159
173
  - README.md
160
174
  - Rakefile
161
175
  - app/assets/images/godmin/.keep
162
- - app/assets/javascripts/godmin/application.js
163
- - app/assets/javascripts/godmin/batch_actions.js
176
+ - app/assets/javascripts/godmin/batch-actions.js
177
+ - app/assets/javascripts/godmin/datetimepickers.js
178
+ - app/assets/javascripts/godmin/index.js
164
179
  - app/assets/javascripts/godmin/navigation.js
165
- - app/assets/javascripts/godmin/select_tags.js
166
- - app/assets/stylesheets/godmin/application.css.scss
180
+ - app/assets/javascripts/godmin/select-boxes.js
181
+ - app/assets/stylesheets/godmin/index.css.scss
167
182
  - app/views/godmin/application/welcome.html.erb
168
183
  - app/views/godmin/resource/_actions.html.erb
169
184
  - app/views/godmin/resource/_batch_actions.html.erb
@@ -264,6 +279,8 @@ files:
264
279
  - test/lib/godmin/policy_finder_test.rb
265
280
  - test/lib/godmin/resolver_test.rb
266
281
  - test/test_helper.rb
282
+ - vendor/assets/javascripts/bootstrap-datetimepicker.js
283
+ - vendor/assets/stylesheets/bootstrap-datetimepicker.css
267
284
  homepage: https://github.com/varvet/godmin
268
285
  licenses:
269
286
  - MIT
@@ -334,3 +351,4 @@ test_files:
334
351
  - test/lib/godmin/policy_finder_test.rb
335
352
  - test/lib/godmin/resolver_test.rb
336
353
  - test/test_helper.rb
354
+ has_rdoc:
@@ -1,42 +0,0 @@
1
- (function($) {
2
- $(function() {
3
- $form = $('#batch-actions-form');
4
- $selectAll = $form.find('.batch-actions-select-all');
5
- $selectNone = $form.find('.batch-actions-select-none');
6
-
7
- var setSelectToAll = function() {
8
- $selectAll.removeClass('hidden');
9
- $selectNone.addClass('hidden');
10
- };
11
-
12
- var setSelectToNone = function() {
13
- $selectAll.addClass('hidden');
14
- $selectNone.removeClass('hidden');
15
- };
16
-
17
- $form.find('.batch-actions-select').on('click', function() {
18
- if ($form.find('input:checkbox:checked').length > 0) {
19
- $form.find('input:checkbox').prop('checked', false).trigger('change');
20
- setSelectToAll();
21
- } else {
22
- $form.find('input:checkbox').prop('checked', true).trigger('change');
23
- setSelectToNone();
24
- }
25
- });
26
-
27
- $form.find('input:checkbox').on('change', function() {
28
- if ($form.find('input:checkbox:checked').length) {
29
- $('.batch-actions-action-link').removeClass('hidden');
30
- setSelectToNone();
31
- } else {
32
- $('.batch-actions-action-link').addClass('hidden');
33
- setSelectToAll();
34
- }
35
- });
36
-
37
- $(document).delegate('.batch-actions-action-link', 'click.rails', function() {
38
- $form.find('#batch-actions-action').val($(this).data('value'));
39
- $form.submit();
40
- });
41
- });
42
- }(jQuery));
@@ -1,7 +0,0 @@
1
- (function($){
2
- $(function(){
3
- $('.select-tag').selectize({
4
- inputClass: 'form-control selectize-input'
5
- });
6
- });
7
- }(jQuery));